[
https://wso2.org/jira/browse/WSAS-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16657#action_16657
]
jhon book commented on WSAS-596:
--------------------------------
http://forums.ugo.com/member.php?u=52853
http://forums.ugo.com/member.php?u=52854
http://forums.ugo.com/member.php?u=52855
http://forums.ugo.com/member.php?u=52856
http://forums.ugo.com/member.php?u=52857
http://forums.ugo.com/member.php?u=52858
http://forums.ugo.com/member.php?u=52859
http://forums.ugo.com/member.php?u=52860
http://forums.ugo.com/member.php?u=52861
http://forums.ugo.com/member.php?u=52863
http://forums.ugo.com/member.php?u=52864
http://forums.ugo.com/member.php?u=52865
http://forums.ugo.com/member.php?u=52867
http://forums.ugo.com/member.php?u=52868
http://forums.ugo.com/member.php?u=52869
http://forums.ugo.com/member.php?u=52897
http://forums.ugo.com/member.php?u=52898
http://forums.ugo.com/member.php?u=52899
http://forums.ugo.com/member.php?u=52900
http://forums.ugo.com/member.php?u=52901
http://forums.ugo.com/member.php?u=52902
http://forums.ugo.com/member.php?u=52904
http://forums.ugo.com/member.php?u=52905
http://forums.ugo.com/member.php?u=52906
http://forums.ugo.com/member.php?u=52908
http://forums.ugo.com/member.php?u=52909
http://forums.ugo.com/member.php?u=52910
http://forums.ugo.com/member.php?u=52911
http://forums.ugo.com/member.php?u=52913
http://forums.ugo.com/member.php?u=52914
> NPE thrown when generating client if the wsdl includes schema imports and
> wsdl 2 is used
> ----------------------------------------------------------------------------------------
>
> Key: WSAS-596
> URL: https://wso2.org/jira/browse/WSAS-596
> Project: WSO2 WSAS
> Issue Type: Bug
> Components: core
> Affects Versions: 2.1
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Assignee: Keith Godwin Chapman
> Attachments: BaseDataTypesDocLitBService.aar
>
>
> I'm getting following exception when trying to generate client using wsdl2 is
> the wsdl contains schema import references.
> Woden[Error],0:0,WSDL521,Could not parse an inline schema in the WSDL at URL
> "null".,java.lang.RuntimeException:java.lang.NullPointerException
> ERROR [2007-10-31 11:47:54,640] Error occurred during code generation.
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
> at
> org.wso2.codegen.service.java.JavaClientGeneratorService.generate(JavaClientGeneratorServ
> ice.java:113)
> 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.java: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.java: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(Http11BaseProtocol.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: org.apache.axis2.AxisFault
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:236)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:101)
> ... 26 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.createAxisMessage(WSDL20ToAxisServiceBuilder.java:976)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOperations(WSDL20ToAxisServiceBuilder.java:926)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterface(WSDL20ToAxisServiceBuilder.java:849)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:306)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:233)
> ... 27 more
> Steps to reproduce:
> ================
> 1. Deploy the attached service archive
> 2. Go to WSAS stub generation page
> 3. Select wsdl 2.0 as the wsdl type and click generate
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev