[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] security manager broken in trunk

Hey All,

It would seem that I get a stackoverflow exception when I enable security:

properties.put(Constants.FRAMEWORK_STORAGE, PropsValues.OSGI_FRAMEWORK_STORAGE);

Here is the shortest log fragment showing the stack loop:

Exception in thread "Thread-1" java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:386)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.internalCheckPermission(EquinoxSecurityManager.java:117)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager$CheckPermissionAction.run(EquinoxSecurityManager.java:60)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.checkPermission(EquinoxSecurityManager.java:88)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.checkPermission(EquinoxSecurityManager.java:186)
at java.security.ProtectionDomain.seeAllp(ProtectionDomain.java:311)
at java.security.ProtectionDomain.toString(ProtectionDomain.java:271)
at java.lang.String.valueOf(String.java:2838)
at java.lang.StringBuilder.append(StringBuilder.java:132)
at java.security.AccessControlContext$2.run(AccessControlContext.java:388)
at java.security.AccessControlContext$2.run(AccessControlContext.java:386)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:386)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.internalCheckPermission(EquinoxSecurityManager.java:117)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager$CheckPermissionAction.run(EquinoxSecurityManager.java:60)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.checkPermission(EquinoxSecurityManager.java:88)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.checkPermission(EquinoxSecurityManager.java:186)
at java.security.ProtectionDomain.seeAllp(ProtectionDomain.java:311)
at java.security.ProtectionDomain.toString(ProtectionDomain.java:271)
at java.lang.String.valueOf(String.java:2838)
at java.lang.StringBuilder.append(StringBuilder.java:132)
at java.security.AccessControlContext$2.run(AccessControlContext.java:388)
at java.security.AccessControlContext$2.run(AccessControlContext.java:386)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:386)
at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.internalCheckPermission(EquinoxSecurityManager.java:117)


Thoughts?
--
Raymond Augà Â|ÂSenior Software Architect |ÂLiferay, Inc.Â

---

25 Apr 2012Â|ÂLiferay Nordic SymposiumÂ|Âliferay.com/nordic2012ÂÂNEW!
17 May 2012 |ÂLiferayÂBudapest SymposiumÂ|Âliferay.com/budapest2012ÂÂ
23 May 2012 |ÂLiferayÂFrance SymposiumÂ|Âliferay.com/france2012