Apache JDO Project - NullPointerException in JDOImplHelper due to security manager

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > October 2007 > NullPointerException in JDOImplHelper due to security manager





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author NullPointerException in JDOImplHelper due to security manager
Erik Bengtson

2007-10-08, 7:11 pm

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.<init>(Unknown Source)
at java.text.DateFormat.get(Unknown Source)
at java.text.DateFormat.getDateTimeInstance(Unknown Source)
at javax.jdo.spi.JDOImplHelper.<clinit>(JDOImplHelper.java:123)
... 22 more


Is that interesting to note in the JDO SPEC?




Craig L Russell

2007-10-08, 7:11 pm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com