You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vishwal Shah <sh...@gmail.com> on 2010/04/23 08:57:58 UTC

Standalone Schema without Target Namespace - Axis 2.1.5.1

Hi,
I am trying to generate Stubs for Standalone schema using Axis2 XSD2Java ,
My Schema does not have a Target Namespace. I get the below error

     [echo] Generating code ...
     [java] Exception in thread "main" java.lang.NullPointerException
     [java]     at
org.apache.axis2.util.URLProcessor.makePackageName(URLProcessor.java:46)
     [java]     at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:322)
     [java]     at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
     [java]     at
org.apache.axis2.schema.XSD2Java.compile(XSD2Java.java:96)
     [java]     at org.apache.axis2.schema.XSD2Java.main(XSD2Java.java:46)


Does anyone has any idea or patch that fixes this ? I am using Axis
2.1.5.1.


Thanks,
Vish

Re: Standalone Schema without Target Namespace - Axis 2.1.5.1

Posted by Dave Cherkassky <dc...@djinnsoft.com>.
Vish:

I don't have a solution, but I want to confirm that it's not just you.

I ran into the exact same behaviour about 2 months ago.  At the end I just gave up and added a namespace.

Hopefully you'll succeed in figuring it out.  Good luck,
-- 
Dave Cherkassky
   VP of Software Development
   DJiNN Software Inc.

On 23/04/2010 2:57 AM, Vishwal Shah wrote:
> Hi,
> I am trying to generate Stubs for Standalone schema using Axis2 XSD2Java
> , My Schema does not have a Target Namespace. I get the below error
>
>       [echo] Generating code ...
>       [java] Exception in thread "main" java.lang.NullPointerException
>       [java]     at
> org.apache.axis2.util.URLProcessor.makePackageName(URLProcessor.java:46)
>       [java]     at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:322)
>       [java]     at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
>       [java]     at
> org.apache.axis2.schema.XSD2Java.compile(XSD2Java.java:96)
>       [java]     at org.apache.axis2.schema.XSD2Java.main(XSD2Java.java:46)
>
>
> Does anyone has any idea or patch that fixes this ? I am using Axis
> 2.1.5.1.
>
>
> Thanks,
> Vish


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


Re: Standalone Schema without Target Namespace - Axis 2.1.5.1

Posted by Amila Suriarachchi <am...@gmail.com>.
On Sat, Apr 24, 2010 at 12:30 PM, Andreas Veithen <andreas.veithen@gmail.com
> wrote:

> Vish,
>
> In JIRA, there is a tab labelled "Subversion Commits" that allows you
> to see the changes related to the issue. You can use that information
> to (try to) merge the changes into 1.5.1.
>

Please have a look at here[1]. Anyway it is better to have a name space
declared to schema. Otherwise
you may get some interop problems.

thanks,
Amila.

[1]
http://www.ws-i.org/Profiles/BasicProfile-1.1.html#Schema_targetNamespace_Structure

>
> Andreas
>
> On Sat, Apr 24, 2010 at 00:25, Vishwal Shah <sh...@gmail.com> wrote:
> > Hi Andreas,
> >  I did see that is fixed in 1.6, unfortunately i am on 1.5.1 and for me
> to
> > move to 1.6 is very difficult. Would be great if you could point me to
> code
> > that i can merge with 1.5.l and fix this issue ?
> >
> >
> > Thanks,
> > Vish
> >
> >
> > On Fri, Apr 23, 2010 at 1:34 PM, Andreas Veithen <
> andreas.veithen@gmail.com>
> > wrote:
> >>
> >> See AXIS2-3851.
> >>
> >> Andreas
> >>
> >> On Fri, Apr 23, 2010 at 08:57, Vishwal Shah <sh...@gmail.com>
> wrote:
> >> > Hi,
> >> > I am trying to generate Stubs for Standalone schema using Axis2
> XSD2Java
> >> > ,
> >> > My Schema does not have a Target Namespace. I get the below error
> >> >
> >> >      [echo] Generating code ...
> >> >      [java] Exception in thread "main" java.lang.NullPointerException
> >> >      [java]     at
> >> >
> org.apache.axis2.util.URLProcessor.makePackageName(URLProcessor.java:46)
> >> >      [java]     at
> >> >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:322)
> >> >      [java]     at
> >> >
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> >> >      [java]     at
> >> > org.apache.axis2.schema.XSD2Java.compile(XSD2Java.java:96)
> >> >      [java]     at
> >> > org.apache.axis2.schema.XSD2Java.main(XSD2Java.java:46)
> >> >
> >> >
> >> > Does anyone has any idea or patch that fixes this ? I am using Axis
> >> > 2.1.5.1.
> >> >
> >> >
> >> > Thanks,
> >> > Vish
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> >> For additional commands, e-mail: java-user-help@axis.apache.org
> >>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: Standalone Schema without Target Namespace - Axis 2.1.5.1

Posted by Andreas Veithen <an...@gmail.com>.
Vish,

In JIRA, there is a tab labelled "Subversion Commits" that allows you
to see the changes related to the issue. You can use that information
to (try to) merge the changes into 1.5.1.

Andreas

On Sat, Apr 24, 2010 at 00:25, Vishwal Shah <sh...@gmail.com> wrote:
> Hi Andreas,
>  I did see that is fixed in 1.6, unfortunately i am on 1.5.1 and for me to
> move to 1.6 is very difficult. Would be great if you could point me to code
> that i can merge with 1.5.l and fix this issue ?
>
>
> Thanks,
> Vish
>
>
> On Fri, Apr 23, 2010 at 1:34 PM, Andreas Veithen <an...@gmail.com>
> wrote:
>>
>> See AXIS2-3851.
>>
>> Andreas
>>
>> On Fri, Apr 23, 2010 at 08:57, Vishwal Shah <sh...@gmail.com> wrote:
>> > Hi,
>> > I am trying to generate Stubs for Standalone schema using Axis2 XSD2Java
>> > ,
>> > My Schema does not have a Target Namespace. I get the below error
>> >
>> >      [echo] Generating code ...
>> >      [java] Exception in thread "main" java.lang.NullPointerException
>> >      [java]     at
>> > org.apache.axis2.util.URLProcessor.makePackageName(URLProcessor.java:46)
>> >      [java]     at
>> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:322)
>> >      [java]     at
>> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
>> >      [java]     at
>> > org.apache.axis2.schema.XSD2Java.compile(XSD2Java.java:96)
>> >      [java]     at
>> > org.apache.axis2.schema.XSD2Java.main(XSD2Java.java:46)
>> >
>> >
>> > Does anyone has any idea or patch that fixes this ? I am using Axis
>> > 2.1.5.1.
>> >
>> >
>> > Thanks,
>> > Vish
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>
>

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


Re: Standalone Schema without Target Namespace - Axis 2.1.5.1

Posted by Vishwal Shah <sh...@gmail.com>.
Hi Andreas,
 I did see that is fixed in 1.6, unfortunately i am on 1.5.1 and for me to
move to 1.6 is very difficult. Would be great if you could point me to code
that i can merge with 1.5.l and fix this issue ?


Thanks,
Vish


On Fri, Apr 23, 2010 at 1:34 PM, Andreas Veithen
<an...@gmail.com>wrote:

> See AXIS2-3851.
>
> Andreas
>
> On Fri, Apr 23, 2010 at 08:57, Vishwal Shah <sh...@gmail.com> wrote:
> > Hi,
> > I am trying to generate Stubs for Standalone schema using Axis2 XSD2Java
> ,
> > My Schema does not have a Target Namespace. I get the below error
> >
> >      [echo] Generating code ...
> >      [java] Exception in thread "main" java.lang.NullPointerException
> >      [java]     at
> > org.apache.axis2.util.URLProcessor.makePackageName(URLProcessor.java:46)
> >      [java]     at
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:322)
> >      [java]     at
> > org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
> >      [java]     at
> > org.apache.axis2.schema.XSD2Java.compile(XSD2Java.java:96)
> >      [java]     at
> org.apache.axis2.schema.XSD2Java.main(XSD2Java.java:46)
> >
> >
> > Does anyone has any idea or patch that fixes this ? I am using Axis
> > 2.1.5.1.
> >
> >
> > Thanks,
> > Vish
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: Standalone Schema without Target Namespace - Axis 2.1.5.1

Posted by Andreas Veithen <an...@gmail.com>.
See AXIS2-3851.

Andreas

On Fri, Apr 23, 2010 at 08:57, Vishwal Shah <sh...@gmail.com> wrote:
> Hi,
> I am trying to generate Stubs for Standalone schema using Axis2 XSD2Java ,
> My Schema does not have a Target Namespace. I get the below error
>
>      [echo] Generating code ...
>      [java] Exception in thread "main" java.lang.NullPointerException
>      [java]     at
> org.apache.axis2.util.URLProcessor.makePackageName(URLProcessor.java:46)
>      [java]     at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:322)
>      [java]     at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
>      [java]     at
> org.apache.axis2.schema.XSD2Java.compile(XSD2Java.java:96)
>      [java]     at org.apache.axis2.schema.XSD2Java.main(XSD2Java.java:46)
>
>
> Does anyone has any idea or patch that fixes this ? I am using Axis
> 2.1.5.1.
>
>
> Thanks,
> Vish
>

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