Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
marceloveras
Contributor II
Contributor II

tWriteJSONField - Error on XMLSerializer Method

I'm retrieving the following error when trying to get a JSON string throung this component:

 

Exception in thread "main" java.lang.NoSuchMethodError: net.sf.json.xml.XMLSerializer.setUseEmptyStrings(Z)V

 

I was looking for this method (setUseEmptyStrings) in XMLSerializer Class and there's no method with this name there.

 

Thanks in advance

 

 

 

Labels (1)
  • v7.x

1 Solution

Accepted Solutions
marceloveras
Contributor II
Contributor II
Author

Hi Shong, I'm currently using the same version as yours..

0683p000009M9Vy.png

 

However, I have two versions in repository folder:

 

0683p000009M9W3.png

Any idea?

 

Thanks again ....

View solution in original post

7 Replies
Anonymous
Not applicable

Hi
Please provides the following information, it will help us to more easily evaluate your issue:
- Product and Version which you used (for example, Talend Data Fabric 7.3.1)
- Version of Java Platform JDK / JRE in use (for example, ORACLE JDK 1.8.0_161)

If possible, show us an example of you input json string, and what data you want to extract?

Regards
Shong
marceloveras
Contributor II
Contributor II
Author

Hi Shong, thanks for quicly reply...

 

I'm attaching images with information you need.

 

Thanks


IMG1.png
IMG3.png
IMG4.png
IMG5.png
IMG6.png
marceloveras
Contributor II
Contributor II
Author

Sorry Shong, I've attached the images in last reply....  

1) Job structure and JSON schema

0683p000009M9VG.png

 

 

2) This component's option is the problem. This method does not exists in Java XMLSerializer Class

0683p000009M9P8.png

 

3) Talend version

0683p000009M9R4.png

 

 

4) Java Version

0683p000009M8uz.png

Anonymous
Not applicable

@marceloveras, I just made a testing and I can NOT reproduce the issue, i can see this method exists in class XMLSerializer. 

0683p000009M916.png

 

Please check which version of required jar json-lib-2.4.5-talend.jar installed in your studio.

 

Regards

Shong

marceloveras
Contributor II
Contributor II
Author

Hi Shong, I'm currently using the same version as yours..

0683p000009M9Vy.png

 

However, I have two versions in repository folder:

 

0683p000009M9W3.png

Any idea?

 

Thanks again ....

marceloveras
Contributor II
Contributor II
Author

@shong  , thanks for your help!!!!

 

I have deleted the folder containing the 2.4.1 version and when i started the job...

Talend asks me to download the module again....

 

So ... problem solved!!!!!

0683p000009M9WD.png

Anonymous
Not applicable

Glad to see you solves the problem, thanks for your feedback!

Regards
Shong