You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Ming Fai (JIRA)" <ji...@apache.org> on 2008/06/23 12:42:44 UTC

[jira] Created: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

ClassNotFoundException for InstrumentationFactory upon startup
--------------------------------------------------------------

                 Key: OPENJPA-640
                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.1.0, 1.0.2
         Environment: JDK6, 1.2.0-trunk
            Reporter: Ming Fai
            Priority: Minor


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 message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Ming Fai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ming Fai updated OPENJPA-640:
-----------------------------

    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. 

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.)

  was:
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. 


added remarks

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Ming Fai
>            Priority: Minor
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis closed OPENJPA-640.
-------------------------------

    Resolution: Fixed

This issue should be fixed in 2.0.0 and trunk with the changes that Jeremy made for OPENJPA-1410. 

If the issue still exists on one of those releases, please re-open.

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Mingfai Ma
>            Assignee: Rick Curtis
>            Priority: Minor
>             Fix For: 2.0.0-beta3
>
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Adam Hardy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670682#action_12670682 ] 

Adam Hardy commented on OPENJPA-640:
------------------------------------

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. 

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Ming Fai
>            Priority: Minor
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Kurt T Stam (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765870#action_12765870 ] 

Kurt T Stam commented on OPENJPA-640:
-------------------------------------

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?

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Mingfai Ma
>            Priority: Minor
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850309#action_12850309 ] 

Rick Curtis commented on OPENJPA-640:
-------------------------------------

@Joseph - If you are enhancing your entities are build time this error won't cause you any problems.

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Mingfai Ma
>            Priority: Minor
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Adam Hardy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Hardy updated OPENJPA-640:
-------------------------------

    Affects Version/s: 1.2.0

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Ming Fai
>            Priority: Minor
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis reassigned OPENJPA-640:
-----------------------------------

    Assignee: Rick Curtis

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Mingfai Ma
>            Assignee: Rick Curtis
>            Priority: Minor
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis updated OPENJPA-640:
--------------------------------

    Fix Version/s: 2.0.0-beta3

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Mingfai Ma
>            Assignee: Rick Curtis
>            Priority: Minor
>             Fix For: 2.0.0-beta3
>
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-640) ClassNotFoundException for InstrumentationFactory upon startup

Posted by "Joseph Leong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850165#action_12850165 ] 

Joseph Leong commented on OPENJPA-640:
--------------------------------------

Does this problem still exist for OpenJPA 1.2.2?  If so, is it still innocuous to OpenJPA functionality as noted by the description?
We're getting:
Exception in thread "Attachment 65390" java.lang.ClassNotFoundException: org.apache.openjpa.enhance.InstrumentationFactory
	at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:383)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
	at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:292)
	at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:360)
	at com.ibm.tools.attach.javaSE.Attachment.loadAgentLibraryImpl(Native Method)
	at com.ibm.tools.attach.javaSE.Attachment.loadAgentLibrary(Attachment.java:253)
	at com.ibm.tools.attach.javaSE.Attachment.parseLoadAgent(Attachment.java:235)
	at com.ibm.tools.attach.javaSE.Attachment.doCommand(Attachment.java:154)
	at com.ibm.tools.attach.javaSE.Attachment.run(Attachment.java:116)
JVMJ9TI003E Agent_OnLoad failed for library instrument

Thanks!

> ClassNotFoundException for InstrumentationFactory upon startup
> --------------------------------------------------------------
>
>                 Key: OPENJPA-640
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-640
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>         Environment: JDK6, 1.2.0-trunk
>            Reporter: Mingfai Ma
>            Priority: Minor
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.