Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Web Service InvalidDefinitionException (http://www.mirthcorp.com/community/forums/showthread.php?t=218264)

jasmine 05-15-2018 02:23 AM

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)
.......

AlexNeiva 05-21-2018 02:34 AM

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

siddharth 05-21-2018 04:45 AM

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

file:///path/to/WSDL

AlexNeiva 05-21-2018 05:15 AM

Hello,


the error you are showing is when you click on "Get Operations"?
You put Authentication=No i assume.

jasmine 05-23-2018 07:30 AM

Quote:

Originally Posted by AlexNeiva (Post 263684)
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

jasmine 05-23-2018 07:32 AM

Quote:

Originally Posted by siddharth (Post 263687)
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

jasmine 05-23-2018 07:33 AM

Quote:

Originally Posted by AlexNeiva (Post 263689)
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

rpaquet 02-19-2019 04:57 AM

Web Service InvalidDefinitionException
 
Do you find your error, because I have the same.


All times are GMT -8. The time now is 07:30 PM.

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