CAPS 5.1: System.getProperties() in JCD (Doc ID 1029619.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Java CAPS - Version 5.1.0 and later
Information in this document applies to any platform.
Information in this document applies to any platform.
***Checked for relevance on 12-Feb-2013***

Symptoms

When using System.getProperties() in a JCD, the java.security.AccessControlException shows (which worked in 505).

8031 [#|2006-05-04T16:47:28.099+0200|INFO|IS5.1|STC.eGate.CMap.Collabs.prDeployment.svClientReceiveFeedFromFile.prjNoeClientprJCD.jcdRecevieFeedFromFile|_ThreadID=19; ThreadName=Worker: 6;|--------> jcdRecevieFeedFromFile: Throwable encountered: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
8032 java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
8033 at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
8034 at java.security.AccessController.checkPermission(AccessController.java:427)
8035 at java.lang.SecurityManager.checkPermission(SecurityManager.java
:532)
8036 at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1252)
8037 at java.lang.System.getProperties(System.java:560)
8038 at prjNoeClientprJCD.jcdRecevieFeedFromFile.start(jcdRecevieFeedFromFile.java:107)
8039 at prDeployment.svClientReceiveFeedFromFile.jcdRecevieFeedFromFile_Runtime_Handler.handleRequest(jcdRecevieFeedFromFile_Runtime_Handler.java:391)
8040 at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)
8041 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
8042 at java.lang.reflect.Method.invoke(Method.java:585)
8043 at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
8044 at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:128)
8045 at $Proxy7.handleRequest(Unknown Source)
8046 at STC_MDB__schClientFeedScheduler_svClientReceiveFe_u002D_1772925868.sendMessage(STC_MDB__schClientFeedScheduler_svClientReceiveFe_u002D_1772925868.java:213)
8047 at STC_MDB__schClientFeedScheduler_svClientReceiveFe_u002D_1772925868.onContents(STC_MDB__schClientFeedScheduler_svClientReceiveFe_u002D_1772925868.java:100)
8048 at sun.reflect.GeneratedMethodAccessor208.invoke(Unknown Source)
8049 at sun.reflect.DelegatingMethod
AccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
8050 at java.lang.reflect.Method.invoke(Method.java:585)
8051 at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
8052 at java.security.AccessController.doPrivileged(Native Method)
8053 at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
8054 at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
8055 at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:948)
8056 at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:42)
8057 at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:130)
8058 at $Proxy11.onContents(Unknown Source)
8059 at com.stc.schedulerotd.scheduleradapter.FileReaderWork.run(FileReaderWork.java:77)
8060 at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:45)
8061 at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms