Five Stars

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
12 REPLIES
Six Stars

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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.

 

 

Moderator

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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.

 

Six Stars

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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.

Five Stars

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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

Moderator

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

Hello,

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

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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

 

Moderator

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

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

 

 

Moderator

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

Hello,

Are you using talend subscription solution 6.2.1 or a free trial version of data integration product?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

Hello,

 

I'm using the talend subscription solution 6.2.1 on a Macbook (El Capitan).

I've just finished to reinstall the client solution and added the slf4j-all-log4j12-1.4.3.jar.

It works now.

 

Thks for all feedbacks

Moderator

Re: Java jar problem org/slf4j/spi/LoggerFactoryBinder

Hello,

Great that you issue has been fixed. Feel free to let us know if there is any further help we can give.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.