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 al...@fiserv.com on 2007/09/21 22:12:36 UTC

WSDL11ToAxisServiceBuilder.populateBinding causing NPE?

I have a fairly simple WSDL (attached) and am trying to run wsdltojava 
thusly:

C:\Projects\SecureMessaging\trunk\wsdl>%AXIS2_HOME%\bin\wsdl2java.bat 
--server-side --service-description --serverside-interface -uri 
MessageService.wsdl --output .\ --package com.fiserve.sourceone.messaging 
-databinding-method xmlbeans --unpack-classes

However, this throws the following exception:
[ERROR] 
java.lang.NullPointerException
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:596)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:422)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:377)
        at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:281)
        at 
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)




Any ideas on this?


Re: WSDL11ToAxisServiceBuilder.populateBinding causing NPE?

Posted by Amila Suriarachchi <am...@gmail.com>.
On 9/24/07, Anne Thomas Manes <at...@gmail.com> wrote:
>
> Might I suggest that Axis2 should not return an NPE in this situation?


yes, it should  throw a proper exception. I'll fix it.

Anne
>
> On 9/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
> > the names you have declared in operation fault and the
> > <wsdl:fault
> > message="secmsgns:MessagingNotEnabledForPartnerFault"
> > name="MessagingNotEnabledForPartnerFault"/>
> >
> > and the binding fault  element
> > <wsdl:fault name="fault">
> >                 <soap:fault use="literal" name="fault" />
> >             </wsdl:fault>
> >
> > is different this should be
> > <wsdl:fault name="MessagingNotEnabledForPartnerFault">
> >                 <soap:fault use="literal"
> > name="MessagingNotEnabledForPartnerFault" />
> >             </wsdl:fault>
> >
> > Amila.
> >
> >
> > On 9/22/07, alexandra.stehman@fiserv.com <al...@fiserv.com>
> > wrote:
> > >
> > >
> > > I have a fairly simple WSDL (attached) and am trying to run wsdltojava
> > thusly:
> > >
> > >
> > C:\Projects\SecureMessaging\trunk\wsdl>%AXIS2_HOME%\bin\wsdl2java.bat
> > --server-side --service-description --serverside-interface -uri
> > MessageService.wsdl --output .\ --package
> com.fiserve.sourceone.messaging
> > -databinding-method xmlbeans --unpack-classes
> > >
> > > However, this throws the following exception:
> > > [ERROR]
> > > java.lang.NullPointerException
> > >         at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(
> WSDL11ToAxisServiceBuilder.java:596)
> > >         at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint
> (WSDL11ToAxisServiceBuilder.java:422)
> > >         at
> >
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(
> WSDL11ToAxisServiceBuilder.java:377)
> > >         at
> > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
> WSDL11ToAxisServiceBuilder.java:281)
> > >         at
> >
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices
> (WSDL11ToAllAxisServicesBuilder.java:109)
> > >         at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:141)
> > >         at
> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> > >         at
> > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> > >
> > >
> > >
> > >
> > > Any ideas on this?
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Amila Suriarachchi,
> > WSO2 Inc.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Re: WSDL11ToAxisServiceBuilder.populateBinding causing NPE?

Posted by Anne Thomas Manes <at...@gmail.com>.
Might I suggest that Axis2 should not return an NPE in this situation?

Anne

On 9/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
> the names you have declared in operation fault and the
> <wsdl:fault
> message="secmsgns:MessagingNotEnabledForPartnerFault"
> name="MessagingNotEnabledForPartnerFault"/>
>
> and the binding fault  element
> <wsdl:fault name="fault">
>                 <soap:fault use="literal" name="fault" />
>             </wsdl:fault>
>
> is different this should be
> <wsdl:fault name="MessagingNotEnabledForPartnerFault">
>                 <soap:fault use="literal"
> name="MessagingNotEnabledForPartnerFault" />
>             </wsdl:fault>
>
> Amila.
>
>
> On 9/22/07, alexandra.stehman@fiserv.com <al...@fiserv.com>
> wrote:
> >
> >
> > I have a fairly simple WSDL (attached) and am trying to run wsdltojava
> thusly:
> >
> >
> C:\Projects\SecureMessaging\trunk\wsdl>%AXIS2_HOME%\bin\wsdl2java.bat
> --server-side --service-description --serverside-interface -uri
> MessageService.wsdl --output .\ --package com.fiserve.sourceone.messaging
> -databinding-method xmlbeans --unpack-classes
> >
> > However, this throws the following exception:
> > [ERROR]
> > java.lang.NullPointerException
> >         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:596)
> >         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:422)
> >         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:377)
> >         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:281)
> >         at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109)
> >         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141)
> >         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> >         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> >
> >
> >
> >
> > Any ideas on this?
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.

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


Re: WSDL11ToAxisServiceBuilder.populateBinding causing NPE?

Posted by Amila Suriarachchi <am...@gmail.com>.
the names you have declared in operation fault and the
<wsdl:fault message="secmsgns:MessagingNotEnabledForPartnerFault"
name="MessagingNotEnabledForPartnerFault"/>

and the binding fault  element
<wsdl:fault name="fault">
                <soap:fault use="literal" name="fault" />
            </wsdl:fault>

is different this should be
<wsdl:fault name="MessagingNotEnabledForPartnerFault">
                <soap:fault use="literal"
name="MessagingNotEnabledForPartnerFault" />
            </wsdl:fault>

Amila.

On 9/22/07, alexandra.stehman@fiserv.com <al...@fiserv.com>
wrote:
>
>
> I have a fairly simple WSDL (attached) and am trying to run wsdltojava
> thusly:
>
> C:\Projects\SecureMessaging\trunk\wsdl>%AXIS2_HOME%\bin\wsdl2java.bat
> --server-side --service-description --serverside-interface -uri
> MessageService.wsdl --output .\ --package com.fiserve.sourceone.messaging-databinding-method xmlbeans --unpack-classes
>
> However, this throws the following exception:
> [ERROR]
> java.lang.NullPointerException
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(
> WSDL11ToAxisServiceBuilder.java:596)
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(
> WSDL11ToAxisServiceBuilder.java:422)
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(
> WSDL11ToAxisServiceBuilder.java:377)
>         at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
> WSDL11ToAxisServiceBuilder.java:281)
>         at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices
> (WSDL11ToAllAxisServicesBuilder.java:109)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
> CodeGenerationEngine.java:141)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>
>
>
>
> Any ideas on this?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.