Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tWebservice: Nullpointer exception

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

Labels (3)
14 Replies
Anonymous
Not applicable
Author

Okay, this is how I configured ther tWebservice component:

 

0683p000009LuQG.png0683p000009LucC.png0683p000009LuTG.png

 

Overall Job and Java config:

0683p000009LuLQ.png

0683p000009LucV.png0683p000009LuG7.png

 

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?

Anonymous
Not applicable
Author

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!

Anonymous
Not applicable
Author

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.

0683p000009LuFJ.png0683p000009Lud4.png

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

 

Anonymous
Not applicable
Author

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!

 

Anonymous
Not applicable
Author

Great, thanks for your feedback!