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

NPE in ClassLoaderCompiler with multi-module project #2084

Closed
gsmet opened this issue Apr 15, 2019 · 1 comment · Fixed by #2171
Closed

NPE in ClassLoaderCompiler with multi-module project #2084

gsmet opened this issue Apr 15, 2019 · 1 comment · Fixed by #2171
Labels
kind/bug Something isn't working
Milestone

Comments

@gsmet
Copy link
Member

gsmet commented Apr 15, 2019

Well, sort of: I'm building one of the quickstarts with master, without the patch fixing the parent pom detection applied. So all the quickstarts are in the workspace and some of them have a null getClassesPath() here: https://github.com/quarkusio/quarkus/blob/master/core/devmode/src/main/java/io/quarkus/dev/ClassLoaderCompiler.java#L124 .

While this specific issue will be fixed by Alexey's patch, it can still happen in the case of a multi-module project where not all the modules have been built.

Either an exception or a warning (if we think it could work anyway) is in order, but definitely not a NPE.

Stacktrace:

2019-04-15 17:38:49,484 SEVERE [io.qua.dev.RuntimeCompilationSetup] (main) Failed to create compiler, runtime compilation will be unavailable: java.lang.NullPointerException
	at java.io.File.<init>(File.java:277)
	at io.quarkus.dev.ClassLoaderCompiler.<init>(ClassLoaderCompiler.java:124)
	at io.quarkus.dev.RuntimeCompilationSetup.setup(RuntimeCompilationSetup.java:38)
	at io.quarkus.dev.DevModeMain.main(DevModeMain.java:78)
@gsmet gsmet added the kind/bug Something isn't working label Apr 15, 2019
@gsmet gsmet added this to the 0.14.0 milestone Apr 15, 2019
@rsvoboda
Copy link
Member

geoand added a commit to geoand/quarkus that referenced this issue Apr 22, 2019
gsmet added a commit that referenced this issue Apr 23, 2019
Log a proper message when launching dev mode on unbuilt module
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.

2 participants