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 "Jan-Willem Borleffs (JIRA)" <ji...@apache.org> on 2010/11/18 16:35:14 UTC

[jira] Created: (AXIS2-4887) TargetNameSpace required for XSD2Java

TargetNameSpace required for XSD2Java
-------------------------------------

                 Key: AXIS2-4887
                 URL: https://issues.apache.org/jira/browse/AXIS2-4887
             Project: Axis2
          Issue Type: Bug
          Components: codegen
            Reporter: Jan-Willem Borleffs
            Priority: Minor
             Fix For: 1.5.3


When omitting the targetNamespace attribute from an xsd, or providing it with an empty value, code generation with the XSD2Java class fails with a NullPointerException.

The reason is that the SchemaCompiler class calls URLProcessor.makePackageName() with the value returned by the call to schema.getTargetNamespace(), which is null in this case.

The URLProcessor.makePackageName() method then generates the exception, because it tries to call methods from the null object.

To me, this is a bug, because AFAIK, the targetNamespace attribute isn't required.


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


[jira] Updated: (AXIS2-4887) TargetNameSpace required for XSD2Java

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

Jan-Willem Borleffs updated AXIS2-4887:
---------------------------------------

    Affects Version/s: 1.5.3

> TargetNameSpace required for XSD2Java
> -------------------------------------
>
>                 Key: AXIS2-4887
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4887
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5.3
>            Reporter: Jan-Willem Borleffs
>            Priority: Minor
>
> When omitting the targetNamespace attribute from an xsd, or providing it with an empty value, code generation with the XSD2Java class fails with a NullPointerException.
> The reason is that the SchemaCompiler class calls URLProcessor.makePackageName() with the value returned by the call to schema.getTargetNamespace(), which is null in this case.
> The URLProcessor.makePackageName() method then generates the exception, because it tries to call methods from the null object.
> To me, this is a bug, because AFAIK, the targetNamespace attribute isn't required.

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


[jira] Commented: (AXIS2-4887) TargetNameSpace required for XSD2Java

Posted by "Jan-Willem Borleffs (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933730#action_12933730 ] 

Jan-Willem Borleffs commented on AXIS2-4887:
--------------------------------------------

Tested successfully with the following snapshot:

http://repository.apache.org/snapshots/org/apache/axis2/axis2/SNAPSHOT/axis2-SNAPSHOT-jar.jar

Cheers!

> TargetNameSpace required for XSD2Java
> -------------------------------------
>
>                 Key: AXIS2-4887
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4887
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5.3
>            Reporter: Jan-Willem Borleffs
>            Priority: Minor
>
> When omitting the targetNamespace attribute from an xsd, or providing it with an empty value, code generation with the XSD2Java class fails with a NullPointerException.
> The reason is that the SchemaCompiler class calls URLProcessor.makePackageName() with the value returned by the call to schema.getTargetNamespace(), which is null in this case.
> The URLProcessor.makePackageName() method then generates the exception, because it tries to call methods from the null object.
> To me, this is a bug, because AFAIK, the targetNamespace attribute isn't required.

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


[jira] Resolved: (AXIS2-4887) TargetNameSpace required for XSD2Java

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

Andreas Veithen resolved AXIS2-4887.
------------------------------------

       Resolution: Duplicate
    Fix Version/s: 1.5.4
                   1.6

This appears to be a duplicate of AXIS2-3851. I've merged the fix to the 1.5 branch so that it will be available in 1.5.4.

> TargetNameSpace required for XSD2Java
> -------------------------------------
>
>                 Key: AXIS2-4887
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4887
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5.3
>            Reporter: Jan-Willem Borleffs
>            Priority: Minor
>             Fix For: 1.6, 1.5.4
>
>
> When omitting the targetNamespace attribute from an xsd, or providing it with an empty value, code generation with the XSD2Java class fails with a NullPointerException.
> The reason is that the SchemaCompiler class calls URLProcessor.makePackageName() with the value returned by the call to schema.getTargetNamespace(), which is null in this case.
> The URLProcessor.makePackageName() method then generates the exception, because it tries to call methods from the null object.
> To me, this is a bug, because AFAIK, the targetNamespace attribute isn't required.

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


[jira] Commented: (AXIS2-4887) TargetNameSpace required for XSD2Java

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

Andreas Veithen commented on AXIS2-4887:
----------------------------------------

I think that some fixes for this issue have been done on the trunk. Can you test that with a snapshot build from the trunk (i.e. SNAPSHOT, not 1.5.4-SNAPSHOT).

> TargetNameSpace required for XSD2Java
> -------------------------------------
>
>                 Key: AXIS2-4887
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4887
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5.3
>            Reporter: Jan-Willem Borleffs
>            Priority: Minor
>
> When omitting the targetNamespace attribute from an xsd, or providing it with an empty value, code generation with the XSD2Java class fails with a NullPointerException.
> The reason is that the SchemaCompiler class calls URLProcessor.makePackageName() with the value returned by the call to schema.getTargetNamespace(), which is null in this case.
> The URLProcessor.makePackageName() method then generates the exception, because it tries to call methods from the null object.
> To me, this is a bug, because AFAIK, the targetNamespace attribute isn't required.

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


[jira] Updated: (AXIS2-4887) TargetNameSpace required for XSD2Java

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

Andreas Veithen updated AXIS2-4887:
-----------------------------------

    Fix Version/s:     (was: 1.5.3)

Can you please fill in the "Affects Version" field?

> TargetNameSpace required for XSD2Java
> -------------------------------------
>
>                 Key: AXIS2-4887
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4887
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>            Reporter: Jan-Willem Borleffs
>            Priority: Minor
>
> When omitting the targetNamespace attribute from an xsd, or providing it with an empty value, code generation with the XSD2Java class fails with a NullPointerException.
> The reason is that the SchemaCompiler class calls URLProcessor.makePackageName() with the value returned by the call to schema.getTargetNamespace(), which is null in this case.
> The URLProcessor.makePackageName() method then generates the exception, because it tries to call methods from the null object.
> To me, this is a bug, because AFAIK, the targetNamespace attribute isn't required.

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