Issue Details (XML | Word | Printable)

Key: OPENJPA-640
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Mingfai Ma
Votes: 3
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
OpenJPA

ClassNotFoundException for InstrumentationFactory upon startup

Created: 23/Jun/08 10:41 AM   Updated: 15/Oct/09 02:22 AM
Component/s: kernel
Affects Version/s: 1.0.2, 1.1.0, 1.2.0
Fix Version/s: None

Time Tracking:
Not Specified

Environment: JDK6, 1.2.0-trunk

Labels:


 Description  « Hide
This problem exists for a long time and it affects more than other people as well. Refer to an old thread in the mail list.
http://mail-archives.apache.org/mod_mbox/openjpa-users/200801.mbox/%3C478963D8.209@gmail.com%3E

java.lang.ClassNotFoundException: org.apache.openjpa.enhance.InstrumentationFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:280)
at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)

Previously, I had an old trick to patch the org.apache.openjpa.enhance.InstrumentationFactory.jar to include the InstrumentationFactory but it doesn't work now.

Remarks: the problem is merely about displaying a piece of stacktrace but there is no actual impact to the OpenJPA function. (that's why I marked the priority as minor.)

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mingfai Ma added a comment - 23/Jun/08 10:43 AM
added remarks

Mingfai Ma made changes - 23/Jun/08 10:43 AM
Field Original Value New Value
Description This problem exists for a long time and it affects more than other people as well. Refer to an old thread in the mail list.
http://mail-archives.apache.org/mod_mbox/openjpa-users/200801.mbox/%3C478963D8.209@gmail.com%3E

java.lang.ClassNotFoundException: org.apache.openjpa.enhance.InstrumentationFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:280)
at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)

Previously, I had an old trick to patch the org.apache.openjpa.enhance.InstrumentationFactory.jar to include the InstrumentationFactory but it doesn't work now.
This problem exists for a long time and it affects more than other people as well. Refer to an old thread in the mail list.
http://mail-archives.apache.org/mod_mbox/openjpa-users/200801.mbox/%3C478963D8.209@gmail.com%3E

java.lang.ClassNotFoundException: org.apache.openjpa.enhance.InstrumentationFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:280)
at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)

Previously, I had an old trick to patch the org.apache.openjpa.enhance.InstrumentationFactory.jar to include the InstrumentationFactory but it doesn't work now.

Remarks: the problem is merely about displaying a piece of stacktrace but there is no actual impact to the OpenJPA function. (that's why I marked the priority as minor.)
Adam Hardy added a comment - 05/Feb/09 09:18 AM
I'd like to bring this one to the front because of two things:

(1) when debugging, the thrown exceptions stop the debugger every time I submit a request to the webserver. Not much fun when everything runs so slowly anyway.

(2) support staff get very jittery about stacktraces in the logs and don't really understand that there isn't actually something wrong.

Adam Hardy made changes - 05/Feb/09 09:19 AM
Affects Version/s 1.2.0 [ 12313102 ]
Kurt T Stam added a comment - 15/Oct/09 02:22 AM
We're getting it on the jUDDI project too:

http://ci.apache.org/builders/juddi-trunk-openjpa/builds/6/steps/compile/logs/stdio

scroll down toward the bottom. It worries me that something is wrong. Is it ok to release jUDDI with this stack trace?