Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when resolving a CDI injection #477

Closed
gastaldi opened this issue Jan 12, 2019 · 1 comment · Fixed by #489
Closed

NullPointerException when resolving a CDI injection #477

gastaldi opened this issue Jan 12, 2019 · 1 comment · Fixed by #489
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@gastaldi
Copy link
Contributor

The following error is shown when mvn clean compile is performed in the https://github.com/gastaldi/forge-protean:

Caused by: java.lang.NullPointerException
    at org.jboss.protean.arc.processor.ObserverGenerator.createConstructor (ObserverGenerator.java:274)
    at org.jboss.protean.arc.processor.ObserverGenerator.generate (ObserverGenerator.java:121)
    at org.jboss.protean.arc.processor.BeanProcessor.process (BeanProcessor.java:199)
    at org.jboss.shamrock.arc.deployment.ArcAnnotationProcessor.build (ArcAnnotationProcessor.java:201)
    at org.jboss.shamrock.arc.deployment.ArcAnnotationProcessorBuildStep5.execute (Unknown Source)
    at org.jboss.builder.BuildContext.run (BuildContext.java:401)
    at org.jboss.threads.ContextClassLoaderSavingRunnable.run (ContextClassLoaderSavingRunnable.java:35)
    at org.jboss.threads.EnhancedQueueExecutor.safeRun (EnhancedQueueExecutor.java:1998)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask (EnhancedQueueExecutor.java:1525)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run (EnhancedQueueExecutor.java:1416)
    at java.lang.Thread.run (Thread.java:748)
    at org.jboss.threads.JBossThread.run (JBossThread.java:479)
@cescoffier cescoffier added this to the 0.6.0 milestone Jan 12, 2019
@cescoffier cescoffier added the kind/bug Something isn't working label Jan 12, 2019
@mkouba
Copy link
Contributor

mkouba commented Jan 13, 2019

Thanks for spotting this! We've completely forgotten to initialize observer method injection points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants