Java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy?

when I run my weblogic (having a file with the application file containing logback-classic-1.0.1.jar), I get below the exception. Any suggestion?

<Sep 9, 2015 9:27:13 AM UTC> <Warning> <Common> <BEA-000632> <Resource Pool "JDBC Data Source-0" shutting down, ignoring 3 resources still in use by applications..> Exception in thread "Thread-12" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:125) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:468) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424) at ch.qos.logback.classic.Logger.log(Logger.java:824) at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:225) at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:415) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:114) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213) at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) ................ at java.lang.Thread.run(Thread.java:701) Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52) ... 18 more Exception in thread "Thread-18" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:125) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:468) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424) at ch.qos.logback.classic.Logger.log(Logger.java:824) at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:225) at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:415) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:114) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213) at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) ....................... at java.lang.Thread.run(Thread.java:701) Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52) ... 18 more 
+8
java
source share
6 answers

This type of exception occurs when your classpath does not contain this class.
If the jar class is in your classpath, you pay attention to which classpath application you are using at runtime. In fact, often the pathpath class can be overwritten at runtime, or simply you can use a different one (for example, when running a script).

+3
source share

I get the same error when exiting (ctrl-c) from the Dropwizard server, I finally found out why I get it.

My Dropwizard is built into one live jar that I create using Gradle, and when I start the server on my local computer, I start it directly from the / libs / ... fat.jar assembly

So, this exception occurs when I changed the source code, created the application server again, and Gradle overwrite the same jar that I am currently working with "java -jar ...", so itโ€™s not so strange that classes that were not used before this session was loaded normally :)

+7
source share

A class that is missing definitely exists in the JAR you have, I checked logback-classic-1.0.1.jar:

 2012-03-07 07:34:18 ..... 4729 2018 ch\qos\logback\classic\spi\ThrowableProxy.class 

Make sure your classpath is configured correctly. By the way: if possible, update the magazine, because this version is 3 years old.

0
source share

Two options that I see (there is still not enough information): 1. This happens immediately after loading, I bet for the classpath, see the Answers above. 2. This happens after a while, when the application is running (my case), read the following paragraphs.

When I received a class that did not find errors and also has the same error as you, right now, quite quiet is issued without a space on the device, as well as a full disk, full memory.

My environment is spring boot, logback is enabled automagicaly, there is repackaging in maven, so the wverithing I need is enabled. This error occurs after my application has been running for 20 minutes or so, there are thousands of threads. If you do not limit the memory to your virtual machine, it can become very high, even if it is not needed.

One day (2 days ago) I spend 3 hours looking around the claspath stuf, ... the question was a complete disk

0
source share

If you make sure that logback-class and logback-core are already in your classpath. See below. In your Logback.xml you need to add debug = "true"

 <configuration debug="true"> 

I ran into the problem "java.lang.NoClassDefFoundError: ch / qos / logback / classic / spi / ThrowableProxy" in my tomcat. However, adding debug = 'true' will be fine.

0
source share

For us, this means that "you are running out of file descriptors, increase the restriction on access to an open file." (too many sockets were created using all of them). Thanks for the original answer here .

Other things I've seen: make sure your spring boot is at least 1.3.8

Also make sure that the jars below are not overwritten / not modified / unstable file system. FWIW.

0
source share

All Articles