Forum Discussion

fbiville's avatar
11 years ago

SoapUI 5.0.0 - NullPointerException on Jersey 2 WADL

Hi,

Whenever I try to import a Jersey2-generated WADL, Soap UI will just fail with a NullPointerException at some point.
In one case, 3 resources will be imported and an NPE will be thrown during the import of the fourth one:

<resource path="imd/lppr">
<resource path="/{id}/products">
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
<method id="getImdProductsByLpprId" name="GET">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filterOnlyCatalogue" style="query" type="xs:boolean" default="false"/>
</request>
<response>
<representation mediaType="application/atom+xml"/>
</response>
</method>
</resource>
<resource path="/{id}">
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
<method id="getLpprById" name="GET">
<response>
<representation mediaType="application/atom+xml"/>
</response>
</method>
</resource>
</resource>


Maybe SOAP UI doesn't support nested <resource> elements (I hope not, it is standard as you can see there: http://www.w3.org/Submission/wadl/#x3-90002.4).

Thanks in advance for your help.
  • Zenith's avatar
    Zenith
    Occasional Visitor

    One of the reason could be WADL doesn't allow boolean as query parameter.

    So try as

    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filterOnlyCatalogue" style="query" type="xs:string" default="false"/>

    and conver this to boolean in respective source/java code.