• Bug
  • Status: Resolved
  • 2 Major
  • Resolution: Cannot Reproduce
  • klalithr
  • Reporter: klalithr
  • May 07, 2012
  • 0
  • Watchers: 3
  • October 16, 2012
  • October 16, 2012

Description

Issue outlined below

http://forums.terracotta.org/forums/posts/list/6975.page

Access denied error when using sizeOf utility.

[5/2/12 11:55:22:725 IST] 00000023 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Refer to the InfoCenter for further information.

Permission:

net.sf.ehcache.sizeof.agent.instrumentationSystemProperty : Access denied (java.util.PropertyPermission net.sf.ehcache.sizeof.agent.instrumentationSystemProperty read)

Code:

net.sf.ehcache.pool.sizeof.SizeOfAgent in {file:/C:/Users/admin/AppData/Local/Temp/ehcache-sizeof-agent6943631241365150552.jar}

Stack Trace:

java.security.AccessControlException: Access denied (java.util.PropertyPermission net.sf.ehcache.sizeof.agent.instrumentationSystemProperty read) at java.security.AccessController.checkPermission(AccessController.java:108) at java.lang.SecurityManager.checkPermission(SecurityManager.java:533) at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:212) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1286) at java.lang.System.getProperty(System.java:383) at java.lang.System.getProperty(System.java:367) at java.lang.Boolean.getBoolean(Boolean.java:233) at net.sf.ehcache.pool.sizeof.SizeOfAgent.registerSystemProperty(SizeOfAgent.java:25) at net.sf.ehcache.pool.sizeof.SizeOfAgent.agentmain(SizeOfAgent.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323) at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348) at com.ibm.tools.attach.javaSE.Attachment.loadAgentLibraryImpl(Native Method) at com.ibm.tools.attach.javaSE.Attachment.loadAgentLibrary(Attachment.java:244) at com.ibm.tools.attach.javaSE.Attachment.parseLoadAgent(Attachment.java:222) at com.ibm.tools.attach.javaSE.Attachment.doCommand(Attachment.java:141) at com.ibm.tools.attach.javaSE.Attachment.run(Attachment.java:101)

Comments

Fiona OShea 2012-05-07

alot of things don’t work with security managers turned on, field will have to work with the user to figure out what the optimal settings are in websphere.

stallapp stallapp 2012-05-31

We are using 2.5.1 EHCache and Websphere 7.0

Karthik Lalithraj 2012-10-16

Unable to reproduce this inhouse. If this is still a problem, please contact [email protected] and one of the field engineers can get on a webex to look at your problem.