You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2010/12/24 15:41:49 UTC

[jira] Resolved: (AXIS2-3890) Nullpointerexception in WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:952)

     [ https://issues.apache.org/jira/browse/AXIS2-3890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-3890.
-------------------------------------------------

    Resolution: Invalid

can not reproduce the issue without having the wsdl file.

It is incorrect to have portType in an XSD. 

Please test this with the current trunk or latest Axis2 1.5.4. I have fixed most of the wsdl import issues with wsdl2java tool.

> Nullpointerexception in WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:952)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3890
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3890
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: WinXP with Apache Tomcat 6.0.14 with AXIS2 and WS-Security using rampart-1.4, rahas-1.4
>            Reporter: Thomas Poetter
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: WSDL11ToAxisServiceBuilder.java
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> This call stack is dumped upon program call:
> C:\Develop\Tools\axis2-1.4\bin>WSDL2Java.bat -uri C:\AIS\schemata\AccountInformationServiceSecAnnotated.wsdl -p com.commerzbank.ais.InterActiveWebClientRampart -o C:\AIS\InterActiveWebServicesGeneratedSec2
> Using AXIS2_HOME:   C:\Develop\Tools\axis2-1.4
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_15
> Retrieving document at 'C:\AIS\schemata\AccountInformationServiceSecAnnotated.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/AccountInformation.xsd', relative
> to 'file:/C:/AIS/schemata/AccountInformationServiceSecAnnotated.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/camt.007.002.01.xsd', relative to 'file:/C:/AIS/schemata/AccountInformation.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/InteractiveCommon.xsd', relative to 'file:/C:/AIS/schemata/AccountInformation.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/camt.007.002.01.xsd', relative to 'file:/C:/AIS/schemata/InteractiveCommon.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/pain.001.001.02.xsd', relative to 'file:/C:/AIS/schemata/InteractiveCommon.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/pain.001.001.02.xsd', relative to 'file:/C:/AIS/schemata/AccountInformation.xsd'.
> Retrieving schema at 'file:///C:/AIS/schemata/pain.001.001.02.xsd', relative to 'file:/C:/AIS/schemata/AccountInformationServiceSecAnnotated.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/InteractiveCommon.xsd', relative to 'file:/C:/AIS/schemata/AccountInformationServiceSecAnnotated.wsdl'.
> Retrieving schema at 'file:///C:/AIS/schemata/InteractiveCommon.xsd', relative to 'file:/C:/AIS/schemata/AccountInformationServiceSecAnnotated.wsdl'.
> [ERROR]
> java.lang.NullPointerException
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:952)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:331)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:952)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:331)
>         ... 4 more
> C:\Develop\Tools\axis2-1.4\bin>
> The WSDL is confidential as also the specific schemata. Security annotations were made to an existing WSDL along the lines of the example given by the Rampart tutorial at:
> http://wso2.org/library/3190   and this WSDL: http://wso2.org/files/UToverHTTPS.xml
> Public XSDs can be retrieved from here:
> http://www.iso20022.org/catalogue_of_unifi_messages.page

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org