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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Fernandez
Creator II
Creator II

net.sf.json.JsonStandard cannot be resolved to a variable

Hi,

I changed my laptop and reinstalled Talend on the new laptop.

All my jobs are working, except one in which I use components tWriteJSONField and tRestClient : 

Fernandez_0-1742202826004.png

I'm getting this message : 

Fernandez_1-1742202935294.png

  • Talend version : TOS DI 7.3.1
  • Java : jre1.8.0_421
  • Configuration : 

Fernandez_2-1742203023070.png

Fernandez_3-1742203060960.png

  • Environment variables : 

Fernandez_4-1742203132902.png

 

Fernandez_5-1742203157607.png

 

Many thanks for your help

 

 

 

 

 

Labels (4)
1 Solution

Accepted Solutions
quentin-vigne
Partner - Creator II
Partner - Creator II

Did you click the button on the rigtht side of the tab with the three dots ? 

On the line where you have the 2.4.5 lib click the three dots and then click the personalized MVN URI with this link 

mvn:net.sf.json-lib/json-lib/2.4.8-talend/jar

 

and for the file select the file you have downloaded

 

- Quentin

View solution in original post

7 Replies
Fernandez
Creator II
Creator II
Author

Hi,

It seems that the issue comes from the component tWriteJSONField, I did a test without using the component  tRestClient  and I have the same issue : 

 

 

Fernandez_0-1742207956572.png

 

Fernandez_1-1742208071023.png

 

quentin-vigne
Partner - Creator II
Partner - Creator II

Hi @Fernandez 

Could you maybe show the setup of your component ? You could be missing a jar 

Alternatively, open the code view on Talend and click on the red square on the left side of the code. See what the code tell you, you can also share it here if you need help

- Quentin

Fernandez
Creator II
Creator II
Author

Below the .jar imported :

Fernandez_0-1742223061732.png

 

and the code : 

Fernandez_1-1742223112115.png

 

What do you mean about "the setup of your component" ?

Fernandez_2-1742223182619.png

 

 

 

 

 

 

quentin-vigne
Partner - Creator II
Partner - Creator II

By the "setup of your component" I meant showing what it looks like inside 

quentinvigne_0-1742226335196.png

 

I have a more recent version of Talend Studio so I don't know what it should look like on your end, but on my side here are my jar file for tWriteJSONFields

quentinvigne_1-1742226935788.png

Maybe you can try overriding it by manually installing this jar ? 

Link : https://mvnrepository.com/artifact/net.sf.json-lib/json-lib/2.4.8-talend

In module view click on "Import external jar"

 

Fernandez
Creator II
Creator II
Author

I don't have access to your link : 

Fernandez_0-1742229868609.png

 

But I succeeded to download the file by another way.

When I try to import, il appears on the tab : 

Fernandez_1-1742229969833.png

 

But when I click on refresh, it disappears : 

Fernandez_2-1742230038036.png

 

 

 

 

quentin-vigne
Partner - Creator II
Partner - Creator II

Did you click the button on the rigtht side of the tab with the three dots ? 

On the line where you have the 2.4.5 lib click the three dots and then click the personalized MVN URI with this link 

mvn:net.sf.json-lib/json-lib/2.4.8-talend/jar

 

and for the file select the file you have downloaded

 

- Quentin

Fernandez
Creator II
Creator II
Author

It's working now with your solution.

Many thanks !