Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 75148 invoked from network); 16 Jun 2009 21:18:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 21:18:27 -0000 Received: (qmail 12202 invoked by uid 500); 16 Jun 2009 21:18:38 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 12162 invoked by uid 500); 16 Jun 2009 21:18:38 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 12151 invoked by uid 99); 16 Jun 2009 21:18:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 21:18:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 21:18:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 578C8234C044 for ; Tue, 16 Jun 2009 14:18:07 -0700 (PDT) Message-ID: <201818131.1245187087343.JavaMail.jira@brutus> Date: Tue, 16 Jun 2009 14:18:07 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1119) NPE in InstrumentationFactory In-Reply-To: <974584374.1244145907340.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720356#action_12720356 ] Michael Dick commented on OPENJPA-1119: --------------------------------------- Hi Rick, Before we commit the patch could we make the perm gen size configurable? 256m doesn't seem to be enough for 64 bit JVMs so it might make sense to user a variable in pom.xml; set the variable to a default value (if we can it'd be neat to set it differently for 64 vs 32 bit jvms automagically), but let the build override it with -Dtest.permgen.size=512m. Sorry I didn't try it on 64 bit JVMs until now. > 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, OPENJPA-1119.patch > > > 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.