Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
the problem described here https://community.talend.com/t5/Design-and-Development/resolved-tWebservice-nullpointer-exception/td... is not solved for me at all. I'm still getting a nullpointer exception when I try to run the talend example job for the tWebservice component.
Exception in component tWebService_1
java.lang.NullPointerException
at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:190)
at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:144)
at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:139)
Like suggested in previous posts, I switched to Java JDK 6 (u45) with no improvements (same error). I'm using talend open studio 6.4.0 on Windows 10.
Could you please help!
Kind regards
Okay, this is how I configured ther tWebservice component:
Overall Job and Java config:
And again the error log:
Exception in component tWebService_1 java.lang.NullPointerException at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187) at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:141) at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:136) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.compileJavaSrc(DynamicClientFactory.java:611) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:370)
...
Like you can see in screenshots above I switched back to JDK 1.8.0_131.
So, what is the matter with tWebService? Any ideas?
BTW: When you mark the tWebservice component and press F1 you can see the help page with an example related to that component. I tried the example step by step in talend di (Commercial Version!) and facing the same error. How can that be? talend please fix that bug!
Hi TalendDIUser
I have tested the scenario Getting country names trhrough a web service in the component document and it works. Below is my JRE configuration in preferences page.
As I suggested, have a try to copy the jar file tools.jar from <jdk installation dir>/lib to <jre installation dir>/lib, let me know if it works.
Regards
Shong
Shong, thanks a lot! Now I'm able to run tWebService with no errors!
Starte Job myFirstJob am 15:04 08/06/2017.
[statistics] connecting to socket on port 3568
[statistics] connected
<NewDataSet>
<Table>
<countrycode>cn</countrycode>
<name>China</name>
</Table>
<Table>
<countrycode>cn</countrycode>
<name>China</name>
</Table>
</NewDataSet>
[statistics] disconnected
Job myFirstJob endet am 15:04 08/06/2017. [exit code=0]
So everybody: Just copy the tools.jar file from jdk to jre lib folder like shong suggested!