EAP 7.4 Update 15-16 で JSF アプリケーションの起動がハングする
Issue
- EAP 7.4 Update 15 に更新した後、JSF アプリケーションの起動に非常に長い時間がかかるようになりました。 EAP 7.4 Update 14 に戻すと、この起動に時間がかかる問題は修正されます。 スレッドダンプは、アプリケーションの起動が SecureRandom.nextBytes で停止していることを示しています。
"ServerService Thread Pool -- 74" #117 prio=5 os_prio=0 tid=0x0000561c6a331800 nid=0xd1546 runnable [0x00007f3062465000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:424)
at sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:526)
at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:545)
- locked <0x00000000aef67fd0> (a java.lang.Object)
at sun.security.provider.NativePRNG$RandomIO.access$400(NativePRNG.java:331)
at sun.security.provider.NativePRNG$Blocking.engineNextBytes(NativePRNG.java:268)
at java.security.SecureRandom.nextBytes(SecureRandom.java:468)
at com.sun.faces.lifecycle.TokenGenerator.generateSeed(TokenGenerator.java:61)
at com.sun.faces.lifecycle.TokenGenerator.<init>(TokenGenerator.java:33)
at com.sun.faces.lifecycle.ClientWindowFactoryImpl.<init>(ClientWindowFactoryImpl.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:466)
at javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:356)
at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:202)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:279)
at com.sun.faces.config.processor.FactoryConfigProcessor.lambda$verifyFactoriesExist$0(FactoryConfigProcessor.java:303)
at com.sun.faces.config.processor.FactoryConfigProcessor$$Lambda$1546/967980244.accept(Unknown Source)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:297)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:211)
at com.sun.faces.config.ConfigManager.lambda$initialize$0(ConfigManager.java:295)
at com.sun.faces.config.ConfigManager$$Lambda$1545/1492163987.accept(Unknown Source)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:293)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:210)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.4.15 (CP15)
- 7.4.16 (CP16)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.