ICEfaces
  1. ICEfaces
  2. ICE-9155

auction - server side error when undeploying auction application from JBoss5/ JBoss6 / GlassFish 3.1.2

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces 3.3.0.RC1
      Server: JBoss 5.1.0 / JBoss 6.1.0.Final / GlassFish 3.1.2
      Browsers: all
    • Assignee Priority:
      P2

      Description

      All tests pass, however server side errors occur when the .war file is undeployed (deleted) from the app server.


      The errors for JBoss 5.1.0/ 6.1.0.Final (when using 3.3.0.RC1 bundle) are here:

      2013-04-05 14:26:49,859 SEVERE [javax.enterprise.resource.webcontainer.jsf.managedbean] (HDScanner) unable to process invokePreDestroy.: com.sun.faces.spi.InjectionProviderException: unable to process invokePreDestroy.
      at org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider.invokePreDestroy(JBossDelegatingInjectionProvider.java:107) [:1.0.3]
      at com.sun.faces.mgbean.BeanBuilder.destroy(BeanBuilder.java:116) [:2.1.19]
      ....
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_21]
      ....
      Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[HDScanner,5,jboss]
      at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:284) [:]
      ....


      The errors for GlassFish 3.1.2 (when using 3.3.0.RC1 bundle) are here:

      com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting invoke lifecycle method: private void org.icefaces.demo.auction.view.beans.AuctionBean.destroy()
          at org.glassfish.faces.integration.GlassFishInjectionProvider.invokePreDestroy(GlassFishInjectionProvider.java:210)
          at com.sun.faces.mgbean.BeanBuilder.destroy(BeanBuilder.java:116)
          at com.sun.faces.mgbean.BeanManager.destroy(BeanManager.java:282)
          at com.sun.faces.application.view.ViewScopeManager.destroyBeans(ViewScopeManager.java:139)
          at com.sun.faces.application.view.ViewScopeManager.sessionDestroyed(ViewScopeManager.java:296)
          at com.sun.faces.application.WebappLifecycleListener.sessionDestroyed(WebappLifecycleListener.java:171)
          at com.sun.faces.config.ConfigureListener.sessionDestroyed(ConfigureListener.java:373)
          at org.apache.catalina.session.StandardSession.expire(StandardSession.java:807)
          at org.apache.catalina.session.StandardSession.expire(StandardSession.java:769)
          at org.apache.catalina.session.StandardSession.expire(StandardSession.java:757)
          at org.apache.catalina.session.StandardManager.stop(StandardManager.java:895)
          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5571)
         ....
      Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting invoke lifecycle method: private void org.icefaces.demo.auction.view.beans.AuctionBean.destroy()
          at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeLifecycleMethod(InjectionManagerImpl.java:738)
          at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokePreDestroy(InjectionManagerImpl.java:535)
          at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeInstancePreDestroy(InjectionManagerImpl.java:240)
          at org.glassfish.faces.integration.GlassFishInjectionProvider.invokePreDestroy(GlassFishInjectionProvider.java:208)
          ... 35 more
      Caused by: java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException
          at java.security.AccessController.doPrivileged(Native Method)
          at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeLifecycleMethod(InjectionManagerImpl.java:723)
          ... 38 more
      Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl$3.run(InjectionManagerImpl.java:729)
          ... 40 more
      Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[AutoDeployer,5,main]
          at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:284)
          at org.icefaces.application.PushRenderer.removeCurrentView(PushRenderer.java:103)
          at org.icefaces.demo.auction.view.beans.AuctionBean.destroy(AuctionBean.java:106)
          ... 45 more



      The error for GlassFish 3.1.2 (when using current trunk # 34310) is different:

      [#|2013-04-10T13:03:52.026-0600|SEVERE|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thread-2;|WebModule[/auction]PWC1277: Exception sending context destroyed event to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.NullPointerException
          at javax.faces.component.UIViewRoot$ViewMap.clear(UIViewRoot.java:1779)
          at com.sun.faces.config.InitFacesContext.release(InitFacesContext.java:239)
          at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:352)
          at org.apache.catalina.core.StandardContext.contextListenerStop(StandardContext.java:4840)
          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5584)
          at com.sun.enterprise.web.WebModule.stop(WebModule.java:527)
          at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1049)
          at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2229)
          at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2184)
          at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:159)
          at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:169)
          at org.glassfish.internal.data.ModuleInfo.stop(ModuleInfo.java:302)
          at org.glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:329)
          at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:998)
          at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:1024)
          at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:330)
          at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:353)
          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
          at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
          at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145)
          at org.glassfish.deployment.autodeploy.AutoDeployer.undeploy(AutoDeployer.java:523)
          at org.glassfish.deployment.autodeploy.AutoDeployer.undeployAll(AutoDeployer.java:499)
          at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:390)
          at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:380)
          at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:220)
          at java.util.TimerThread.mainLoop(Timer.java:512)
          at java.util.TimerThread.run(Timer.java:462)

        Activity

        There are no subversion log entries for this issue yet.

          People

          • Assignee:
            Jack Van Ooststroom
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: