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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
aroneberg
Contributor
Contributor

Exception in component tWebService_1

Hi all,

 

I'm getting the error below when running tWebService in any job, to test this I've build this simple job.

 

Any hints ? solution ?

 

Simple job to test tWebService : (tFixedFlowInput with one row with input="0", tWebService_1 with "https://www.w3schools.com/xml/tempconvert.asmx?wsdl" operation: CelsiusToFahrenheit)

 

0695b00000chlVOAAY.pngEnvironment :

 

Talend Open Studio for Data Integration Version: 8.0.1

echo %JAVA_HOME% ==>C:\Program Files\Zulu\zulu-11\

javac.exe --version ==> javac 11.0.18 (it's in the PATH env variable)

 

ERROR :

 

Starting job teste at 16:52 07/02/2023.

[statistics] connecting to socket on port 3346

[statistics] connected

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil (file:/C:/Users/aroneberg.REDE-LOCAL/OneDrive%20-%20PRD/Repos/talend_workspace/PRD/temp/lib/xmlschema-core-2.2.3.jar) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()

WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

[ERROR]: org.apache.cxf.endpoint.dynamic.DynamicClientFactory - Could not compile java files for file:/C:/Users/ARONEB~1.RED/AppData/Local/Temp/wsdl16757887231801/mainWSDL.wsdl.

Exception in component tWebService_1 (teste)

java.lang.IllegalStateException: Unable to create JAXBContext for generated packages: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "tmp14048397https.com.w3schools.xml" doesnt contain ObjectFactory.class or jaxb.index   

   at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:418)

   at org.talend.webservice.helper.ServiceInvokerHelper.createClient(ServiceInvokerHelper.java:127)

   at org.talend.webservice.helper.ServiceInvokerHelper.getClient(ServiceInvokerHelper.java:118)

   at org.talend.webservice.helper.ServiceInvokerHelper.invoke(ServiceInvokerHelper.java:219)

   at prd.teste_0_1.teste.tFixedFlowInput_1Process(teste.java:872)

   at prd.teste_0_1.teste.runJobInTOS(teste.java:1319)

   at prd.teste_0_1.teste.main(teste.java:1157)

Caused by: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "tmp14048397https.com.w3schools.xml" doesnt contain ObjectFactory.class or jaxb.index   

 - with linked exception:

[javax.xml.bind.JAXBException: "tmp14048397https.com.w3schools.xml" doesnt contain ObjectFactory.class or jaxb.index]

   at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:160)

   at javax.xml.bind.ContextFinder.find(ContextFinder.java:348)

   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446)

   at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:414)

   ... 6 more

Caused by: javax.xml.bind.JAXBException: "tmp14048397https.com.w3schools.xml" doesnt contain ObjectFactory.class or jaxb.index

   at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:281)

   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

   at java.base/java.lang.reflect.Method.invoke(Method.java:566)

   at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:186)

   at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146)

   ... 9 more

[statistics] disconnected

Job teste ended at 16:52 07/02/2023. [Exit code = 1]

Labels (2)
0 Replies