nullPointerException in tWebServiceInput while running in ESB

One Star

nullPointerException in tWebServiceInput while running in ESB

Hi
I am working with Talend's tWebServiceInput component. But for some reasons its not working in TESB.
I am working with test web service
"http://www.deeptraining.com/webservices/weather.asmx?WSDL"
its gives me desired result in Talend open studio.
But when I exported job as osgi bundle and run it in ESB
I got following exception


karaf@trun> Exception in component tWebServiceInput_1
java.lang.NullPointerException
at org.talend.DynamicInvoker.selectService(DynamicInvoker.java:388)
at org.talend.DynamicInvoker.invokeMethod(DynamicInvoker.java:226)
at org.talend.DynamicInvoker.main(DynamicInvoker.java:190)
at org.talend.DynamicInvoker.main(DynamicInvoker.java:131)
at vrdm_31_01_2013.esb_ws_test_0_1.ESB_WS_TEST.tWebServiceInput_1Process
(ESB_WS_TEST.java:471)
at vrdm_31_01_2013.esb_ws_test_0_1.ESB_WS_TEST.runJobInTOS(ESB_WS_TEST.j
ava:810)
at org.talend.esb.job.controller.internal.SimpleJobTask$JobRunner.run(Si
mpleJobTask.java:80)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:43
9)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at org.talend.esb.job.controller.internal.SimpleJobTask.run(SimpleJobTas
k.java:62)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:662)


I dont get whats wrong with it, is it talend bug or is there something wrong with my job?
Thank you,
Regards

One Star

Re: nullPointerException in tWebServiceInput while running in ESB

hi
I have to call a websercice,
If I use the component tWebService I have problems with permissions, but reading the forums it looks like a bug.
then,
I'm trying to use the tWebSeviceInput, but I can not use it properly.
returns me this exception:

Exception in component tWebServiceInput_1
java.lang.NullPointerException
at org.talend.DynamicInvoker.invokeMethod(DynamicInvoker.java:241)
at org.talend.DynamicInvoker.main(DynamicInvoker.java:190)
at org.talend.DynamicInvoker.main(DynamicInvoker.java:131)
at interfacce_pragma.import_anagrafiche_bkd_0_1.Import_Anagrafiche_BKD.tWebServiceInput_1Process(Import_Anagrafiche_BKD.java:1135)
at interfacce_pragma.import_anagrafiche_bkd_0_1.Import_Anagrafiche_BKD.runJobInTOS(Import_Anagrafiche_BKD.java:4136)
at interfacce_pragma.import_anagrafiche_bkd_0_1.Import_Anagrafiche_BKD.main(Import_Anagrafiche_BKD.java:3728)

Can you tell me how to properly configure the two components?
and in particular how to pass parameters to tWebServiceInput?
Using the components in this way:
tFixedFlowInput -----> tWebService ----> logRow
tWebServiceInput -----> logRow

Thank you very much.
One Star

Re: nullPointerException in tWebServiceInput while running in ESB

Hello,

I get exactly the same error message when running my Job with karaf:
karaf@trun> Exception in component tWebServiceInput_1
java.lang.NullPointerException
        at org.talend.DynamicInvoker.selectService(DynamicInvoker.java:388)
        at org.talend.DynamicInvoker.invokeMethod(DynamicInvoker.java:226)
        at org.talend.DynamicInvoker.main(DynamicInvoker.java:190)
        at org.talend.DynamicInvoker.main(DynamicInvoker.java:131)
But when I start the Job in Talend Open Studio it works perfectly. I don't use the "Advanced Mode" of the tWebServiceInput component.
Employee

Re: nullPointerException in tWebServiceInput while running in ESB

Try and use https://help.talend.com/search/all?query=tESBConsumer&content-lang=en instead
Thomas Steinborn
VP Product Management
One Star

Re: nullPointerException in tWebServiceInput while running in ESB

Thanks for your reply. With the component tWebServiceInput i was able to specify the method Name dynamically... This isn't possible with tESBConsumer, isn't it?
Highlighted
Employee

Re: nullPointerException in tWebServiceInput while running in ESB

Not exactly sure what you mean with method. You referring to the WDSL's port operation?
Thomas Steinborn
VP Product Management

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

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read