Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Clopes
Contributor III

Java jar problem org/slf4j/spi/LoggerFactoryBinder

Hi all,

 

I'm on TDI 6.2 and i have this issue using JSONs composants :

 

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
    at com.jayway.jsonpath.Configuration.<clinit>(Configuration.java:39)
[statistics] disconnected
    at com.jayway.jsonpath.internal.JsonReader.<init>(JsonReader.java:43)
    at com.jayway.jsonpath.JsonPath.parse(JsonPath.java:578)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.tFileInputDelimited_2Process(jCLTPRAGestionActif.java:1136)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.runJobInTOS(jCLTPRAGestionActif.java:1711)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.main(jCLTPRAGestionActif.java:1491)
Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

 

Someone have the same issue ?

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

We cannot repro this missing jar issue on V 6.4.1 from our side.

We suppose that your studio is not installed completely. Could you please try to re-install your studio to see if it works?

Thanks for your time.

Best regards

Sabrina

View solution in original post

12 Replies
Théo_Cap
Contributor III

How do you execute your job? 

Your launch the jar or you just click "Run" button in Talend?

 

If you just click run try to click at the top of talend:  "window -> show view -> Talend -> modules"

The view open -> click on the green arrow at the top right corner -> install all modules.

 

 

Anonymous
Not applicable

Hello,


@Clopes wrote:

Hi all,

 

I'm on TDI 6.2 and i have this issue using JSONs composants :

 

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
    at com.jayway.jsonpath.Configuration.<clinit>(Configuration.java:39)
[statistics] disconnected
    at com.jayway.jsonpath.internal.JsonReader.<init>(JsonReader.java:43)
    at com.jayway.jsonpath.JsonPath.parse(JsonPath.java:578)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.tFileInputDelimited_2Process(jCLTPRAGestionActif.java:1136)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.runJobInTOS(jCLTPRAGestionActif.java:1711)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.main(jCLTPRAGestionActif.java:1491)
Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

 

Someone have the same issue ?


This is a missing jar issue. Could you please check if slf4j-api.jar and slf4j-log4j12.jar are completely installed in your project?

Best regards

Sabrina

Clopes
Contributor III
Author

Thanks for both replies.

 

I have updated all jar in the module window.

If i search for the slf4j-api.jar and i find :

slf4j-api-1.6.1.jar, slf4j-api-1.7.10.jar, slf4j-api-1.7.12.jar, slf4j-api-1.7.2.jar, slf4j-api-1.7.25.jar, slf4j-api-1.7.5.jar, slf4j-api-1.7.6.jar and slf4j-api.jar just for contexte tRules and tFireRulesVirtual.

For slf4j-log4j12.jar :

slf4j-log4j12-1.7.5.jar, slf4j-log4j12-1.7.10.jar, slf4j-log4j12-1.6.1.jar.

I still have the error.

 

Théo_Cap
Contributor III

Try to search the exact jar on the internet and download it.

Do the same procedure I said earlier but instead of click on the green arrow, click on the real jar icon (import external jar).

And select your downloaded jar.

Clopes
Contributor III
Author

I have done it twice yesterday and the jar doesn't appear.

Anonymous
Not applicable

Hello,

Does it work perfectly fine after re-starting your studio?

Best regards

Sabrina

Clopes
Contributor III
Author

No,

I still have the error for the tExtractJSONField

 

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder
[statistics] disconnected
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)
    at com.jayway.jsonpath.Configuration.<clinit>(Configuration.java:39)
    at com.jayway.jsonpath.internal.JsonReader.<init>(JsonReader.java:43)
    at com.jayway.jsonpath.JsonPath.parse(JsonPath.java:578)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.tFileInputDelimited_2Process(jCLTPRAGestionActif.java:1136)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.runJobInTOS(jCLTPRAGestionActif.java:1711)
    at clients.jcltpragestionactif_0_1.jCLTPRAGestionActif.main(jCLTPRAGestionActif.java:1491)
Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LoggerFactoryBinder
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 20 more

 

Anonymous
Not applicable

Hello,

We cannot repro this missing jar issue on V 6.4.1 from our side.

We suppose that your studio is not installed completely. Could you please try to re-install your studio to see if it works?

Thanks for your time.

Best regards

Sabrina

Clopes
Contributor III
Author

So the only solution for a jar problem is to reinstall the complete TDI ?

I'm on Talend Data Integration
Version: 6.2.1
Build id: 20160704_1411

 

 


TalendInstall.tif