3 Replies Latest reply: Jun 19, 2012 9:08 AM by jcamillo RSS

    SoapClient (SoapUI) fails to load wsdl definition when mutli-threaded

    jcamillo Newbie

      Hi All,

       

      I'm using JBoss ESB 4.5 GA and I'm having a problem with the org.jboss.soa.esb.actions.soap.SOAPClient action.

       

      When the SOAPClient processes a request for the first time, it loads the wsdl definition, which works fine, as long as only 1 request is processed in the same time.

      However, when the service is multi-threaded, and a couple requests come simultaneously, the first-time wsdl loading fails, producing the error:

       

      16:49:44,077 ERROR [STDERR] org.apache.xmlbeans.XmlException: -1

      16:49:44,077 ERROR [STDERR]     at org.apache.xmlbeans.XmlBeans.wrappedException(XmlBeans.java:149)

      16:49:44,077 ERROR [STDERR]     at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:675)

      16:49:44,077 ERROR [STDERR]     at org.apache.xmlbeans.XmlBeans.compileXsd(XmlBeans.java:553)

      16:49:44,077 ERROR [STDERR]     at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.buildSchemaTypes(SchemaUtils.java:233)

      16:49:44,078 ERROR [STDERR]     at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.loadSchemaTypes(SchemaUtils.java:172)

      16:49:44,078 ERROR [STDERR]     at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinitions(WsdlContext.java:256)

      16:49:44,078 ERROR [STDERR]     at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.access$500(WsdlContext.java:53)

      16:49:44,078 ERROR [STDERR]     at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:210)

      16:49:44,078 ERROR [STDERR]     at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)

      16:49:44,078 ERROR [STDERR]     at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)

      16:49:44,078 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)

      16:49:44,078 ERROR [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: -1

      16:49:44,078 ERROR [STDERR]     at org.apache.xmlbeans.impl.store.Locale.exit(Locale.java:2879)

      16:49:44,078 ERROR [STDERR]     at org.apache.xmlbeans.impl.values.XmlObjectBase.newCursor(XmlObjectBase.java:250)

      16:49:44,078 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscTranslator.translateElement(StscTranslator.java:1157)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.translateContentModel(StscComplexTypeResolver.java:1261)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.translateContentModel(StscComplexTypeResolver.java:1427)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.translateContentModel(StscComplexTypeResolver.java:1427)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.resolveCcRestriction(StscComplexTypeResolver.java:419)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.resolveComplexType(StscComplexTypeResolver.java:234)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscResolver.resolveType(StscResolver.java:87)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.StscResolver.resolveAll(StscResolver.java:59)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:307)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:218)

      16:49:44,079 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:49:44,079 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      16:49:44,079 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      16:49:44,079 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      16:49:44,079 ERROR [STDERR]     at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)

      16:49:44,079 ERROR [STDERR]     ... 9 more

      16:49:44,080 ERROR [STDERR] org.apache.xmlbeans.XmlException: -1

      16:49:44,080 ERROR [WsdlContext] Loading of definition failed for [file:///<wsdlFileNameRemoved.wsdl>]; com.eviware.soapui.impl.wsdl.support.xsd.SchemaException: Error loading schema types

       

      I found an issue on https://issues.jboss.org/browse/JBESB-1449 describing concurrency problems in SOAPClient, but it says, that they are fixed since JBoss ESB 4.3

       

      Is it a known issue of SOAPClient?

      Did anyone experience the same kind of problems?

       

      Best Regards