Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-640

ClassNotFoundException for InstrumentationFactory upon startup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 1.1.0, 1.2.0
    • Fix Version/s: 2.0.0-beta3
    • Component/s: kernel
    • Labels:
      None
    • Environment:
      JDK6, 1.2.0-trunk

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                curtisr7 Rick Curtis
                Reporter:
                mingfai Mingfai Ma
              • Votes:
                5 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: