Skip to content

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Apr 3, 2019

@mkouba mkouba added this to the 0.13.0 milestone Apr 3, 2019
@mkouba
Copy link
Contributor Author

mkouba commented Apr 3, 2019

@hwellmann Could you pls try this patch with your application?

@mkouba mkouba requested a review from manovotn April 3, 2019 18:03
@hwellmann
Copy link

Testing with a local build of your branch, the original NPE no longer occurs, but now I'm getting a similar one related to producers:

Caused by: java.lang.NullPointerException
    at io.quarkus.arc.processor.Types.getTypeClosure (Types.java:245)
    at io.quarkus.arc.processor.Types.getTypeClosure (Types.java:160)
    at io.quarkus.arc.processor.Beans.createProducerMethod (Beans.java:118)
    at io.quarkus.arc.processor.BeanDeployment.findBeans (BeanDeployment.java:634)
    at io.quarkus.arc.processor.BeanDeployment.<init> (BeanDeployment.java:136)
    at io.quarkus.arc.processor.BeanProcessor.process (BeanProcessor.java:150)
    at io.quarkus.arc.deployment.ArcAnnotationProcessor.build (ArcAnnotationProcessor.java:259)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at io.quarkus.deployment.ExtensionLoader$1.execute (ExtensionLoader.java:506)
    at org.jboss.builder.BuildContext.run (BuildContext.java:413)
    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)

Copy link
Contributor

@manovotn manovotn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mkouba
Copy link
Contributor Author

mkouba commented Apr 4, 2019

@hwellmann Thanks. The other one is quite weird. Is your producer annotated with @Typed() (i.e. with no value)?

@hwellmann
Copy link

Almost: the class of the producer's return type is annotated @Typed() with no arguments.

(The producer method is org.apache.deltaspike.core.util.ProjectStageProducer.getProjectStage()).

}
}

Collection<AnnotationInstance> getDisposedParameteterQualifiers() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parameteter -> Parameter

.collect(Collectors.toList());
}

Type getDiposedParameterType() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diposed -> Disposed

@mkouba
Copy link
Contributor Author

mkouba commented Apr 4, 2019

@hwellmann Ok, I'll try to fix this case. But note that deltaspike will very likely not work on quarkus - it heavily relies on portable extensions that are not supported.

@hwellmann
Copy link

Yes, I know that DeltaSpike won't work. I'm converting an existing project, and the first shot was just to add quarkus-maven-plugin and run it. At least it seems to help discover some edge cases ;-)

@mkouba
Copy link
Contributor Author

mkouba commented Apr 4, 2019

@hwellmann @manovotn Ok, one more fix added. If CI is green and you're satisfied we should merge this PR and eventually create a new issue (I do expect more corner cases like this ;-).

@hwellmann
Copy link

Test successful. The stack trace no longer occurs.

@mkouba
Copy link
Contributor Author

mkouba commented Apr 4, 2019

@hwellmann Thanks!

@mkouba mkouba merged commit 5a53f8b into quarkusio:master Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPE in io.quarkus:quarkus-maven-plugin:0.12.0:build

3 participants