ehcache read permissions

0
In our application we received the following error: Apr 1 13:15:30.473 127.0.0.1 tr10000: ERROR - ActorSystem: access denied ("java.util.PropertyPermission" "net.sf.ehcache.store.6753d124-14b7-4e9a-9d94-97d5c17d8697.config.alwaysPutOnHeap" "read") Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (1/45) akka.actor.ActorInitializationException: exception during creation Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (2/45) at akka.actor.ActorInitializationException$.apply(Actor.scala:164) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (3/45) at akka.actor.ActorCell.create(ActorCell.scala:596) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (4/45) at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (5/45) at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (6/45) at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (7/45) at akka.dispatch.Mailbox.run(Mailbox.scala:219) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (8/45) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (9/45) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (10/45) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (11/45) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (12/45) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Apr 1 13:15:30.475 127.0.0.1 tr10000: ERROR - ActorSystem: (13/45) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (14/45) Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "net.sf.ehcache.store.6753d124-14b7-4e9a-9d94-97d5c17d8697.config.alwaysPutOnHeap" "read") Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (15/45) at java.security.AccessControlContext.checkPermission(Unknown Source) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (16/45) at java.security.AccessController.checkPermission(Unknown Source) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (17/45) at java.lang.SecurityManager.checkPermission(Unknown Source) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (18/45) at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (19/45) at java.lang.System.getProperty(Unknown Source) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (20/45) at net.sf.ehcache.store.MemoryStore.getAdvancedBooleanConfigProperty(MemoryStore.java:1057) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (21/45) at net.sf.ehcache.store.MemoryStore.<init>(MemoryStore.java:133) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (22/45) at net.sf.ehcache.store.NotifyingMemoryStore.<init>(NotifyingMemoryStore.java:37) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (23/45) at net.sf.ehcache.store.NotifyingMemoryStore.create(NotifyingMemoryStore.java:49) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (24/45) at net.sf.ehcache.store.MemoryOnlyStore.create(MemoryOnlyStore.java:78) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (25/45) at net.sf.ehcache.Cache.initialise(Cache.java:1099) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (26/45) at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1306) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (27/45) at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1337) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (28/45) at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1235) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (29/45) at net.sf.ehcache.CacheManager.addCache(CacheManager.java:1177) Apr 1 13:15:30.476 127.0.0.1 tr10000: ERROR - ActorSystem: (30/45) at com.mendix.core.cache.internal.Cacher.<init>(MxObjectCacheImpl.scala:196) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (31/45) at com.mendix.core.cache.internal.CacheSystem$$anonfun$5.apply(MxObjectCacheImpl.scala:179) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (32/45) at com.mendix.core.cache.internal.CacheSystem$$anonfun$5.apply(MxObjectCacheImpl.scala:179) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (33/45) at akka.actor.TypedCreatorFunctionConsumer.produce(Props.scala:343) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (34/45) at akka.actor.Props.newActor(Props.scala:252) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (35/45) at akka.actor.ActorCell.newActor(ActorCell.scala:552) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (36/45) at akka.actor.ActorCell.create(ActorCell.scala:578) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (37/45) at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (38/45) at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (39/45) at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (40/45) at akka.dispatch.Mailbox.run(Mailbox.scala:219) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (41/45) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (42/45) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (43/45) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (44/45) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) Apr 1 13:15:30.477 127.0.0.1 tr10000: ERROR - ActorSystem: (45/45) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) After this users with certain userroles were no longer able to login, at this time I'm not sure if the 2 are related and I wonder if anyone has had this issue before. Also, should we submit a ticket to request read rights for the ecache? Or is there another cause for this error?
asked
2 answers
1

Please read the answer to the same issue here. There you can find more information about the cause of the issue and how it can be resolved.

answered
0

This sort of error would usually occur when you have a custom java action and a library are you are using requires permission to read or write to a java property.

Is this just happening locally? If so turn off emulate cloud security in the project properties.

You can change your .policy file to allow these java properties to be accessed.

See this: https://forum.mendix.com/questions/5099/javautilPropertyPermission-access-denied

Which might help.

answered