openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fay Wang <fyw...@yahoo.com>
Subject javaagent for PCEnhancer works now
Date Wed, 19 Dec 2007 16:30:34 GMT
Thank you Mike. It works now.
  
  Regards,
  Fay
  

Michael Dick <michael.d.dick@gmail.com> wrote:  Hi Fay,

Have you tried using -javaagent:E:\wsjpa\openjpa\openjpa-all\target\openjpa-
1.1.0-SNAPSHOT.jar?

The kernel-5 jar uses a different premain class - which apparently is
missing the premain method.

-Mike

On Dec 18, 2007 2:02 PM, Fay Wang  wrote:

> Hi,
>
>      I tried to use javaagent to invoke PCEnhancer at the run time, but
> got and error of NoSuchMethodFound:
>
>  -javaagent:E:\wsjpa\openjpa\openjpa-kernel-5\target\openjpa-
> kernel-5-1.1.0-SNAPSHOT.jar
>
>
>  Exception in thread "main" java.lang.NoSuchMethodException:
> org.apache.openjpa.enhance.InstrumentationFactory.premain(java.lang.String,
>  java.lang.instrument.Instrumentation)
>      at java.lang.Class.throwNoSuchMethodException(Class.java:274)
>      at java.lang.Class.getMethod(Class.java:799)
>      at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(
> InstrumentationImpl.java:154)
>
>  Fatal error: processing of -javaagent failed
>
>  Any help will be appreciated.
>
>  Regards,
>  Fay
>
>
>
> ---------------------------------
> Looking for last minute shopping deals?  Find them fast with Yahoo!
> Search.
>


       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message