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
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.
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
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
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
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
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.
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
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) ==============================