aglinxinyuan commented on PR #4938:
URL: https://github.com/apache/texera/pull/4938#issuecomment-4377061608

   > > Mirror:
   > > After switching to Java 17 and running the workflows, this error 
occurred:
   > > ```
   > > [2026-05-04 22:46:53,334] [WARN] [org.ehcache.sizeof.ObjectGraphWalker] 
[pool-12-thread-1] - The JVM is preventing Ehcache from accessing the subgraph 
beneath 'private final byte[] java.lang.String.value' - cache sizes may be 
underestimated as a result 
   > > java.lang.reflect.InaccessibleObjectException: Unable to make field 
private final byte[] java.lang.String.value accessible: module java.base does 
not "opens java.lang" to unnamed module @2bffa76d
   > >  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
   > >  at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
   > >  at 
java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
   > >  at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
   > >  at 
org.ehcache.sizeof.ObjectGraphWalker.getAllFields(ObjectGraphWalker.java:245)
   > >  at 
org.ehcache.sizeof.ObjectGraphWalker.getFilteredFields(ObjectGraphWalker.java:204)
   > >  at org.ehcache.sizeof.ObjectGraphWalker.walk(ObjectGraphWalker.java:159)
   > >  at org.ehcache.sizeof.SizeOf.deepSizeOf(SizeOf.java:74)
   > > ```
   > 
   > Can you try:
   > 
   > ```
   > export JDK_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED 
--add-opens=java.base/java.io=ALL-UNNAMED 
--add-opens=java.base/java.util=ALL-UNNAMED 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
   > ```
   > 
   > Ref: 
[ehcache/ehcache3#3008](https://github.com/ehcache/ehcache3/issues/3008)
   
   Ok, it seems like the only JDK_JAVA_OPTIONS we need are 
"--add-opens=java.base/java.lang=ALL-UNNAMED 
--add-opens=java.base/java.util=ALL-UNNAMED". We don't need all of them.
   
   The ref seems incorrect by the way.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to