JiriOndrusek opened a new issue, #7330:
URL: https://github.com/apache/camel-quarkus/issues/7330

   Recent camel [bump](https://github.com/apache/camel/pull/17942) of 
com.cedarsoftware:java-util from 3.3.0 to 3.3.1 causes issue in `headersmap` 
native tests.
   Problem seems to be caused by this 
[change](https://github.com/jdereg/java-util/commit/d81b42a77cfedc3879ddd229e6e68523f29588f1).
 When new method  `scheduleImmediateCleanup` is triggered in build-time, the 
thread is started, but the thread is not accessible in runtime. I was not able 
to detect the reason of calling this in buildtime (to avoid the call if 
possible)
   
   s a quick solution, the naive tests of `headersmap` are disabled for now. 
   
   Here is the stack trace:
   
   ```
   Error: Detected a started Thread in the image heap. Thread name: 
LRUCache-Purge-Thread. Threads running in the image generator are no longer 
running at image runtime. If these objects should not be stored in the image 
heap, you can use 
   
       '--trace-object-instantiation=java.lang.Thread'
   
   to find classes that instantiate these objects. Once you found such a class, 
you can mark it explicitly for run time initialization with 
   
       '--initialize-at-run-time=<culprit>'
   
   to prevent the instantiation of the object.
   The object was probably created by a class initializer and is reachable from 
a static field. You can request class initialization at image runtime by using 
the option --initialize-at-run-time=<class-name>. Or you can write your own 
initialization methods and call them explicitly from your main entry point.
   Trace: Object was reached by
     reading field 
java.util.concurrent.locks.AbstractQueuedSynchronizer$Node.waiter of constant 
       
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode@4f52bf29: 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode@4f52bf29
     reading field 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.firstWaiter
 of constant 
       
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@263ce9cd: 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@263ce9cd
     reading field 
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.available of 
constant 
       
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue@6cbf273c: 
[java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@3d9b0464[N...
     reading field java.util.concurrent.ThreadPoolExecutor.workQueue of 
constant 
       java.util.concurrent.ScheduledThreadPoolExecutor@20579658: 
java.util.concurrent.ScheduledThreadPoolExecutor@20579658[Running, pool size = 
1...
     scanning root java.util.concurrent.ScheduledThreadPoolExecutor@20579658: 
java.util.concurrent.ScheduledThreadPoolExecutor@20579658[Running, pool size = 
1... embedded in 
       
com.cedarsoftware.util.cache.ThreadedLRUCacheStrategy.scheduleImmediateCleanup(ThreadedLRUCacheStrategy.java)
     parsing method 
com.cedarsoftware.util.cache.ThreadedLRUCacheStrategy.scheduleImmediateCleanup(ThreadedLRUCacheStrategy.java:166)
 reachable via the parsing context
       at 
com.cedarsoftware.util.cache.ThreadedLRUCacheStrategy.put(ThreadedLRUCacheStrategy.java:189)
       at java.util.Map.putIfAbsent(Map.java:840)
       at java.io.ObjectStreamClass.getReflector(ObjectStreamClass.java:2129)
       at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:438)
       at 
java.io.ObjectStreamClass$Caches$1.computeValue(ObjectStreamClass.java:111)
       at 
java.io.ObjectStreamClass$Caches$1.computeValue(ObjectStreamClass.java:108)
       at java.io.ClassCache$1.computeValue(ClassCache.java:73)
       at java.io.ClassCache$1.computeValue(ClassCache.java:70)
       at 
com.oracle.svm.core.jdk.Target_java_lang_ClassValue.get(JavaLangSubstitutions.java:764)
       at 
java.lang.invoke.MethodHandleImpl.makeArrayElementAccessor(MethodHandleImpl.java:80)
       at 
java.lang.invoke.MethodHandleImpl.makeCollectorForm(MethodHandleImpl.java:2094)
       at 
java.lang.invoke.MethodHandleImpl.makeCollector(MethodHandleImpl.java:2060)
       at 
java.lang.invoke.MethodHandleImpl.varargsArray(MethodHandleImpl.java:1472)
       at 
java.lang.invoke.MethodHandleImpl$IntrinsicMethodHandle.asCollector(MethodHandleImpl.java:1415)
       at 
java.lang.invoke.MethodHandleImpl$AsVarargsCollector.asTypeUncached(MethodHandleImpl.java:509)
       at java.lang.invoke.MethodHandle.asType(MethodHandle.java:870)
       at sun.nio.ch.DatagramChannelImpl.socket(DatagramChannelImpl.java:292)
       at 
io.netty.channel.socket.nio.NioDatagramChannelConfig.<init>(NioDatagramChannelConfig.java:117)
       at 
io.netty.channel.socket.nio.NioDatagramChannel.<init>(NioDatagramChannel.java:153)
       at 
com.oracle.svm.core.code.FactoryMethodHolder.NioDatagramChannel_constructor_ae49d6fef61842849daea8e50d25ae83e01bab9a(generated:0)
       at static root method.(Unknown Source)
   
   ```


-- 
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: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to