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 "Kristof Vanbecelaere (JIRA)" <ji...@apache.org> on 2008/10/29 12:09:44 UTC

[jira] Created: (AXIS2-4107) NPE in wsdl2java

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


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.


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


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748121#action_12748121 ] 

Andreas Veithen commented on AXIS2-4107:
----------------------------------------

Now I understand: the pretty printer not only scans the source directory, but the entire output directory. Since this directory may contain subdirectories that are not accessible (permissions), there can indeed be an I/O error. This is actually very bad because it also means that if the output directory contains other Java files (and a Java pretty printer is configured), wsdl2java will replace these files. A similar issue has been described in AXIS2-2947.

> 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.


[jira] Updated: (AXIS2-4107) NPE in wsdl2java

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi updated AXIS2-4107:
------------------------------------------------

    Attachment: codegen.patch

is it possible you to test with this patch?

> 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: codegen.patch, 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.


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Trenton D. Adams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744702#action_12744702 ] 

Trenton D. Adams commented on AXIS2-4107:
-----------------------------------------

Um, duh, silly me...

sh /extra/apas/axis2-1.4.1/bin/wsdl2java.sh -uri InstitutionInformationAndCodesServices.wsdl

> 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.


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Trenton D. Adams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744631#action_12744631 ] 

Trenton D. Adams commented on AXIS2-4107:
-----------------------------------------

I am having this problem as well, and it's not going away.  It doesn't seem to matter where I am, if I use a specific WSDL, it just doesn't work.  I cannot depend on Java 1.5 unfortunately, so I cannot use axis 2 v1.5.x

What should I do?

> 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
>
> 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.


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748078#action_12748078 ] 

Andreas Veithen commented on AXIS2-4107:
----------------------------------------

According to the stack trace and to Amila's fix, the NPE is caused by the fact that File#listFiles returns null in the following piece of code:

        } else if (file.isDirectory()) {
            File[] childFiles = file.listFiles();
            for (int i = 0; i < childFiles.length; i++) {
                prettify(childFiles[i], configuration);
            }
        }

This is normally not possible because listFiles only returns null if the "abstract pathname does not denote a directory, or if an I/O error occurs". Since we use File#isDirectory to check if the path exists and is a directory, this should never occur, except if something really strange is happening with your system or JRE. Note that the reporter of this issue used Cygwin, which might be part of the explanation.

> 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.


[jira] Issue Comment Edited: (AXIS2-4107) NPE in wsdl2java

Posted by "Trenton D. Adams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744702#action_12744702 ] 

Trenton D. Adams edited comment on AXIS2-4107 at 8/18/09 1:57 PM:
------------------------------------------------------------------

Um, duh, silly me...

sh /extra/apas/axis2-1.4.1/bin/wsdl2java.sh -uri InstitutionInformationAndCodesServices.wsdl

BTW, I tried Java 1.4.2 and Java 1.5.x

      was (Author: trenton):
    Um, duh, silly me...

sh /extra/apas/axis2-1.4.1/bin/wsdl2java.sh -uri InstitutionInformationAndCodesServices.wsdl
  
> 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.


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Trenton D. Adams (JIRA)" <ji...@apache.org>.
    [ 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.
trenta@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...
trenta@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.


[jira] Resolved: (AXIS2-4107) NPE in wsdl2java

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4107.
-------------------------------------------------

    Resolution: Fixed

fixed the issue

> 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
>
> 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.


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


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644238#action_12644238 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4107:
-----------------------------------------------------

I could not reproduce the issue.

However I added a null pointer check. Please have a look.



> 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
>
> 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.


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


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744681#action_12744681 ] 

Andreas Veithen commented on AXIS2-4107:
----------------------------------------

Can you also provide the wsdl2java command line options that you use?

> 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.


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Kristof Vanbecelaere (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644358#action_12644358 ] 

Kristof Vanbecelaere commented on AXIS2-4107:
---------------------------------------------

I found out the NPE only appears if you run the command line from a root directory (like d:\). So I am happy either way.

> 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
>
> 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.


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


[jira] Updated: (AXIS2-4107) NPE in wsdl2java

Posted by "Trenton D. Adams (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trenton D. Adams updated AXIS2-4107:
------------------------------------

    Attachment: InstitutionInformationAndCodesServices.wsdl

Attached is the WSDL I'm having a problem with.

> 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.


[jira] Assigned: (AXIS2-4107) NPE in wsdl2java

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-4107:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>
> 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.


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


[jira] Commented: (AXIS2-4107) NPE in wsdl2java

Posted by "Trenton D. Adams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748425#action_12748425 ] 

Trenton D. Adams commented on AXIS2-4107:
-----------------------------------------

Who were you asking Amila?

I personally can't right now, unless you attach a packaged up system.  I'm scrambling to finish up as much work as possible before I go on leave next week.  But I could take a moment if I had a binary distribution like I downloaded from the website, with the shell scripts and such.

Thanks.

> 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: codegen.patch, 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.