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 "Dennis Sosnoski (JIRA)" <ji...@apache.org> on 2007/03/29 11:40:25 UTC

[jira] Created: (AXIS2-2431) JAXB code generation failure

JAXB code generation failure
----------------------------

                 Key: AXIS2-2431
                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: nightly
            Reporter: Dennis Sosnoski
            Priority: Critical


Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:

     [java] Caused by: java.lang.NullPointerException
     [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

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

Deepal Jayasinghe updated AXIS2-2431:
-------------------------------------

    Priority: Blocker  (was: Critical)

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

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

Davanum Srinivas updated AXIS2-2431:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

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

Dennis Sosnoski updated AXIS2-2431:
-----------------------------------

    Attachment: jaxb-issue.zip

Attached sample with Ant build.xml to demonstrate problem with 1.2RC1 (after copying the JAXB RI 2.0.2 files into the Axis2 /lib directory, with build.properties specifying the Axis2 installation).

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Priority: Critical
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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] Resolved: (AXIS2-2431) JAXB code generation failure

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

Davanum Srinivas resolved AXIS2-2431.
-------------------------------------

    Resolution: Fixed

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

Posted by "Dennis Sosnoski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489962 ] 

Dennis Sosnoski commented on AXIS2-2431:
----------------------------------------

Yes, this technique of embedding multiple schemas into a single WSDL is a common approach. The same WSDL works fine for ADB, JiBX, and XMLBeans, too.

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Priority: Critical
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

Posted by "Jose Antonio (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498725 ] 

Jose Antonio commented on AXIS2-2431:
-------------------------------------

I forgot to say that they generate code with xmlbeans and adb (haven't tried with jibx). ADB wasn't generating code until the 1.2 release due to the very complex schemas my service has but xmlbeans has generated code for my services since Axis2 1.0.

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Priority: Critical
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

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

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

your wsdl has two schemas as follows
<schema elementFormDefault="qualified"
                targetNamespace="http://ws.sosnoski.com/library/wsdl"
                xmlns="http://www.w3.org/2001/XMLSchema">

            <import namespace="http://ws.sosnoski.com/library/types"/>
</schema>
<schema elementFormDefault="qualified"
        targetNamespace="http://ws.sosnoski.com/library/types"
        xmlns="http://www.w3.org/2001/XMLSchema">
</schema>

but if I put the second schema into a seperate file and import it to the first file giving a schema location it works fine.
i.e
<schema elementFormDefault="qualified"
                targetNamespace="http://ws.sosnoski.com/library/wsdl"
                xmlns="http://www.w3.org/2001/XMLSchema">

            <import namespace="http://ws.sosnoski.com/library/types" schemaLocation="type.xsd"/>
</schema>

Jaxb compiler takes one schema at time and compile it. So it can not find that inline schema in the first instace.
is this (i.e just importing the namespace without a schema location) a standard way of refering another inline schema?


> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Priority: Critical
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509343 ] 

Davanum Srinivas commented on AXIS2-2431:
-----------------------------------------

Fixed in svn revision 552228

thanks,
dims

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

Posted by "Jose Antonio (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498720 ] 

Jose Antonio commented on AXIS2-2431:
-------------------------------------

I have the same problem with Axis2 1.2 but all the imports in my .xsd files has a schemaLocation element.

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Priority: Critical
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

-- 
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-2431) JAXB code generation failure

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

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

Can you attach your wsdl?

> JAXB code generation failure
> ----------------------------
>
>                 Key: AXIS2-2431
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2431
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Dennis Sosnoski
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>         Attachments: jaxb-issue.zip
>
>
> Trying to use JAXB data binding with Wsdl2Java results in NullPointerException:
>      [java] Caused by: java.lang.NullPointerException
>      [java]     at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.

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