axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan-Willem Borleffs (JIRA)" <>
Subject [jira] Commented: (AXIS2-4887) TargetNameSpace required for XSD2Java
Date Fri, 19 Nov 2010 09:01:14 GMT


Jan-Willem Borleffs commented on AXIS2-4887:

Tested successfully with the following snapshot:


> TargetNameSpace required for XSD2Java
> -------------------------------------
>                 Key: AXIS2-4887
>                 URL:
>             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:
For additional commands, e-mail:

View raw message