Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to avoid issue on tsoap output when soap response is null

Hi All,

i try to call a WS using TSOAP and the action is performed well but TSOAP is returning issue due to null Output of the webservice.

And Job is stopped.

Someone had already encountering the same issue and how to by-pass or solve it.

Thanks in advance.

Here is the error I got:

 

Exception in component tSOAP_1
java.lang.NullPointerException
at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:111)
at bgh.test_ws_0_1.TEST_WS.tFileList_1Process(TEST_WS.java:991)
at bgh.test_ws_0_1.TEST_WS.runJobInTOS(TEST_WS.java:1389)
at bgh.test_ws_0_1.TEST_WS.main(TEST_WS.java:1246)

 

 

 

Labels (3)
2 Replies
Anonymous
Not applicable
Author

Do you use context variables or global variables on tSOAP component? For NPE, we need to investigate where/which step throws the error. If you are Java developer, you can launch the job with Java debug model, and debug the generated code to see where the error is thrown.

Anonymous
Not applicable
Author

Hi

many thanks for your interest in my issue because it's crucial for me.

Issue is here in italic and underlined because null response is given by the SOAP if Actions are OK (it can't be modified ), So i have to find a solution to escape this issue on Talend    :

 

currentComponent="tSOAP_1";

 



soapUtil_tSOAP_1.invokeSOAP(org.talend.soap.SOAPUtil.SOAP11,"http://10.110.5.68:11003/wsi/","CONTR_SERVICES.ADD",row7.Soap.toString());


// for output

row4 = new row4Struct();

row4.Header = soapUtil_tSOAP_1.getReHeaderMessage();
if(soapUtil_tSOAP_1.hasFault()){
row4.Fault = soapUtil_tSOAP_1.getReFaultMessage();
}else{
row4.Body = soapUtil_tSOAP_1.getReBodyMessage();
}

 


tos_count_tSOAP_1++;