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

IDE Launcher fails for gradle project containing a submodule without resources #13711

Closed
joggeli34 opened this issue Dec 4, 2020 · 3 comments · Fixed by #13758
Closed

IDE Launcher fails for gradle project containing a submodule without resources #13711

joggeli34 opened this issue Dec 4, 2020 · 3 comments · Fixed by #13758
Assignees
Labels
area/gradle Gradle kind/bug Something isn't working
Milestone

Comments

@joggeli34
Copy link
Contributor

Describe the bug
We have a gradle project with some submodules. Some submodules have an empty resource folder.
When starting the main method directly from the Intellij, we receive a null pointer exception.

Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at io.quarkus.launcher.QuarkusLauncher.launch(QuarkusLauncher.java:57)
	at io.quarkus.runtime.Quarkus.launchFromIDE(Quarkus.java:92)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:79)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:104)
	at org.qumea.Main.main(Main.java:11)
Caused by: java.lang.reflect.InvocationTargetException
	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:566)
	at io.quarkus.launcher.QuarkusLauncher.launch(QuarkusLauncher.java:54)
	... 5 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at io.quarkus.bootstrap.IDELauncherImpl.launch(IDELauncherImpl.java:60)
	... 10 more
Caused by: java.lang.NullPointerException
	at io.quarkus.bootstrap.IDELauncherImpl.launch(IDELauncherImpl.java:50)
	... 10 more

Expected behavior
Empty resource directories should probably be ignored.

To Reproduce
submodule-no-resources.zip

Environment (please complete the following information):

  • Quarkus version or git rev: 1.10.2.Final
@joggeli34 joggeli34 added the kind/bug Something isn't working label Dec 4, 2020
@ghost ghost added the area/gradle Gradle label Dec 4, 2020
@ghost
Copy link

ghost commented Dec 4, 2020

/cc @glefloch, @quarkusio/devtools

@glefloch
Copy link
Member

glefloch commented Dec 4, 2020

thanks for reporting this @joggeli34, I think we handle this case in the gradle plugin, I can remember of an issue on this.

@glefloch glefloch self-assigned this Dec 4, 2020
@ghost ghost added this to the 1.11 - master milestone Dec 9, 2020
@gsmet gsmet modified the milestones: 1.11 - master, 1.10.4.Final Dec 14, 2020
@joggeli34
Copy link
Contributor Author

The issue is still there in 1.11.0.Final when running the main method directly from intellij. So the fix probably didn't work or I just missed something?

Regards

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

Successfully merging a pull request may close this issue.

3 participants