openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter" <kwsut...@gmail.com>
Subject Java 2 Security testing?
Date Tue, 13 Mar 2007 12:55:56 GMT
Just curious,
Has there been any testing with Java 2 Security enabled and OpenJPA?  I'm
hitting a semi-intermittent problem (it doesn't seem to show up on all
machines) which results in an NPE coming out of the
javax.persistence.Persistence.createEntityManager method.  I know we have no
control over this specific piece of code, but I'm wondering whether we need
some doPriv blocks elsewhere in the code path.  I reviewed the JIRA Issues
and didn't see anything related to this.  Before I go further, I thought I
would check to see if there's been any other experiences with Java 2
Security.  Thanks.

Kevin

P.S.  Here's the call stack if you are interested...

Caused by: java.lang.NullPointerException
    at java.io.Win32CanonicalPathComponentRetriever.nextComponent(
Win32CanonicalPath.java:318)
    at java.io.Win32CanonicalPath.equals(Win32CanonicalPath.java:117)
    at java.io.FilePermission.impliesIgnoreMask(FilePermission.java:373)
    at java.io.FilePermissionCollection.implies(FilePermission.java:763)
    at
org.eclipse.osgi.framework.internal.core.ConditionalPermissionSet.implies(
ConditionalPermissionSet.java:224)
    at
org.eclipse.osgi.framework.internal.core.BundleCombinedPermissions.implies(
BundleCombinedPermissions.java:124)
    at java.security.ProtectionDomain.implies(ProtectionDomain.java:225)
    at java.security.AccessController.checkPermission(AccessController.java
:94)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
    at com.ibm.ws.security.core.SecurityManager.checkPermission(
SecurityManager.java:189)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:886)
    at java.io.File.exists(File.java:726)
    at org.apache.openjpa.lib.meta.URLMetaDataIterator.getFile(
URLMetaDataIterator.java:68)
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(
XMLMetaDataParser.java:311)
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(
XMLMetaDataParser.java:289)
    at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(
XMLMetaDataParser.java:263)
    at
org.apache.openjpa.persistence.PersistenceProductDerivation$ConfigurationParser.parse
(PersistenceProductDerivation.java:419)
    at
org.apache.openjpa.persistence.PersistenceProductDerivation.parseResources(
PersistenceProductDerivation.java:287)
    at org.apache.openjpa.persistence.PersistenceProductDerivation.load(
PersistenceProductDerivation.java:254)
    at org.apache.openjpa.persistence.PersistenceProductDerivation.load(
PersistenceProductDerivation.java:152)
    at
org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory
(PersistenceProviderImpl.java:66)
    at
org.apache.openjpa.persistence.PersistenceProviderImpl.createEntityManagerFactory
(PersistenceProviderImpl.java:78)
    at javax.persistence.Persistence.createEntityManagerFactory(
Persistence.java:83)
    at javax.persistence.Persistence.createEntityManagerFactory(
Persistence.java:60)

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