Opened 8 years ago

Closed 8 years ago

#130 closed defect (worksforme)

Spontaneous NoClassDefFoundError exceptions

Reported by: dmik Owned by:
Priority: major Milestone: GA2
Component: general Version: 1.6.0-b19 RC
Severity: medium Keywords:
Cc:

Description

Sometimes starting a Java application fails with the NoClassDefFoundError? exception being thrown.

The problem is quite rare and the the failed class name is quite random. Just retrying the startup procedure solves it.

I'm seeing it since long. However, it's really hard to reproduce on demand. Once I've got it next time, I will attach the logs.

Change History (3)

comment:1 Changed 8 years ago by dmik

Here is the output of the Java process:

Exception in thread "main" java.lang.NoClassDefFoundError: com/jidesoft/utils/Lm
        at smartsvn.PS.a(SourceFile:167)
        at SmartSVN.main(SourceFile:11)
Caused by: java.lang.ClassNotFoundException: com.jidesoft.utils.Lm
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 2 more

Note that the failing class may be different but the call stack is always the same.

AFAIR, NoClassDefFoundError? means that the class constructor somehow failed. Google contains a lot of info about that.

comment:2 Changed 8 years ago by dmik

Hmm, started SmartSVN a dozen times and can't reproduce this problem. Either it has been some how fixed by the latest Java b24 update (or within Odin) or I'm not just lucky (it should normally already happen at least once). Will keep it open for some more time.

comment:3 Changed 8 years ago by dmik

  • Resolution set to worksforme
  • Status changed from new to closed

Couldn't get a single one since I wrote the last comment. Closing.

Note: See TracTickets for help on using tickets.