[
https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748094#action_12748094
]
Trenton D. Adams commented on AXIS2-4107:
-----------------------------------------
It appears to be something with your shell scripts...
Observe, the first case is in the bin directory, the second case is in the
directory where the wsdl is. I am running Linux.
tre...@reuben /extra/apas/axis2-1.4.1/bin $ sh -x
/extra/apas/axis2-1.4.1/bin/wsdl2java.sh -uri
/tmp/InstitutionInformationAndCodesServices.asmx.wsdl
++ dirname /extra/apas/axis2-1.4.1/bin/wsdl2java.sh
+ dir=/extra/apas/axis2-1.4.1/bin
+ sh /extra/apas/axis2-1.4.1/bin/axis2.sh org.apache.axis2.wsdl.WSDL2Java -uri
/tmp/InstitutionInformationAndCodesServices.asmx.wsdl
Using AXIS2_HOME: /extra/apas/axis2-1.4.1
Using JAVA_HOME: /home/trenta/.gentoo/java-config-2/current-user-vm
Retrieving document at '/tmp/InstitutionInformationAndCodesServices.asmx.wsdl'.
This does not...
tre...@reuben /tmp $ sh -x /extra/apas/axis2-1.4.1/bin/wsdl2java.sh -uri
/tmp/InstitutionInformationAndCodesServices.asmx.wsdl
++ dirname /extra/apas/axis2-1.4.1/bin/wsdl2java.sh
+ dir=/extra/apas/axis2-1.4.1/bin
+ sh /extra/apas/axis2-1.4.1/bin/axis2.sh org.apache.axis2.wsdl.WSDL2Java -uri
/tmp/InstitutionInformationAndCodesServices.asmx.wsdl
Using AXIS2_HOME: /extra/apas/axis2-1.4.1
Using JAVA_HOME: /home/trenta/.gentoo/java-config-2/current-user-vm
Retrieving document at '/tmp/InstitutionInformationAndCodesServices.asmx.wsdl'.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.NullPointerException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.NullPointerException
at
org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:50)
at
org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:51)
at
org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.java:37)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
... 2 more
> NPE in wsdl2java
> ----------------
>
> Key: AXIS2-4107
> URL: https://issues.apache.org/jira/browse/AXIS2-4107
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4.1
> Environment: jdk1.5.0_16, Windows XP
> Reporter: Kristof Vanbecelaere
> Assignee: Amila Chinthaka Suriarachchi
> Attachments: InstitutionInformationAndCodesServices.wsdl
>
>
> Got an NPE when running the command-line below.
> $ /cygdrive/d/tools/axis2-1.4.1/bin/wsdl2java.sh -uri
> http://ws.agiv.be/crabws/nodataset.asmx?WSDL -d adb -s -u --http-proxy-port
> ... --http-proxy-host ...
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.NullPointerException
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.NullPointerException
> at
> org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:50)
> at
> org.apache.axis2.wsdl.codegen.extension.JavaPrettyPrinterExtension.prettify(JavaPrettyPrinterExtension.java:51)
> at
> org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.java:37)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
> ... 2 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.