cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies" <bimargul...@gmail.com>
Subject Re: NullPointer on service invocation with optional element not present
Date Tue, 27 May 2008 18:16:30 GMT
Could you try the 2.0.6 release? If it still don't work, please make a JIRA.

On Tue, May 27, 2008 at 10:44 AM, nicolas de loof <nicolas@apache.org>
wrote:

> Hello,
>
> My WSDL types declares the "description" element with minOccurs="0" :
>
>    <complexType name="DeliverLoyaltyAccountRequest">
>        <sequence>
>            <element name="description" nillable="false" type="xsd:string"
> minOccurs="0" maxOccurs="1"/>
> ...
>
>
> When I invoke the service (using SoapUI) it works fine with
> <sch:description></sch:description>
> or <sch:description/>,
> but when I *remove *this XML element, I get a NullPointerException :
>
> Caused by: *java.lang.NullPointerException*
> at
>
> _33j.services.servicesmodification.schema.DeliverLoyaltyAccountRequest_WrapperTypeHelper1.getWrapperParts(Unknown
> Source)
>
> at
> org.apache.cxf.jaxws.interceptors.WrapperClassInInterceptor.handleMessage(*
> WrapperClassInInterceptor.java:122*)
>
> I'm using cxf 2.0.5-incubator
>
> Did I miss something ?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message