Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
1.11.1, 1.11.3
-
None
-
None
-
Runtime:
Apache Tomcat/9.0.74
Java 11.0.19
Description
Hi,
I am having a problem with one avro generated class. The problem is totally random and it's very hard to understand what is causing the issue.
Here the stacktrace:
java.lang.ExceptionInInitializerError: null
at com.ubs.dag.business.service.globalcrmmanagement.impl.TagServiceImpl.mapEnrichResponseToStoreRequest(TagServiceImpl.java:110)
at com.ubs.dag.business.service.globalcrmmanagement.impl.TagServiceImpl.lambda$processTag$0(TagServiceImpl.java:76)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "org.apache.avro.fastread" "read")
at java.base/java.security.AccessControlContext.checkPermission(Unknown Source)
at java.base/java.security.AccessController.checkPermission(Unknown Source)
at java.base/java.lang.SecurityManager.checkPermission(Unknown Source)
at java.base/java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.base/java.lang.System.getProperty(Unknown Source)
at org.apache.avro.generic.GenericData.<init>(GenericData.java:195)
at org.apache.avro.generic.GenericData.<init>(GenericData.java:111)
at org.apache.avro.specific.SpecificData.<init>(SpecificData.java:123)
at com.ubs.gtf.endpoints.store.StoreRequest.<clinit>(StoreRequest.java:23)
the problem seems to be triggered when, from the GenericData class, the code tries to lookup into the system property "org.apache.avro.fastread".
The problem is hard to replicate but, once it happens, every attempt to instantiate the avro class ends up with this error and the application server must be restarted.