Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 29636 invoked from network); 9 Oct 2007 17:39:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 17:39:11 -0000 Received: (qmail 79241 invoked by uid 500); 9 Oct 2007 17:38:59 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 79230 invoked by uid 99); 9 Oct 2007 17:38:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 10:38:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 17:39:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 92C6E71420E for ; Tue, 9 Oct 2007 10:38:50 -0700 (PDT) Message-ID: <14945951.1191951530575.JavaMail.jira@brutus> Date: Tue, 9 Oct 2007 10:38:50 -0700 (PDT) From: "Erik Bengtson (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Created: (JDO-544) NullPointerException in JDOImplHelper if running with security manager enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org NullPointerException in JDOImplHelper if running with security manager enabled ------------------------------------------------------------------------------ Key: JDO-544 URL: https://issues.apache.org/jira/browse/JDO-544 Project: JDO Issue Type: Bug Components: api2 Reporter: Erik Bengtson Priority: Minor --- Craig says: Hi Erik, Actually, this is a bug in JDOImplHelper. It is missing a doPrivileged around calling getDateTimeInstance. The permissions you mention should be assigned to the JDO jar, if needed at all. We need to look at the implementation here and decide if getDateTimeInstance is really needed or if there is some other way to get this functionality. Can you please file a JIRA? Thanks, Craig On Oct 8, 2007, at 1:25 PM, Erik Bengtson wrote: > An application using JDO needs the following additional permissions > to run: > > permission java.util.PropertyPermission "user.country", "read"; > permission java.util.PropertyPermission "user.timezone", > "read,write"; > permission java.util.PropertyPermission "java.home", "read"; > > Otherwise: > > Caused by: java.lang.NullPointerException > at java.security.AccessControlContext.checkPermission(Unknown > Source) > at java.security.AccessController.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkPermission(Unknown Source) > at java.util.TimeZone.hasPermission(Unknown Source) > at java.util.TimeZone.setDefaultZone(Unknown Source) > at java.util.TimeZone.getDefaultRef(Unknown Source) > at java.util.TimeZone.getDefault(Unknown Source) > at java.text.SimpleDateFormat.initializeCalendar(Unknown Source) > at java.text.SimpleDateFormat.(Unknown Source) > at java.text.DateFormat.get(Unknown Source) > at java.text.DateFormat.getDateTimeInstance(Unknown Source) > at javax.jdo.spi.JDOImplHelper.(JDOImplHelper.java:123) > ... 22 more > > > Is that interesting to note in the JDO SPEC? > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.