java.lang.IllegalStateException: Could not find backup for factory javax.faces.render.RenderKitFactory.

Java.net JIRA | Ian Hlavats | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [GLASSFISH-19065] NullPointerException after modifying faces-config.xml - Java.net JIRA

    java.net | 1 year ago
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.render.RenderKitFactory.
  2. 0

    I modified faces-config.xml and simply copied it to my deployed application: ~/glassfish3/domains/domain1/applications/MyApp/WEB-INF/faces-config.xml GF throws an exception and the application becomes unusable: [#|2012-09-07T15:51:10.940+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-3;|com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.NullPointerException at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:375) at com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:586) at com.sun.faces.config.ConfigureListener.access$600(ConfigureListener.java:128) at com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureListener.java:1037) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Caused by: javax.faces.FacesException: java.util.concurrent.ExecutionException: java.lang.NullPointerException at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:433) at com.sun.faces.config.processor.AbstractConfigProcessor.processAnnotations(AbstractConfigProcessor.java:326) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:337) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360) ... 12 more Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:429) ... 19 more Caused by: java.lang.NullPointerException at org.glassfish.faces.integration.GlassFishInjectionProvider.getAnnotatedClassesInCurrentModule(GlassFishInjectionProvider.java:113) at com.sun.faces.config.DelegateToGlassFishAnnotationScanner.processAnnotations(DelegateToGlassFishAnnotationScanner.java:170) at com.sun.faces.config.DelegateToGlassFishAnnotationScanner.getAnnotatedClasses(DelegateToGlassFishAnnotationScanner.java:82) at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:843) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:795) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:350) ... 12 more |#] [#|2012-09-07T15:51:10.941+0200|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=18;_ThreadName=Thread-3;|Reload complete.|#] Subsequent requests cause 500 errors: [#|2012-09-07T17:42:50.116+0200|SEVERE|glassfish3.1.2|javax.faces|_ThreadID=19;_ThreadName=Thread-3;|Application was not properly initialized at startup, could not find Factory: javax.faces.render.RenderKitFactory. Attempting to find backup.|#] [#|2012-09-07T17:42:50.187+0200|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=19;_ThreadName=Thread-3;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.IllegalStateException: Could not find backup for factory javax.faces.render.RenderKitFactory. at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) at com.sun.faces.context.FacesContextImpl.<init>(FacesContextImpl.java:128) at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:583) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at com.jsftoolbox.container.render.glassfish.HtmlCleanupFilter.doFilter(HtmlCleanupFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:680) |#]

    Java.net JIRA | 5 years ago | Ian Hlavats
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.render.RenderKitFactory.
  3. 0

    I modified faces-config.xml and simply copied it to my deployed application: ~/glassfish3/domains/domain1/applications/MyApp/WEB-INF/faces-config.xml GF throws an exception and the application becomes unusable: [#|2012-09-07T15:51:10.940+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-3;|com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! java.util.concurrent.ExecutionException: java.lang.NullPointerException at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:375) at com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:586) at com.sun.faces.config.ConfigureListener.access$600(ConfigureListener.java:128) at com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureListener.java:1037) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Caused by: javax.faces.FacesException: java.util.concurrent.ExecutionException: java.lang.NullPointerException at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:433) at com.sun.faces.config.processor.AbstractConfigProcessor.processAnnotations(AbstractConfigProcessor.java:326) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:337) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360) ... 12 more Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at com.sun.faces.config.ConfigManager.getAnnotatedClasses(ConfigManager.java:429) ... 19 more Caused by: java.lang.NullPointerException at org.glassfish.faces.integration.GlassFishInjectionProvider.getAnnotatedClassesInCurrentModule(GlassFishInjectionProvider.java:113) at com.sun.faces.config.DelegateToGlassFishAnnotationScanner.processAnnotations(DelegateToGlassFishAnnotationScanner.java:170) at com.sun.faces.config.DelegateToGlassFishAnnotationScanner.getAnnotatedClasses(DelegateToGlassFishAnnotationScanner.java:82) at com.sun.faces.config.DelegatingAnnotationProvider.getAnnotatedClasses(DelegatingAnnotationProvider.java:85) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:843) at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:795) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:350) ... 12 more |#] [#|2012-09-07T15:51:10.941+0200|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=18;_ThreadName=Thread-3;|Reload complete.|#] Subsequent requests cause 500 errors: [#|2012-09-07T17:42:50.116+0200|SEVERE|glassfish3.1.2|javax.faces|_ThreadID=19;_ThreadName=Thread-3;|Application was not properly initialized at startup, could not find Factory: javax.faces.render.RenderKitFactory. Attempting to find backup.|#] [#|2012-09-07T17:42:50.187+0200|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=19;_ThreadName=Thread-3;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.IllegalStateException: Could not find backup for factory javax.faces.render.RenderKitFactory. at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) at com.sun.faces.context.FacesContextImpl.<init>(FacesContextImpl.java:128) at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:583) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at com.jsftoolbox.container.render.glassfish.HtmlCleanupFilter.doFilter(HtmlCleanupFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:680) |#]

    Java.net JIRA | 5 years ago | Ian Hlavats
    java.lang.IllegalStateException: Could not find backup for factory javax.faces.render.RenderKitFactory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [#JAVASERVERFACES-1542] Bug in FactoryFinder.FactoryManagerCache.getApplicationFactoryManager()

    java.net | 9 months ago
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.render.RenderKitFactory
  6. 0

    erro na aplicação de vez em quando...

    Google Groups | 6 years ago | Alessandro Guimarães
    javax.faces.render.RenderKitFactory

  1. marcbouvierdav 2 times, last 20 hours ago
14 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Could not find backup for factory javax.faces.render.RenderKitFactory.

    at javax.faces.FactoryFinder$FactoryManager.getFactory()
  2. JavaEE 7
    FactoryFinder.getFactory
    1. javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008)
    2. javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)
    2 frames
  3. JSF
    FacesContextFactoryImpl.getFacesContext
    1. com.sun.faces.context.FacesContextImpl.<init>(FacesContextImpl.java:128)
    2. com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
    2 frames
  4. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:583)
    1 frame
  5. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
    2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    3 frames
  6. com.jsftoolbox.container
    HtmlCleanupFilter.doFilter
    1. com.jsftoolbox.container.render.glassfish.HtmlCleanupFilter.doFilter(HtmlCleanupFilter.java:50)
    1 frame
  7. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    6. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    7. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    8. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    9 frames
  8. Kernel Classes
    ContainerMapper.service
    1. com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
    2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    2 frames
  9. Grizzly WS
    AbstractThreadPool$Worker.run
    1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
    2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
    3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
    4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
    5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    13 frames
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:680)
    1 frame