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

Docker JVM Runtime Error #282

Closed
dengbingaliyun opened this issue Jun 7, 2023 · 8 comments · Fixed by #302
Closed

Docker JVM Runtime Error #282

dengbingaliyun opened this issue Jun 7, 2023 · 8 comments · Fixed by #302
Labels
bug Something isn't working

Comments

@dengbingaliyun
Copy link

dengbingaliyun commented Jun 7, 2023

mvn clean package -Ddocker

docker run -i --rm -p 8081:8081 melloware/quarkus-faces:latest

logs list below:

2023-06-07 14:24:31 INFO exec  java -Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -cp "." -jar /deployments/quarkus-run.jar 
2023-06-07 14:24:31 Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
2023-06-07 14:24:34 __  ____  __  _____   ___  __ ____  ______ 
2023-06-07 14:24:34  --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ 
2023-06-07 14:24:34  -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \   
2023-06-07 14:24:34 --\___\_\____/_/ |_/_/|_/_/|_|\____/___/   
2023-06-07 14:24:34 2023-06-07 06:24:33,716 INFO  [org.apa.myf.web.MyFacesContainerInitializer] (main) Using org.apache.myfaces.webapp.MyFacesContainerInitializer
2023-06-07 14:24:34 2023-06-07 06:24:33,719 INFO  [org.omn.ApplicationInitializer] (main) Using OmniFaces version 4.1
2023-06-07 14:24:34 2023-06-07 06:24:34,302 SEVERE [org.apa.myf.web.FacesInitializerImpl] (main) An error occured while initializing MyFaces: Unable to get listed resource java\org\primefaces\showcase\convert\CountryConverter.java from directory  for path  from underlying manager io.undertow.server.handlers.resource.ClassPathResourceManager@5c059a68: java.lang.RuntimeException: Unable to get listed resource java\org\primefaces\showcase\convert\CountryConverter.java from directory  for path  from underlying manager io.undertow.server.handlers.resource.ClassPathResourceManager@5c059a68
2023-06-07 14:24:34     at io.quarkus.undertow.runtime.KnownPathResourceManager$DirectoryResource.list(KnownPathResourceManager.java:151)
2023-06-07 14:24:34     at io.undertow.server.handlers.resource.CachedResource.list(CachedResource.java:110)
2023-06-07 14:24:34     at io.undertow.servlet.spec.ServletContextImpl.getResourcePaths(ServletContextImpl.java:271)
2023-06-07 14:24:34     at org.apache.myfaces.context.servlet.ServletExternalContextImplBase.getResourcePaths(ServletExternalContextImplBase.java:143)
2023-06-07 14:24:34     at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getFacesFlowFacesConfig(DefaultFacesConfigurationProvider.java:566)
2023-06-07 14:24:34     at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:112)
2023-06-07 14:24:34     at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:468)
2023-06-07 14:24:34     at org.apache.myfaces.webapp.FacesInitializerImpl.buildConfiguration(FacesInitializerImpl.java:382)
2023-06-07 14:24:34     at org.apache.myfaces.webapp.FacesInitializerImpl.initContainerIntegration(FacesInitializerImpl.java:709)
2023-06-07 14:24:34     at org.apache.myfaces.webapp.FacesInitializerImpl.initFaces(FacesInitializerImpl.java:179)
2023-06-07 14:24:34     at org.apache.myfaces.core.extensions.quarkus.runtime.QuarkusFacesInitializer.initFaces(QuarkusFacesInitializer.java:63)
2023-06-07 14:24:34     at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:54)
2023-06-07 14:24:34     at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:184)
2023-06-07 14:24:34     at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217)
2023-06-07 14:24:34     at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186)
2023-06-07 14:24:34     at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
2023-06-07 14:24:34     at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
2023-06-07 14:24:34     at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1.call(UndertowDeploymentRecorder.java:602)
2023-06-07 14:24:34     at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:251)
2023-06-07 14:24:34     at io.quarkus.undertow.runtime.UndertowDeploymentRecorder.bootServletContainer(UndertowDeploymentRecorder.java:543)
2023-06-07 14:24:34     at io.quarkus.deployment.steps.UndertowBuildStep$build767851419.deploy_8(Unknown Source)
2023-06-07 14:24:34     at io.quarkus.deployment.steps.UndertowBuildStep$build767851419.deploy(Unknown Source)
2023-06-07 14:24:34     at io.quarkus.runner.ApplicationImpl.<clinit>(Unknown Source)
2023-06-07 14:24:34     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2023-06-07 14:24:34     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
2023-06-07 14:24:34     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2023-06-07 14:24:34     at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
2023-06-07 14:24:34     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
2023-06-07 14:24:34     at io.quarkus.runtime.Quarkus.run(Quarkus.java:70)
2023-06-07 14:24:34     at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
2023-06-07 14:24:34     at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
2023-06-07 14:24:34     at io.quarkus.runner.GeneratedMain.main(Unknown Source)
2023-06-07 14:24:34     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-06-07 14:24:34     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2023-06-07 14:24:34     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-06-07 14:24:34     at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2023-06-07 14:24:34     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:61)
2023-06-07 14:24:34     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:32)
2023-06-07 14:24:34 
2023-06-07 14:24:34 Initialized ShowcaseCacheProvider with Caffeine
2023-06-07 14:24:35 2023-06-07 06:24:35,130 INFO  [io.quarkus] (main) quarkus-faces 13.0.0 on JVM (powered by Quarkus 3.1.0.Final) started in 3.052s. Listening on: http://0.0.0.0:8081
2023-06-07 14:24:35 2023-06-07 06:24:35,131 INFO  [io.quarkus] (main) Profile prod activated. 
2023-06-07 14:24:35 2023-06-07 06:24:35,131 INFO  [io.quarkus] (main) Installed features: [awt, cache, cdi, hibernate-validator, itext, myfaces, omnifaces, poi, primefaces, primefaces-extensions, resteasy, resteasy-jackson, servlet, smallrye-context-propagation, smallrye-health, vertx, websockets, websockets-client]
@melloware
Copy link
Owner

melloware commented Jun 7, 2023

Confirmed it looks like its related to this fix in Quarkus: quarkusio/quarkus#32656

For display purposes its trying to show java\org\primefaces\showcase\convert\CountryConverter.java in the Showcase tabs but for some reason it can't find it even though it is properly included in the JAR.

You can follow the ticket here: quarkusio/quarkus#28028

Windows Works:

java -jar target/quarkus-app/quarkus-run.jar

Linux with same JAR fails:

java -jar target/quarkus-app/quarkus-run.jar

Error:

An error occured while initializing MyFaces: Unable to get listed resource java\org\primefaces\showcase\convert\CountryConverter.java from directory  for path  from underlying manager io.undertow.server.handlers.resource.ClassPathResourceManager@5c059a68: java.lang.RuntimeException: Unable to get listed resource java\org\primefaces\showcase\convert\CountryConverter.java from directory  for path  from underlying manager io.undertow.server.handlers.resource.ClassPathResourceManager@5c059a68
2023-06-07 14:24:34     at io.quarkus.undertow.runtime.KnownPathResourceManager$DirectoryResource.list(KnownPathResourceManager.java:151)
2023-06-07 14:24:34     at io.undertow.server.handlers.resource.CachedResource.list(CachedResource.java:110)

@melloware melloware changed the title I packaged by Docker JVM in Windows 11 ,Error list below Docker JVM in Windows 11 Error Jun 7, 2023
@melloware melloware added the bug Something isn't working label Jun 7, 2023
@melloware melloware changed the title Docker JVM in Windows 11 Error Docker JVM Runtime Error Jun 7, 2023
@melloware
Copy link
Owner

I submitted a fix: quarkusio/quarkus#34611

@dstutz
Copy link

dstutz commented Jul 7, 2023

Looks like this will be the quarkus-undertow module and I assume 3.2.1 release at the earliest? Thanks for looking into this, sorry I didn't get chance to test on Linux (work 🤷‍♂️ ).

@melloware
Copy link
Owner

I guess it all depends on when/if the Quarkus team merges it!

@melloware
Copy link
Owner

Related to this I finally got to the bottom of this problem: quarkusio/quarkus#28028

But hopefully Quarkus Team will have some idea how to fix it.

@melloware
Copy link
Owner

OK looks like its slated for 3.3.0 from how they marked the ticket.

@melloware
Copy link
Owner

Confirmed 3.3.0.Final has fixed this issue!

@tony-in-nz
Copy link

Thanks melloware and team

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

Successfully merging a pull request may close this issue.

4 participants