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 2022/04/06 14:29:08 UTC

[GitHub] [camel-quarkus] jamesnetherton opened a new issue, #3703: Gracefully handle `AnnotationInstance` being null in `InjectionPointsProcessor.syntheticBeans`

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

   Some potential edge cases can result in an NPE that we should try to avoid. And at a minimum throw a friendlier exception that could perhaps hint at what the problem is.
   
   E.g something like this results in an NPE during the build phase:
   
   ```
   @Produce
   @Inject
   FluentProducerTemplate template;
   ```


-- 
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-unsubscribe@camel.apache.org.apache.org

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


[GitHub] [camel-quarkus] aldettinger commented on issue #3703: Gracefully handle `AnnotationInstance` being null in `InjectionPointsProcessor.syntheticBeans`

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

   The following stack trace might help:
   ```
   Caused by: java.lang.NullPointerException
       at org.apache.camel.quarkus.core.deployment.InjectionPointsProcessor.produceBeans (InjectionPointsProcessor.java:295)
       at org.apache.camel.quarkus.core.deployment.InjectionPointsProcessor.syntheticBeans (InjectionPointsProcessor.java:253)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:566)
       at io.quarkus.deployment.ExtensionLoader$2.execute (ExtensionLoader.java:820)
       at io.quarkus.builder.BuildContext.run (BuildContext.java:277)
       at org.jboss.threads.ContextHandler$1.runWith (ContextHandler.java:18)
       at org.jboss.threads.EnhancedQueueExecutor$Task.run (EnhancedQueueExecutor.java:2449)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run (EnhancedQueueExecutor.java:1478)
       at java.lang.Thread.run (Thread.java:829)
       at org.jboss.threads.JBossThread.run (JBossThread.java:501)
   ```


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-quarkus] zhfeng commented on issue #3703: Gracefully handle `AnnotationInstance` being null in `InjectionPointsProcessor.syntheticBeans`

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

   OK, it needs to get the default value by using `valueWithDefault`. I will take care of this issue.


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-quarkus] jamesnetherton closed issue #3703: Gracefully handle `AnnotationInstance` being null in `InjectionPointsProcessor.syntheticBeans`

Posted by GitBox <gi...@apache.org>.
jamesnetherton closed issue #3703: Gracefully handle `AnnotationInstance` being null in `InjectionPointsProcessor.syntheticBeans`
URL: https://github.com/apache/camel-quarkus/issues/3703


-- 
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-unsubscribe@camel.apache.org

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