[
https://issues.apache.org/jira/browse/OPENJPA-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721297#action_12721297
]
Donald Woods commented on OPENJPA-1119:
---------------------------------------
Michael, which OS are you seeing OOM for?
I'm running with the 64bit Sun JDK 1.6 on MacOSX -
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
with the following in o-p-j/pom.xml -
+ <test.jvm.maxpermsize>256m</test.jvm.maxpermsize>
+ <test.jvm.maxheapsize>512m</test.jvm.maxheapsize>
and MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
> NPE in InstrumentationFactory
> -----------------------------
>
> Key: OPENJPA-1119
> URL: https://issues.apache.org/jira/browse/OPENJPA-1119
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 2.0.0
> Reporter: Rick Curtis
> Assignee: Rick Curtis
> Fix For: 2.0.0
>
> Attachments: OPENJPA-1119.PATCH
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> As reported in the dev forum [1]
> InstrumentationFactory.class.getProtectionDomain().getCodeSource() returns
> null, causing a NPE.
> Caused by: java.lang.NullPointerException
> at
> org.apache.openjpa.enhance.InstrumentationFactory.getAgentJar(InstrumentationFactory.java:204)
> at
> org.apache.openjpa.enhance.InstrumentationFactory.access$200(InstrumentationFactory.java:47)
> at
> org.apache.openjpa.enhance.InstrumentationFactory$1.run(InstrumentationFactory.java:99)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.openjpa.enhance.InstrumentationFactory.getInstrumentation(InstrumentationFactory.java:87)
> at
> org.apache.openjpa.enhance.PCEnhancerAgent.loadDynamicAgent(PCEnhancerAgent.java:95)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.loadAgent(PersistenceProviderImpl.java:243)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:91)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:119)
> at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:55)
> at javax.persistence.Persistence.createFactory(Persistence.java:172)
> ... 51 more
> [1] http://n2.nabble.com/Error-loading-agent-with-Openjpa2-td3024299.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.