java.lang.UnsupportedOperationException: This method is not supported during startup

ICEsoft JIRA Issue Tracker | Arran Mccullough | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    If an application scoped bean is configured to be "eager" and has a managed property set on the bean, an UnsupportedOperationException is thrown in the server logs and the bean is not eagerly created. Error stacktrace: 8-Jul-2016 09:47:33.400 SEVERE [http-nio-8084-exec-3] org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces An error occured while initializing MyFaces: This method is not supported during startup java.lang.UnsupportedOperationException: This method is not supported during startup at org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getRequestParameterMap(StartupServletExternalContextImpl.java:147) at org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:87) at org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66) at org.icefaces.impl.application.WindowELResolver.getValue(WindowELResolver.java:36) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:66) at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:179) at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:80) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) at org.apache.myfaces.el.convert.ValueExpressionToValueBinding.getValue(ValueExpressionToValueBinding.java:173) at org.apache.myfaces.config.impl.digester.elements.ManagedProperty.getRuntimeValue(ManagedProperty.java:119) at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:325) at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:163) at org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerBeans(AbstractFacesInitializer.java:259) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:152) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4758) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:455) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1496) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1437) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:884) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:335) at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

    ICEsoft JIRA Issue Tracker | 7 months ago | Arran Mccullough
    java.lang.UnsupportedOperationException: This method is not supported during startup

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      This method is not supported during startup

      at org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getRequestParameterMap()
    2. Impl
      StartupServletExternalContextImpl.getRequestParameterMap
      1. org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getRequestParameterMap(StartupServletExternalContextImpl.java:147)
      1 frame
    3. org.icefaces.impl
      WindowELResolver.getValue
      1. org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:87)
      2. org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66)
      3. org.icefaces.impl.application.WindowELResolver.getValue(WindowELResolver.java:36)
      3 frames
    4. EL
      CompositeELResolver.getValue
      1. javax.el.CompositeELResolver.getValue(CompositeELResolver.java:66)
      1 frame
    5. org.apache.myfaces
      FacesCompositeELResolver.getValue
      1. org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:179)
      1 frame
    6. Pax Jsp
      ValueExpressionImpl.getValue
      1. org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:80)
      2. org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187)
      2 frames
    7. org.apache.myfaces
      ValueExpressionToValueBinding.getValue
      1. org.apache.myfaces.el.convert.ValueExpressionToValueBinding.getValue(ValueExpressionToValueBinding.java:173)
      1 frame
    8. Impl
      StartupServletContextListener.contextInitialized
      1. org.apache.myfaces.config.impl.digester.elements.ManagedProperty.getRuntimeValue(ManagedProperty.java:119)
      2. org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:325)
      3. org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:163)
      4. org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerBeans(AbstractFacesInitializer.java:259)
      5. org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:152)
      6. org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119)
      6 frames
    9. Glassfish Core
      HostConfig.check
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4758)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
      5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
      6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
      7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
      8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:455)
      9. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1496)
      9 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    11. Embedded GlassFish Web
      BaseModelMBean.invoke
      1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
      1 frame
    12. Java RT
      JmxMBeanServer.invoke
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
      2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
      2 frames
    13. org.apache.catalina
      ManagerServlet.doGet
      1. org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1437)
      2. org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:884)
      3. org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:335)
      3 frames
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
      2 frames
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    16. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    18. org.netbeans.modules
      MonitorFilter.doFilter
      1. org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
      1 frame
    19. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
      4. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      5. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      6. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      8. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615)
      9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
      10. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      11. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
      12. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      13. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
      13 frames
    20. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
      3. org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
      5. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
      5 frames
    21. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      2 frames
    22. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    23. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame