Error on tSoap - Null Pointer Exception

Six Stars

Error on tSoap - Null Pointer Exception

I am trying to run a job with tsoap component and I am getting the below error:

 

tarting job Unapply_OnAcct at 13:24 17/07/2019.

[statistics] connecting to socket on port 3679
[statistics] connected
Jul 17, 2019 1:24:43 PM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0010: Unable to read response
java.lang.NullPointerException
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.readFully(HttpSOAPConnection.java:677)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:424)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
at org.talend.soap.SOAPUtil.extractContentAsDocument(SOAPUtil.java:266)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct.tWriteXMLField_1_InProcess(Unapply_OnAcct.java:4406)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct$1ThreadXMLField_tWriteXMLField_1_Out.run(Unapply_OnAcct.java:1121)
Exception in component tSOAP_1 (Unapply_OnAcct)
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:191)
at org.talend.soap.SOAPUtil.extractContentAsDocument(SOAPUtil.java:266)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct.tWriteXMLField_1_InProcess(Unapply_OnAcct.java:4406)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct$1ThreadXMLField_tWriteXMLField_1_Out.run(Unapply_OnAcct.java:1121)
Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
... 3 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:448)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
... 5 more

CAUSE:
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
at org.talend.soap.SOAPUtil.extractContentAsDocument(SOAPUtil.java:266)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct.tWriteXMLField_1_InProcess(Unapply_OnAcct.java:4406)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct$1ThreadXMLField_tWriteXMLField_1_Out.run(Unapply_OnAcct.java:1121)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:448)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
... 5 more

CAUSE:

java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
at org.talend.soap.SOAPUtil.extractContentAsDocument(SOAPUtil.java:266)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct.tWriteXMLField_1_InProcess(Unapply_OnAcct.java:4406)
at uat_2_data_conversion.unapply_onacct_0_1.Unapply_OnAcct$1ThreadXMLField_tWriteXMLField_1_Out.run(Unapply_OnAcct.java:1121)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:448)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
... 5 more
[statistics] disconnected
Job Unapply_OnAcct ended at 13:24 17/07/2019. [exit code=0]

 

Can someone please help me fix this issue.

 

Thanks

SK

Moderator

Re: Error on tSoap - Null Pointer Exception

Hello SK,

We will appreciate it a lot if you could post your tSoap job setting screenshots on community.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: Error on tSoap - Null Pointer Exception

Hello Sabrina,

 

Please find the attached screenshots. I am using a soap API and when I run it in Soap UI Application, it doesnt have any response but the process runs file.

 

When I try to run in talend it is throwing an exception cant read null response.

 

Thanks

SKjob.JPGsoap.JPGtsoap_Error.JPG

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download