Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By JosAH

Thread: Instrumentation Factory Error

  1. #1
    Ashwin is offline Member
    Join Date
    May 2012
    Posts
    3
    Rep Power
    0

    Default Instrumentation Factory Error

    Hi all,


    I am using Apache Server for JPA Project using openjpa-1.1.0 jar, when i login my home page,
    it shows me

    Class Found Exception: Instrumentation Factory Error
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :621)
    at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader .java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader. java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
    at
    org.apache.openjpa.persistence.validation.Validati onUtils.setupValidation(ValidationUtils.java:53)
    at
    org.apache.openjpa.persistence.PersistenceProvider Impl.loadValidator(PersistenceProviderImpl.java:29 0)
    at
    org.apache.openjpa.persistence.PersistenceProvider Impl.createEntityManagerFactory(PersistenceProvide rImpl.java:97)
    at
    org.apache.openjpa.persistence.OpenJPAPersistence. createEntityManagerFactory(OpenJPAPersistence.java :128)
    at
    org.apache.openjpa.persistence.OpenJPAPersistence. createEntityManagerFactory(OpenJPAPersistence.java :111)
    at test_test.user.UserAction.execute(UserAction.java: 39)


    Pls, someone help to solve this issue
    Last edited by Ashwin; 05-15-2012 at 04:30 PM.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,338
    Rep Power
    25

    Default Re: Instrumentation Factory Error

    Class Found Exception:
    That error message is different. It looks like there are spaces in the name of the exception. Why is that?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default Re: Instrumentation Factory Error

    Quote Originally Posted by Ashwin View Post
    Class Found Exception
    Am I glad I never saw that exception before; one of my latest applications has more than 4000 classes running (according to jconsole).

    kind regards,

    Jos
    DarrylBurke likes this.
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    Ashwin is offline Member
    Join Date
    May 2012
    Posts
    3
    Rep Power
    0

    Default Re: Instrumentation Factory Error

    Quote Originally Posted by Norm View Post
    That error message is different. It looks like there are spaces in the name of the exception. Why is that?



    sorry, while copying and pasting it occupied spaces.. in console it printed without spaces

  5. #5
    thrasher is offline Banned
    Join Date
    May 2012
    Posts
    1
    Rep Power
    0

    Default ClassNotFoundException

    Am also getting the same issue . Please anyone tell me the Route Cause of the problem.


    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.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
    at sun.instrument.InstrumentationImpl.loadClassAndSta rtAgent(InstrumentationImpl.java:280)
    at sun.instrument.InstrumentationImpl.loadClassAndCal lAgentmain(InstrumentationImpl.java:348)

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: Instrumentation Factory Error

    Why did you create a new account to post that? Couldn't you be upfront about omitting the information the first time round?

    We don't like sly behavior here. I'm closing this thread and banning both accounts: Ashwin for a week and thrasher permanently.

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Bytecode Instrumentation
    By rohitdhall07 in forum Advanced Java
    Replies: 2
    Last Post: 07-28-2011, 04:21 PM
  2. Instrumentation with nanosecond accuracy
    By adam197 in forum Advanced Java
    Replies: 4
    Last Post: 04-02-2010, 02:29 AM
  3. Replies: 0
    Last Post: 06-30-2008, 09:42 PM
  4. Replies: 0
    Last Post: 06-26-2008, 03:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •