Error while invoking SOAP web service client from service task in Camunda

From the service task, I’m invoking a java class which is SOAP web service client implementation.

Soap web service client is developed using Eclipse and while testing in eclipse there is no issue. The classes are generated from WSDL file using cxf-codegen-plugin.

While invoking the class file from service task, the engine is throwing null pointer exception at the below line (which creates an object for the class generated from WSDL)


ContractBasePoNewService_Service cbps = new ContractBasePoNewService_Service();

And below is the error in the log,


ENGINE-16004 Exception while closing command context: null

java.lang.NullPointerException: null at javax.xml.ws.Service.(Service.java:112) ~[jaxws-api-2.3.1.jar:na]
at com.ericsson.services.ws_cil_7.ContractBasePoNewService_Service.(ContractBasePoNewService_Service.java:47) ~[bscsContractBasePoNewService-0.1.jar:na]

Please let me know what might be the issue.

Thanks.