Hi everyone,
When I run the batch file of an exported job, java.lang.NullPointerException occurs.
I have used "tWebService" item in that job.When I run that job in Talend, everything works fine.
When I run the batch file, the error "java.lang.NullPointerException" occurs.
When I run the batch file of job without using tWebService item, everything works fine.
I think some java setting I have made is wrong. But I don't exactly know which setting is the reason.
Other Informations: TDI 5.5.0
Java : jdk1.7.0_17
Talend Java Interpreter Setting : C:\Program Files\Java\jdk1.7.0_17\bin\java.exe
Build Job -> Bulid Type -> Standalone Job.
Error Details: Exception in component tWebService_1
java.lang.NullPointerException
at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:19
0)
at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:144)
at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:139)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.compileJavaSrc(D
ynamicClientFactory.java:610)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dyn
amicClientFactory.java:369)
at org.talend.webservice.helper.ServiceInvokerHelper.createClient(Servic
eInvokerHelper.java:144)
at org.talend.webservice.helper.ServiceInvokerHelper.getClient(ServiceIn
vokerHelper.java:135)
at org.talend.webservice.helper.ServiceInvokerHelper.invoke(ServiceInvok
erHelper.java:236)
at ws_test.customermasterupdatews_1_1.CustomerMasterUpdateWS.tFileInputD
elimited_1Process(CustomerMasterUpdateWS.java:1559)
at ws_test.customermasterupdatews_1_1.CustomerMasterUpdateWS.runJobInTOS
(CustomerMasterUpdateWS.java:1905)
at ws_test.customermasterupdatews_1_1.CustomerMasterUpdateWS.main(Custom
erMasterUpdateWS.java:1788)
Hello, I'm having the same issue: one of my PostgreSqllnputs is generating a nullpointer exception. I also tried the workaround you did but I'm still receiving the error when executing the job on command line, inside Talend works fine. I'm using a sh file and my environment is Linux Mint 64 bits. Any other tips?
Hi
Mandica,
Did you install studio on Window then execute .sh file in Linux server? Could you please give us more information about your current situation?
Best regards
Sabrina
Hello,
I'm using Talend free version for Data Integration in Linux Mint. I was generating my jobs using the 6.3 version so I installed the 6.2 version and now I'm able to execute them from command line although I received some NullPointerExceptions during my first tests with this older version.
Since I was using several databases connections (more than 5) within the job I don't know if during the build they got lost due to generated code or something, so the last time I built the job I only used 2 or 3 connections and included all of them at once inside the job, and it started working.
Any ideas why the 6.3 version jobs don't work after build or about this workaroung with the 6.2 version?
Hi, We cannot reproduce your issue on V 6.3. It is Ok with us to export batch file from V 6.3 and execute .sh file on the same machine. Best regards Sabrina