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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
jvaldenaire1645178559
Contributor
Contributor

Compilation error tWriteJSONField

Hello,

it's my first steps on Talend.

I want to export a database and call an API with RESTClient. Before that i need to transform my datas into JSON.

But when i'm using tWriteJSONField i have an error :

Exception in thread "main" java.lang.IllegalAccessError: superclass access check failed: class nu.xom.JDK15XML1_0Parser (in unnamed module @0x3c60b7e7) cannot access class com.sun.org.apache.xerces.internal.parsers.SAXParser (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.parsers to unnamed module @0x3c60b7e7

I did somthing wrong ?

Thank you for your help

0695b00000OBptFAAT.png

0695b00000OBptPAAT.png

Labels (3)
11 Replies
gjeremy1617088143

Hi, could you send screenshot of the tWriteJSONFeld ?

jvaldenaire1645178559
Contributor
Contributor
Author

Hi,

 

yes sure

0695b00000OBpxqAAD.png

gjeremy1617088143

wich version of java are you using ?

jvaldenaire1645178559
Contributor
Contributor
Author

I tried with Java SE 17.0.2 [17.0.2] on mac os x

And jdk17, jdk1.8 on windows

gjeremy1617088143

and in the talend project properties wich version of the jdk you are using ?

jvaldenaire1645178559
Contributor
Contributor
Author

0695b00000OBwkAAAT.png

Anonymous
Not applicable

Hello,

Starting from talend V 8.0, we are using JDK 11 as Java Compiler.

Please have a look at this online documentation about: TalendHelpCenter: Compatible Java Environments

Best regards

Sabrina

 

jvaldenaire1645178559
Contributor
Contributor
Author

Hello Sabrina,

 

thank you for your answer.

unfortunately the problem persist..

 

0695b00000OC3uCAAT.png

I need ton configuration an other things ?

 

Thank you

Anonymous
Not applicable

Hello,

It looks like your machine has more than 1 version of Java installed on it. This can require a few extra steps to ensure Talend is using the correct one. Have you tried this?

Best regards

Sabrina