-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 calling Application.isStarted because app is null #42798
Labels
Comments
Any chance you can share a sample application we can use to see the problem in action? |
Wonder if it could be #42794 . |
Yeah, looks similar. Maybe we can close this one as a duplicate. I see that the ticket is merged into 3.14 and 3.13 main. But is it released, or will that take some more time? |
geoand
added
triage/duplicate
This issue or pull request already exists
and removed
triage/needs-reproducer
We are waiting for a reproducer.
labels
Aug 28, 2024
Okay, let's close as a duplicate for now. The fix is not yet part of a release, but will be soon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
When trying to use the @QuarkusMain annotation with main method, the application fails to start with a NPE mentioning that the app is null.
Below is our class:
When I run this application, I get the below error:
Exception:
How are we running it:
We are creating a package using mvn clean install, then then using flink to run this class. Will that have an impact on the app being null?
Expected behavior
We'd be able to run the application without any problems. As we are inject FlinkTestJob in the Main class, we'd be able to call FlinkTestJob::run method.
Actual behavior
The application fails to start with exception:
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
Quarkus version or git rev
3.13.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)mvn --version:
Additional information
We are trying to run the created jar with flink application.
Command used:
./flink run -c com.flink.Main -d flink/target/flink-stream-processor-1.0.0-SNAPSHOT-runner.jar
The text was updated successfully, but these errors were encountered: