You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/08/06 09:12:56 UTC

[GitHub] [camel-quarkus] aldettinger opened a new issue #1517: health example throws VerifyError as class MonkeyHealthCheck_ClientProxy overrides final method AbstractHealthCheck.addMetaData

aldettinger opened a new issue #1517:
URL: https://github.com/apache/camel-quarkus/issues/1517


   ```
   cd examples/health
   mvn clean package
   java -jar target/camel-quarkus-examples-health-*-runner.jar
   ```
   is throwing:
   ```
   2020-08-06 11:01:23,560 ERROR [io.qua.application] (main) Failed to start application (with profile prod): java.lang.VerifyError: class org.acme.health.MonkeyHealthCheck_ClientProxy overrides final method org.apache.camel.impl.health.AbstractHealthCheck.addMetaData(Ljava/lang/String;Ljava/lang/Object;)V
   	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
   	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
   	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
   	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
   	at org.acme.health.MonkeyHealthCheck_Bean.proxy(MonkeyHealthCheck_Bean.zig:33)
   	at org.acme.health.MonkeyHealthCheck_Bean.get(MonkeyHealthCheck_Bean.zig:229)
   	at org.acme.health.MonkeyHealthCheck_Bean.get(MonkeyHealthCheck_Bean.zig:245)
   	at org.acme.health.MyRouteBuilder_Bean.create(MyRouteBuilder_Bean.zig:215)
   	at org.acme.health.MyRouteBuilder_Bean.create(MyRouteBuilder_Bean.zig:255)
   	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:88)
   	at io.quarkus.arc.impl.ComputingCache$CacheFunction.lambda$apply$0(ComputingCache.java:99)
   	at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
   	at io.quarkus.arc.impl.ComputingCache.getValue(ComputingCache.java:41)
   	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:25)
   	at org.acme.health.MyRouteBuilder_ClientProxy.arc$delegate(MyRouteBuilder_ClientProxy.zig:92)
   	at org.acme.health.MyRouteBuilder_ClientProxy.addRoutesToCamelContext(MyRouteBuilder_ClientProxy.zig:846)
   	at org.apache.camel.impl.engine.AbstractCamelContext.addRoutes(AbstractCamelContext.java:1175)
   	at org.apache.camel.quarkus.core.CamelContextRecorder.addRoutesFromContainer(CamelContextRecorder.java:101)
   	at io.quarkus.deployment.steps.CamelContextProcessor$runtime1442202552.deploy_0(CamelContextProcessor$runtime1442202552.zig:76)
   	at io.quarkus.deployment.steps.CamelContextProcessor$runtime1442202552.deploy(CamelContextProcessor$runtime1442202552.zig:40)
   	at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:631)
   	at io.quarkus.runtime.Application.start(Application.java:90)
   	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:92)
   	at io.quarkus.runtime.Quarkus.run(Quarkus.java:61)
   	at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
   	at io.quarkus.runtime.Quarkus.run(Quarkus.java:106)
   	at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)
   ```
   Should we could make AbstractHealthCheck.addMetaData non final ?
   `quarkus.arc.remove-final-for-proxyable-methods` is not working on superclasses, maybe it could be another way ?
   Or recommend not to use proxy/inheritance ? I can't see a classy way however.


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

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



[GitHub] [camel-quarkus] jamesnetherton commented on issue #1517: health example throws VerifyError as class MonkeyHealthCheck_ClientProxy overrides final method AbstractHealthCheck.addMetaData

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #1517:
URL: https://github.com/apache/camel-quarkus/issues/1517#issuecomment-669821312


   Or I wonder if it's simpler to refactor the the 'chaos' generator part of the health check, so that it doesn't need to be triggered from the Camel route. E.g flip the `up` flag on every invocation of `doCall`.
   
   Then you could avoid the bean proxying / `@Inject`. I don't see users wanting to do that in most scenarios (IMO).


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

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



[GitHub] [camel-quarkus] aldettinger commented on issue #1517: health example throws VerifyError as class MonkeyHealthCheck_ClientProxy overrides final method AbstractHealthCheck.addMetaData

Posted by GitBox <gi...@apache.org>.
aldettinger commented on issue #1517:
URL: https://github.com/apache/camel-quarkus/issues/1517#issuecomment-669983395


   No proxy, no issue. Ok, I'm gonna try to do something without injecting proxy.


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

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



[GitHub] [camel-quarkus] aldettinger closed issue #1517: health example throws VerifyError as class MonkeyHealthCheck_ClientProxy overrides final method AbstractHealthCheck.addMetaData

Posted by GitBox <gi...@apache.org>.
aldettinger closed issue #1517:
URL: https://github.com/apache/camel-quarkus/issues/1517


   


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

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