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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tWebservice - nullpointer exception

I'm trying to add a category via webservice to virtuemart.
I receive the following error:
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)
I'm not able to debug this error (or I don't know how).

My job looks like the following pictures:
any ideas?
Thank you!
Regards,
Robert
0683p000009MEVn.png 0683p000009MEVs.png
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

For everybody - I found it!
https://jira.talendforge.org/browse/TDI-25565 (Talend DI / TDI-25565)
The tWebservice components requires a JDK to work. Please select a JDK java.exe in the Preferences/Talend/Java interpreter in the studio.

View solution in original post

24 Replies
Anonymous
Not applicable
Author

Hi,
Is there any compile error in "Code" field? From the error info, it seems that the setting of tWebservice component is not correct.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,
Thank you very much for your answer!
Can you help me - what did you mean with: "compile error in "Code" field"
What can I do?
thx!
regards,
robert
Anonymous
Not applicable
Author

Hi.
We usually open the code tab and see if there has compile error. If the job has compile error, you are always required to fix the error before executing the job. The compile error in code tab can point where and what the error is.
See my screenshot
Best regards
Sabrina
0683p000009MECw.png
Anonymous
Not applicable
Author

thank you for your explanation!
No there are no errors. It seems to be fine.
I tried to switch to tWebserviceInput - this works (disadvantage is I have to define all columns or I get a nillable exception)

Trying to investigate a little bit, the error seems to come from
ServiceInvokerHelper.invoke() line 235
=>Client client = getClient(serviceName, portName);
=>
protected Client createClient(QName service, QName port) {
// bug 8674
Client client = dynamicClientFactory.createClient(serviceDiscoveryHelper.getLocalWsdlUri(), service, Thread
.currentThread().getContextClassLoader(), port, bindingFiles);
// end
HTTPConduit conduit = (HTTPConduit) client.getConduit();
if (configuration != null) {
configuration.configureHttpConduit(conduit);
}
return client;
}
any other ideas?
Thank you!
regards,
robert
Anonymous
Not applicable
Author

For everybody - I found it!
https://jira.talendforge.org/browse/TDI-25565 (Talend DI / TDI-25565)
The tWebservice components requires a JDK to work. Please select a JDK java.exe in the Preferences/Talend/Java interpreter in the studio.
Anonymous
Not applicable
Author

Hi,
It is very helpful feedback, thanks for the sharing.
Best regards
Sabrina
Anonymous
Not applicable
Author

Does it work with java7?
I am running Windows 7/b4bit, and the java interpreter is set as C:\Program Files\Java\jre7\bin\java.exe, and I am still getting the NullPointer exception
Anonymous
Not applicable
Author

Hi,
For win7/64 bit, you'd better use java 6. Is it working in java 6 for your case?
TalendHelpCenter:Compatible Platforms
Best regards
Sabrina
Anonymous
Not applicable
Author

Using JDK1.6 gets rid of the NullPointer exception.
Now I have the following exception when trying to use tWebService to call a HTTPS web service developed with Microsoft WCF with user/password authentication.
Thanks
==============================
Exception in component tWebService_1
org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied.
at org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:166)
at org.apache.cxf.ws.policy.EndpointPolicyImpl.finalizeConfig(EndpointPolicyImpl.java:145)
at org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(EndpointPolicyImpl.java:141)
at org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo(PolicyEngineImpl.java:550)
at org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy(PolicyEngineImpl.java:296)
==============================