Twebserviceinput giving NUllpointer exception

Six Stars

Twebserviceinput giving NUllpointer exception

Hi,

I have a simple webservice whihc gives me an xml output .There are 7 INPUTSto be given to the  webservice input along with username password also ,where i had used tfixedflowinput component,connected tfolwtoiterate component and then conncted twebserviceinput given the WSDL and called the 7 inputs in parameters section.The menthod which request to be raised is also given and also the proxy setting are given.When i run i am nullpointer exception though i had hardcoded the values.testes the values by displaying using java component.Request you to please help in this regard what would had went wrong.

 

ERROR:

 

Exception in component tWebServiceInput_1
java.lang.NullPointerException
at org.talend.DynamicInvoker.main(DynamicInvoker.java:129)
at demo.j_webservice_0_1.j_webservice.tFixedFlowInput_1Process(j_webservice.java:990)
at demo.j_webservice_0_1.j_webservice.runJobInTOS(j_webservice.java:1486)
at demo.j_webservice_0_1.j_webservice.main(j_webservice.java:1343)

 

ScreCapture_talend.PNGWebservice conponent propertiesCapture_job.PNGJob design

 

I had tried the same web service through SOAPUI which is giving me the response ..Also the same job works with some public Web-service .


Accepted Solutions
Six Stars

Re: Twebserviceinput giving NUllpointer exception

After changing JRE and JDK settings,the exception turned out to be as output as null.

All Replies
Moderator

Re: Twebserviceinput giving NUllpointer exception

Hi,

tWebServiceInput component is generally used as a Start component. Could you please use tWebService component in your work flow instead to see if it works?

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: Twebserviceinput giving NUllpointer exception

We tried using twebservice also ,we are getting the same error.

Forteen Stars

Re: Twebserviceinput giving NUllpointer exception

first run it debug mode and check all 7 variables

 

 

if debug mode will not print variables - add second FixedFlowInput component and print (tLogRow) them manually

-----------
Six Stars

Re: Twebserviceinput giving NUllpointer exception

I ran in debug mode also,7 variables are displayed at fixedflowoutput.and the webservice component is giving null .

I tried to use advance java option in webservice component and use System.output.ptinln to check if the values are reaching that component thru tflowiterate.it displayed correctly all the 7 variables.but the output from webservice is null.
Six Stars

Re: Twebserviceinput giving NUllpointer exception

2.PNG

 

Screenshot attached for debug mode run

Forteen Stars

Re: Twebserviceinput giving NUllpointer exception

and sorry - where on this screenshot NullPointer exception? :-)

-----------
Six Stars

Re: Twebserviceinput giving NUllpointer exception

After changing JRE and JDK settings,the exception turned out to be as output as null.
Five Stars

Re: Twebserviceinput giving NUllpointer exception

Hi, What changes you had done to resolve the Null pointer exception

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download