openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Error: com.ibm.tools.attach.AttachNotSupportedException
Date Thu, 03 Feb 2011 16:13:12 GMT
Can you try running on 2.1.0.SNAPSHOT or trunk? I added support[1] for the
IBM jdk in 2.1.0.

[1] https://issues.apache.org/jira/browse/OPENJPA-1734

Thanks,
Rick

On Thu, Feb 3, 2011 at 9:51 AM, kojak <keithro@gmail.com> wrote:

>
> Hi,
>
> I've written a simple program to persist a bean using OpenJPA 2.0.1.  The
> code works fine with the Sun JRE; however, with  the IBM JRE (both are
> 1.6).
> I receive the following error. Does anyone have any ideas as to what could
> be going on?
>
> com.ibm.tools.attach.AttachNotSupportedException: target not found
> at
>
> com.ibm.tools.attach.javaSE.VirtualMachineImpl.tryAttachTarget(VirtualMachineImpl.java:303)
> at
>
> com.ibm.tools.attach.javaSE.VirtualMachineImpl.attachTarget(VirtualMachineImpl.java:86)
> at
>
> com.ibm.tools.attach.javaSE.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:37)
> at
>
> ibm.tools.attach.J9AttachProvider.attachVirtualMachine(J9AttachProvider.java:60)
> at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:221)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:611)
> at
>
> org.apache.openjpa.enhance.InstrumentationFactory.loadAgent(InstrumentationFactory.java:286)
> at
>
> org.apache.openjpa.enhance.InstrumentationFactory.access$300(InstrumentationFactory.java:51)
> at
>
> org.apache.openjpa.enhance.InstrumentationFactory$1.run(InstrumentationFactory.java:118)
> at java.security.AccessController.doPrivileged(AccessController.java:202)
> at
>
> org.apache.openjpa.enhance.InstrumentationFactory.getInstrumentation(InstrumentationFactory.java:90)
> at
>
> org.apache.openjpa.enhance.PCEnhancerAgent.loadDynamicAgent(PCEnhancerAgent.java:95)
> at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.loadAgent(PersistenceProviderImpl.java:324)
> at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:100)
> at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:154)
> at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:65)
> at
>
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:152)
> at
>
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:72)
>
>
>
>
> IBM JRE:
> java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build pxi3260sr9-20101125_01(SR9))
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32
> jvmxi3260sr9-20101124_69295 (JIT enabled, AOT enabled)
> J9VM - 20101124_069295
> JIT - r9_20101028_17488ifx2
> GC - 20101027_AA)
> JCL - 20101119_01
>
> Sun JRE
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Server VM (build 19.0-b09, mixed mode)
>

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