cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Require help - getting weird Class cast exception

Highlighted
New Contributor

Re: Require help - getting weird Class cast exception

Please of specific SOAPUI jars referred to. I need help as I'm getting following error when loading WSDL in SOAPUI (both version 5.3 and 5.5):

 

Wed Jul 31 19:45:31 CAT 2019:ERROR:org.apache.xmlbeans.XmlException: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to org.apache.xmlbeans.impl.xb.xsdschema.Group
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to org.apache.xmlbeans.impl.xb.xsdschema.Group
at org.apache.xmlbeans.XmlBeans.wrappedException(XmlBeans.java:149)
at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:675)
at org.apache.xmlbeans.XmlBeans.compileXsd(XmlBeans.java:553)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.buildSchemaTypes(SchemaUtils.java:258)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.loadSchemaTypes(SchemaUtils.java:177)
at com.eviware.soapui.impl.support.definition.support.XmlSchemaBasedInterfaceDefinition.loadSchemaTypes(XmlSchemaBasedInterfaceDefinition.java:72)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlInterfaceDefinition.load(WsdlInterfaceDefinition.java:56)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:62)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext.loadDefinition(WsdlContext.java:34)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.cacheDefinition(AbstractDefinitionContext.java:245)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.access$400(AbstractDefinitionContext.java:47)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:218)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to org.apache.xmlbeans.impl.xb.xsdschema.Group
at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.translateContentModel(StscComplexTypeResolver.java:1311)
at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.translateContentModel(StscComplexTypeResolver.java:1439)
at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.resolveBasicComplexType(StscComplexTypeResolver.java:301)
at org.apache.xmlbeans.impl.schema.StscComplexTypeResolver.resolveComplexType(StscComplexTypeResolver.java:262)
at org.apache.xmlbeans.impl.schema.StscResolver.resolveType(StscResolver.java:87)
at org.apache.xmlbeans.impl.schema.StscResolver.resolveAll(StscResolver.java:59)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:307)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:218)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
... 13 more
Wed Jul 31 19:45:31 CAT 2019:ERROR:com.eviware.soapui.impl.wsdl.support.xsd.SchemaException
com.eviware.soapui.impl.wsdl.support.xsd.SchemaException

1 REPLY 1
Highlighted
Community Hero

Re: Require help - getting weird Class cast exception

It sounds like there's a problem with the WSDL.

 

First, try to validate the XML (with something like xmlvalidation.com).

 

If you can't work out the problem, make a copy of the WSDL, remove any sensitive data such as endpoints, verify that the copy has the same problem, and then post it here so that we can recreate the issue.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors