openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick" <michael.d.d...@gmail.com>
Subject Re: javaagent for PCEnhancer not working
Date Tue, 18 Dec 2007 20:47:07 GMT
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 <fyw300@yahoo.com> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message