[wsas-java-dev] [jira] Created: (WSAS-629) xmlbeans code gen fails
with
InvocationTargetException if a wsdl:documentation element exists inside
schema
Charitha Kankanamge (JIRA)
jira at wso2.org
Mon Dec 3 04:15:03 PST 2007
xmlbeans code gen fails with InvocationTargetException if a wsdl:documentation element exists inside schema
-----------------------------------------------------------------------------------------------------------
Key: WSAS-629
URL: http://wso2.org/jira/browse/WSAS-629
Project: WSO2 WSAS
Issue Type: Bug
Affects Versions: 2.1
Environment: winxp, jdk15
Reporter: Charitha Kankanamge
Assigned To: Amila Suriarachchi
Attachments: calculatorschemaelementrestrictionService.aar
ERROR [2007-12-03 17:33:35,531] Error occurred during code generation. java.lang.reflect.Invocation
TargetException
org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect
.InvocationTargetException
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265
)
at org.wso2.codegen.service.java.JavaClientGeneratorService.generate(JavaClientGeneratorServ
ice.java:115)
at org.wso2.codegen.service.java.JavaClientGeneratorServiceMessageReceiverInOut.invokeBusine
ssLogic(JavaClientGeneratorServiceMessageReceiverInOut.java:48)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractI
nOutSyncMessageReceiver.java:42)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:9
6)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUt
ils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:142)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt
p11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.ja
va:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:1
14)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218
)
... 26 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:1
03)
... 27 more
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4
a: Expected elements 'annotation at http://www.w3.org/2001/XMLSchema simpleType at http://www.w3.org/2001/
XMLSchema complexType at http://www.w3.org/2001/XMLSchema group at http://www.w3.org/2001/XMLSchema attrib
uteGroup at http://www.w3.org/2001/XMLSchema element at http://www.w3.org/2001/XMLSchema attribute at http://
www.w3.org/2001/XMLSchema notation at http://www.w3.org/2001/XMLSchema' instead of 'documentation at http:
//schemas.xmlsoap.org/wsdl/' here in element schema at http://www.w3.org/2001/XMLSchema
at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java
:319)
... 32 more
Caused by: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4a: Expected elements 'annota
tion at http://www.w3.org/2001/XMLSchema simpleType at http://www.w3.org/2001/XMLSchema complexType at http:/
/www.w3.org/2001/XMLSchema group at http://www.w3.org/2001/XMLSchema attributeGroup at http://www.w3.org/2
001/XMLSchema element at http://www.w3.org/2001/XMLSchema attribute at http://www.w3.org/2001/XMLSchema no
tation at http://www.w3.org/2001/XMLSchema' instead of 'documentation at http://schemas.xmlsoap.org/wsdl/'
here in element schema at http://www.w3.org/2001/XMLSchema
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler
.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java
:183)
... 32 more
Steps to reproduce:
============
1. Deploy the attached service
2. Go to WSAS management console and select the deployed service
3. Select 'Generate Client'
4. Select XMLBeans as data binding
5. Click on 'Generate'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Wsas-java-dev
mailing list