java.lang.reflect.InvocationTargetException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I get the following error. Upon investigation, I found that org.springframework.context-3.0.0.RC1.jar, calls System.getProperties() and System.getenv() to initialize SYSTEM_PROPERTIES_BEAN_NAME & SYSTEM_ENVIRONMENT_BEAN_NAME. Both these calls raises exceptions on my server, due to our policies. My company restricts me from entering a line in 'policy' file that has a wildcard, in this case getenv.*. Is there a work around ? Basically, custom building the mentioned jar without these two beans initialized ? Any insite is highly appreciated! Thanks in advance. SreeV [10/30/09 3:06:45:594 CDT] 00000016 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Please refer to InfoCenter for further information. Permission: getenv.* : Access denied (java.lang.RuntimePermission getenv.*) Code: org.springframework.context.support.AbstractApplic ationContext in {file:/opt/httpd/root/apps/wszng/ibm/ccix-dev-ear/wszngWeb.war/WEB-INF/lib/org.springframework.context-3.0.0.RC1.jar} Stack Trace: java.security.AccessControlException: Access denied (java.lang.RuntimePermission getenv.*) at java.security.AccessController.checkPermission(Acc essController.java:108) at java.lang.SecurityManager.checkPermission(Security Manager.java:558) at com.ibm.ws.security.core.SecurityManager.checkPerm ission(SecurityManager.java:212) at java.lang.System.getenv(System.java:632) at org.springframework.context.support.AbstractApplic ationContext.prepareBeanFactory(AbstractApplicatio nContext.java:474)
    via by Sree Vaddi,
  • I get the following error. Upon investigation, I found that org.springframework.context-3.0.0.RC1.jar, calls System.getProperties() and System.getenv() to initialize SYSTEM_PROPERTIES_BEAN_NAME & SYSTEM_ENVIRONMENT_BEAN_NAME. Both these calls raises exceptions on my server, due to our policies. My company restricts me from entering a line in 'policy' file that has a wildcard, in this case getenv.*. Is there a work around ? Basically, custom building the mentioned jar without these two beans initialized ? Any insite is highly appreciated! Thanks in advance. SreeV [10/30/09 3:06:45:594 CDT] 00000016 SecurityManag W SECJ0314W: Current Java 2 Security policy reported a potential violation of Java 2 Security Permission. Please refer to InfoCenter for further information. Permission: getenv.* : Access denied (java.lang.RuntimePermission getenv.*) Code: org.springframework.context.support.AbstractApplic ationContext in {file:/opt/httpd/root/apps/wszng/ibm/ccix-dev-ear/wszngWeb.war/WEB-INF/lib/org.springframework.context-3.0.0.RC1.jar} Stack Trace: java.security.AccessControlException: Access denied (java.lang.RuntimePermission getenv.*) at java.security.AccessController.checkPermission(Acc essController.java:108) at java.lang.SecurityManager.checkPermission(Security Manager.java:558) at com.ibm.ws.security.core.SecurityManager.checkPerm ission(SecurityManager.java:212) at java.lang.System.getenv(System.java:632) at org.springframework.context.support.AbstractApplic ationContext.prepareBeanFactory(AbstractApplicatio nContext.java:474)
    via by Sree Vaddi,
    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397) Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.JAYATANA_LIBAGPATH") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372) at java.security.AccessController.checkPermission(AccessController.java:559) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.System.getenv(System.java:885) at com.jarego.jayatana.Agent.premain(Unknown Source) ... 6 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    andyglickandyglick
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    71 more bugmates