You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Dennis Holunder <de...@gmail.com> on 2020/09/16 14:40:29 UTC

Camel Quarkus 1.1.0 Main fails to start

Hi,

tried camel-quarkus-examples-timer-log-main in Intelij and it fails to
start with:

Caused by: java.lang.IllegalArgumentException: The supplied
'main-class' value of
'org.apache.camel.quarkus.main.CamelMainApplication' does not
correspond to either a fully qualified class name or a matching 'name'
field of one of the '@QuarkusMain' annotations

Stacktrace:
...
...


at io.quarkus.builder.Execution.run(Execution.java:116)
at io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:79)
at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:149)
at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:250)
... 18 more
Caused by: java.lang.IllegalArgumentException: The supplied
'main-class' value of
'org.apache.camel.quarkus.main.CamelMainApplication' does not
correspond to either a fully qualified class name or a matching 'name'
field of one of the '@QuarkusMain' annotations
at io.quarkus.deployment.steps.MainClassBuildStep.mainClassBuildStep(MainClassBuildStep.java:400)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:936)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2046)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1578)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at java.base/java.lang.Thread.run(Thread.java:832)
at org.jboss.threads.JBossThread.run(JBossThread.java:479)

2020-09-16 16:35:45,823 INFO  [io.qua.dep.dev.IsolatedDevModeMain]
(main) Attempting to start hot replacement endpoint to recover from
previous Quarkus startup failure

Re: Camel Quarkus 1.1.0 Main fails to start

Posted by Luca Burgazzoli <lb...@gmail.com>.
that's new, mind opening an issue ?
we are experiencing some issues with QuarkusMain, see as example:
https://github.com/quarkusio/quarkus/issues/10147

---
Luca Burgazzoli


On Wed, Sep 16, 2020 at 4:41 PM Dennis Holunder <de...@gmail.com>
wrote:

> Hi,
>
> tried camel-quarkus-examples-timer-log-main in Intelij and it fails to
> start with:
>
> Caused by: java.lang.IllegalArgumentException: The supplied
> 'main-class' value of
> 'org.apache.camel.quarkus.main.CamelMainApplication' does not
> correspond to either a fully qualified class name or a matching 'name'
> field of one of the '@QuarkusMain' annotations
>
> Stacktrace:
> ...
> ...
>
>
> at io.quarkus.builder.Execution.run(Execution.java:116)
> at
> io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:79)
> at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:149)
> at
> io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:250)
> ... 18 more
> Caused by: java.lang.IllegalArgumentException: The supplied
> 'main-class' value of
> 'org.apache.camel.quarkus.main.CamelMainApplication' does not
> correspond to either a fully qualified class name or a matching 'name'
> field of one of the '@QuarkusMain' annotations
> at
> io.quarkus.deployment.steps.MainClassBuildStep.mainClassBuildStep(MainClassBuildStep.java:400)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
> at
> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:936)
> at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
> at
> org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at
> org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2046)
> at
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1578)
> at
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
> at java.base/java.lang.Thread.run(Thread.java:832)
> at org.jboss.threads.JBossThread.run(JBossThread.java:479)
>
> 2020-09-16 16:35:45,823 INFO  [io.qua.dep.dev.IsolatedDevModeMain]
> (main) Attempting to start hot replacement endpoint to recover from
> previous Quarkus startup failure
>