-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Exception with LifecycleFactory.getLifecycle running app via docker #294
Comments
Interesting this is the code in MyFaces that gets the NPE? // Javadoc says: Lifecycle instance is shared across multiple simultaneous requests, it must be implemented in a
// thread-safe manner.
// So we can acquire it here once:
LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
_lifecycle = lifecycleFactory.getLifecycle(getLifecycleId());
if (log.isLoggable(Level.FINEST))
{
log.finest("init end");
} |
I am actually getting this error in Docker JVM mode: #282 |
Whew...it's not just me/my machine. It's docker JVM mode for me as well. |
@dstutz does it happen on a simple Quarkus App with Faces? This project has the added complexity of copying the Java files to display in the UI that normal faces apps wouldn't have. |
Now that you mention it, I'm getting a similar error on one file:
Aaand...that's somehow the problem. If I delete that file I guess it makes sense...both your and my error are from "FacesInitializerImpl" which is throwing an error and I guess not completely initializing so then when you try to access the UI, it pops. I have another personal app that is working fine deployed but that doesn't have any images or extra files added, that's why I was so annoyed because this project isn't that different. |
Yeah I need to get it fixed in core Quarkus |
Also if you build on Linux or WSL2 it works. It seems to only be a problem building on Windows. Can you confirm? |
Duplicate of #282 |
I submitted a Quarkus Fix: quarkusio/quarkus#34611 |
Confirmed fixed in Quarkus 3.3.0 |
I was experiencing this same problem running in docker with own application so I came here and checked out the repo (e4f48b2) according to the docs and ran in JVM mode and it worked fine, then did the docker JVM instructions and it deploys ok but as soon as I attempt to access the app (http://localhost:8081/), I get the following error:
I'm running on Windows 10 with Docker Desktop 4.21.0.
The text was updated successfully, but these errors were encountered: