web stats
Web Service InvalidDefinitionException - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2018, 02:23 AM
jasmine jasmine is offline
Mirth Newb
 
Join Date: Jun 2013
Posts: 8
jasmine is on a distinguished road
Default Web Service InvalidDefinitionException

Hi,

In the Web Service Sender Conncector when I load the wsdl from a file to get operations I receive a message error.
What is wrong or missing?

Mirth version: 3.5.2
The wsdl is valid; I created a ws with netbeans with the same wsdl.
The wsdl's path is something like "file:///c://ws//wsdl//XDS.b_DocumentRegistry.wsdl"

None HTTPS link in the wsdl
Authentication are not required


The message error:
Error caching WSDL. Please check the WSDL URL and authentication settings.

com.mirth.connect.donkey.util.xstream.SerializerEx ception: com.thoughtworks.xstream.converters.ConversionExce ption: com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
---- Debugging information ----
message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClass Exception
cause-message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
class : java.util.concurrent.ExecutionException
required-type : java.util.concurrent.ExecutionException
converter-type : com.thoughtworks.xstream.converters.extended.Throw ableConverter
version : not available
-------------------------------
com.mirth.connect.client.core.ClientException: com.mirth.connect.donkey.util.xstream.SerializerEx ception: com.thoughtworks.xstream.converters.ConversionExce ption: com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
---- Debugging information ----
message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClass Exception
cause-message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
class : java.util.concurrent.ExecutionException
required-type : java.util.concurrent.ExecutionException
converter-type : com.thoughtworks.xstream.converters.extended.Throw ableConverter
version : not available
-------------------------------
at com.mirth.connect.client.core.ServerConnection.exe cuteAsync(ServerConnection.java:317)
at com.mirth.connect.client.core.ServerConnection.app ly(ServerConnection.java:162)
at org.glassfish.jersey.client.ClientRuntime.invoke(C lientRuntime.java:255)
at org.glassfish.jersey.client.JerseyInvocation$3.cal l(JerseyInvocation.java:722)
at org.glassfish.jersey.internal.Errors.process(Error s.java:315)
at org.glassfish.jersey.internal.Errors.process(Error s.java:297)
at org.glassfish.jersey.internal.Errors.process(Error s.java:228)
at org.glassfish.jersey.process.internal.RequestScope .runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invok e(JerseyInvocation.java:718)
at org.glassfish.jersey.client.JerseyInvocation$Build er.method(JerseyInvocation.java:459)
at org.glassfish.jersey.client.proxy.WebResourceFacto ry.invoke(WebResourceFactory.java:379)
at com.sun.proxy.$Proxy63.cacheWsdlFromUrl(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.mirth.connect.client.core.Client$2.invoke(Clie nt.java:263)
at com.sun.proxy.$Proxy63.cacheWsdlFromUrl(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.mirth.connect.client.ui.panels.connectors.Conn ectorSettingsPanel$1$1.doInBackground(ConnectorSet tingsPanel.java:195)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.mirth.connect.donkey.util.xstream.SerializerEx ception: com.thoughtworks.xstream.converters.ConversionExce ption: com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
---- Debugging information ----
message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClass Exception
cause-message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
class : java.util.concurrent.ExecutionException
required-type : java.util.concurrent.ExecutionException
converter-type : com.thoughtworks.xstream.converters.extended.Throw ableConverter
version : not available
-------------------------------
at com.mirth.connect.model.converters.ObjectXMLSerial izer.handleDeserializationException(ObjectXMLSeria lizer.java:320)
at com.mirth.connect.model.converters.ObjectXMLSerial izer.deserialize(ObjectXMLSerializer.java:213)
at com.mirth.connect.client.core.api.providers.XmlMes sageBodyReader.readFrom(XmlMessageBodyReader.java: 51)
at org.glassfish.jersey.message.internal.ReaderInterc eptorExecutor$TerminalReaderInterceptor.invokeRead From(ReaderInterceptorExecutor.java:256)
at org.glassfish.jersey.message.internal.ReaderInterc eptorExecutor$TerminalReaderInterceptor.aroundRead From(ReaderInterceptorExecutor.java:235)
at org.glassfish.jersey.message.internal.ReaderInterc eptorExecutor.proceed(ReaderInterceptorExecutor.ja va:155)
at org.glassfish.jersey.message.internal.MessageBodyF actory.readFrom(MessageBodyFactory.java:1085)
at org.glassfish.jersey.message.internal.InboundMessa geContext.readEntity(InboundMessageContext.java:87 4)
at com.mirth.connect.client.core.MirthClientResponse. readEntity(MirthClientResponse.java:40)
at org.glassfish.jersey.message.internal.InboundMessa geContext.readEntity(InboundMessageContext.java:80 8)
at org.glassfish.jersey.client.ClientResponse.readEnt ity(ClientResponse.java:326)
at com.mirth.connect.client.core.ServerConnection.han dleResponse(ServerConnection.java:483)
at com.mirth.connect.client.core.ServerConnection.han dleResponse(ServerConnection.java:447)
at com.mirth.connect.client.core.ServerConnection.exe cuteAsync(ServerConnection.java:296)
... 28 more
Caused by: com.thoughtworks.xstream.converters.ConversionExce ption: com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
---- Debugging information ----
message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClass Exception
cause-message : com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
class : java.util.concurrent.ExecutionException
required-type : java.util.concurrent.ExecutionException
converter-type : com.thoughtworks.xstream.converters.extended.Throw ableConverter
version : not available
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vert(TreeUnmarshaller.java:79)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.sta rt(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshall ingStrategy.unmarshal(AbstractTreeMarshallingStrat egy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:1185)
at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:1157)
at com.mirth.connect.model.converters.ObjectXMLSerial izer.deserialize(ObjectXMLSerializer.java:208)
... 40 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClass Exception: com.eviware.soapui.impl.support.definition.support .InvalidDefinitionException
at com.thoughtworks.xstream.mapper.DefaultMapper.real Class(DefaultMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper .realClass(DynamicProxyMapper.java:55)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.PackageAliasingMap per.realClass(PackageAliasingMapper.java:88)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ClassAliasingMappe r.realClass(ClassAliasingMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ArrayMapper.realCl ass(ArrayMapper.java:74)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.real Class(MapperWrapper.java:30)
.......

Last edited by jasmine; 05-17-2018 at 02:00 AM.
Reply With Quote
  #2  
Old 05-21-2018, 02:34 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 243
AlexNeiva is on a distinguished road
Default

Hello,


don't you need to publish your webservice in some webserver, like IIS or Glassfish in order to call it?
Normally i do that and the WSDL url is something like:


http://localhost:8090/ws/wsdl/XDS.b_...tRegistry.wsdl
__________________
Best Regards,
Alex Neiva
Reply With Quote
  #3  
Old 05-21-2018, 04:45 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 724
siddharth is on a distinguished road
Default

If you have a .WSDL file you can call it directly using the fileURL

file:///path/to/WSDL
__________________
HL7v2.7 Certified Control Specialist!
Reply With Quote
  #4  
Old 05-21-2018, 05:15 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 243
AlexNeiva is on a distinguished road
Default

Hello,


the error you are showing is when you click on "Get Operations"?
You put Authentication=No i assume.
__________________
Best Regards,
Alex Neiva
Reply With Quote
  #5  
Old Today, 07:30 AM
jasmine jasmine is offline
Mirth Newb
 
Join Date: Jun 2013
Posts: 8
jasmine is on a distinguished road
Default

Quote:
Originally Posted by AlexNeiva View Post
Hello,


don't you need to publish your webservice in some webserver, like IIS or Glassfish in order to call it?
Normally i do that and the WSDL url is something like:


http://localhost:8090/ws/wsdl/XDS.b_...tRegistry.wsdl
Hello,
AlexNeiva
- I don't, the wsdl is on may pc, and I tried with other wsdl on my pc with success
Reply With Quote
  #6  
Old Today, 07:32 AM
jasmine jasmine is offline
Mirth Newb
 
Join Date: Jun 2013
Posts: 8
jasmine is on a distinguished road
Default

Quote:
Originally Posted by siddharth View Post
If you have a .WSDL file you can call it directly using the fileURL

file:///path/to/WSDL
Hi,
yes, it is what I'm doing
Reply With Quote
  #7  
Old Today, 07:33 AM
jasmine jasmine is offline
Mirth Newb
 
Join Date: Jun 2013
Posts: 8
jasmine is on a distinguished road
Default

Quote:
Originally Posted by AlexNeiva View Post
Hello,


the error you are showing is when you click on "Get Operations"?
You put Authentication=No i assume.
hi,
- Yes, when I click on "Get Operation"
- Yes, I put Authentication = no
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation