My Oracle Support Banner

Getting NullPointerException When Generating Rest Communication Service (Doc ID 1992490.1)

Last updated on JULY 26, 2017

Applies to:

Oracle Communications Services Gatekeeper - Version 5.0.0.1 to 5.0.0.1 [Release 5.0]
Information in this document applies to any platform.

Symptoms

Using OCSG 5.0.0.1 Eclipse plugin,  NullPointerException is seen when generating rest communication services from WSDL below.

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="CollectionManagementCVS" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://oracle.com/app/tlm/CollectionManagementCVS/V1.0" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://oracle.com/app/tlm/CollectionManagementCVS/V1.0" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xsd:schema  xmlns:schema="http://oracle.com/app/tlm/CollectionManagementCVS/V1.0">
<xsd:import namespace="http://oracle.com/app/tlm/CollectionManagementCVS/V1.0" schemaLocation="app.tlm.CollectionManagementCVS_1.0.xsd"/>
</xsd:schema>
</types>
<message name="CreateActivityRequest">
<part element="tns:CreateActivityRequest" name="payload"/>
</message>
<message name="CreateActivityReply">
<part element="tns:CreateActivityReply" name="payload"/>
</message>
<portType name="CollectionManagement">
<operation name="createActivity">
<input message="tns:CreateActivityRequest"/>
<output message="tns:CreateActivityReply"/>
</operation>
</portType>
<binding name="CollectionManagementBinding" type="tns:CollectionManagement">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="createActivity">
<soap:operation soapAction="tns:createActivity"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="CollectionManagementService">
<port name="CollectionManagement" binding="tns:CollectionManagementBinding">
<soap:address location="http://localhost/app/tlm/CollectionManagementBinding/V1.0"/>
</port>
</service>
</definitions>

 Error message seen:

[WARNING] - The context path parlayx21/services specified on port OrderCVSBindingQSPort of web service {http://oracle.com/app/ols/svc/OrderCVS/V1.1}OrderCVSBindingQSService is being overriden with test.
<WSEE:1>URIs = [file:/C:/Users/Desktop/Fusion/TestCommnSrvc/test/common/dist/tmp/wsdlc/app_ols_OrderCVS_1_1_wsdl.jar]<TylarBindingsBuilderBase.getTylarUris:52>
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[EarFile] Application File : C:\Users\Desktop\Fusion\TestCommnSrvc\test\common\dist\tmp\wars\META-INF\application.xml
java.lang.NullPointerException
at com.bea.wlcp.wlng.ant.RestGeneratorImpl.generate(RestGeneratorImpl.java:140)
at com.bea.wlcp.wlng.ant.WsGenTask.execute(WsGenTask.java:372)
at com.bea.wlcp.wlng.ant.CommunicationServiceGenTask.generateWSEJB(CommunicationServiceGenTask.java:338)
at com.bea.wlcp.wlng.ant.CommunicationServiceGenTask.execute(CommunicationServiceGenTask.java:85)
at com.bea.wlcp.wlng.ant.TaskRunnerBase.run(TaskRunnerBase.java:180)
at com.bea.wlcp.wlng.ant.CommunicationServiceGenTaskRunner.main(CommunicationServiceGenTaskRunner.java:20)
Caused by: java.lang.NullPointerException
at com.bea.wlcp.wlng.ant.RestGeneratorImpl$SchemaInfo.processElements(RestGeneratorImpl.java:476)
at com.bea.wlcp.wlng.ant.RestGeneratorImpl$SchemaInfo.<init>(RestGeneratorImpl.java:446)
at com.bea.wlcp.wlng.ant.RestGeneratorImpl$SchemaInfoLookup.add(RestGeneratorImpl.java:404)
at com.bea.wlcp.wlng.ant.RestGeneratorImpl.buildSchemaInfo(RestGeneratorImpl.java:148)
at com.bea.wlcp.wlng.ant.RestGeneratorImpl.generate(RestGeneratorImpl.java:115)
... 5 more

  

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.