squakez commented on issue #5855:
URL: https://github.com/apache/camel-k/issues/5855#issuecomment-2363107609

   > Getting full stack trace would be nice too - whether this exception 
happens in agent's `preMain` or when instantiating the class in normal flow 
(after `main`).
   
   That's the full stack indeed :)
   
   It's happening in the agents call, even before the Camel application starts. 
Here the entire stack with the rest of the application. Mind that the 
application starts correctly. What it happens is that the agent does not start, 
so, it won't expose the port as expected.
   ```
   dump.go:417:     > I> No access restrictor found, access to any MBean is 
allowed
         dump.go:417:     > Could not start Jolokia agent: 
java.lang.IllegalStateException: Cannot load service 
org.jolokia.service.serializer.JolokiaSerializer,10 defined in 
jar:file:/deployments/dependencies/lib/main/org.jolokia.jolokia-agent-jvm-2.0.2-javaagent.jar!/META-INF/jolokia/services-default
 : java.lang.IllegalArgumentException: Can not instantiate 
org.jolokia.service.serializer.JolokiaSerializer: 
java.lang.reflect.InvocationTargetException. Aborting
         dump.go:417:     > 2024-09-19 14:29:15,831 INFO  
[org.apa.cam.k.Runtime] (main) Apache Camel K Runtime 3.8.1
         dump.go:417:     > 2024-09-19 14:29:15,834 INFO  
[org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: 
org.apache.camel.quarkus.main.CamelMainRuntime
         dump.go:417:     > 2024-09-19 14:29:15,835 INFO  
[org.apa.cam.mai.MainSupport] (main) Apache Camel (Main) 4.4.1 is starting
         dump.go:417:     > 2024-09-19 14:29:15,971 INFO  
[org.apa.cam.k.sup.SourcesSupport] (main) Loading routes from: 
SourceDefinition{name='Java', language='java', type='source', 
location='file:/etc/camel/sources/Java.java', }
         dump.go:417:     > 2024-09-19 14:29:19,680 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 4.4.1 (camel-1) 
is starting
         dump.go:417:     > 2024-09-19 14:29:20,571 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main) Routes startup (started:1)
         dump.go:417:     > 2024-09-19 14:29:20,571 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route1 
(timer://tick)
         dump.go:417:     > 2024-09-19 14:29:20,572 INFO  
[org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 4.4.1 (camel-1) 
started in 890ms (build:0ms init:0ms start:890ms)
         dump.go:417:     > 2024-09-19 14:29:20,576 INFO  [io.quarkus] (main) 
camel-k-integration 2.5.0-SNAPSHOT on JVM (powered by Quarkus 3.8.3) started in 
12.302s. 
         dump.go:417:     > 2024-09-19 14:29:20,576 INFO  [io.quarkus] (main) 
Profile prod activated. 
         dump.go:417:     > 2024-09-19 14:29:20,576 INFO  [io.quarkus] (main) 
Installed features: [camel-bean, camel-core, camel-java-joor-dsl, camel-jaxb, 
camel-k-core, camel-k-runtime, camel-kubernetes, camel-management, camel-timer, 
camel-xml-jaxb, cdi, kubernetes-client, smallrye-context-propagation, vertx]
         dump.go:417:     > 2024-09-19 14:29:21,578 INFO  [route1] (Camel 
(camel-1) thread #1 - timer://tick) Magicstring!
         dump.go:417:     > 2024-09-19 14:29:22,570 INFO  [route1] (Camel 
(camel-1) thread #1 - timer://tick) Magicstring!
   ```
   full dump is available in 
https://github.com/apache/camel-k/actions/runs/10942519804/job/30379734409#step:5:2401
 if it may helps getting more info.


-- 
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