Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-13140

Fix missing conversation entry error on tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.8, 5.9.2-SNAPSHOT
    • Fix Version/s: 11.2
    • Component/s: Seam / JSF UI

      Description

      Some functional tests show random "missing conversation entry" errors in logs.

      I suspect the code in SeamExceptionHandlingListener needs to be updated to handle new use cases due to changes for NXP-12487. Some of the issues may actually be due to NXP-12865 (concurrency error on core session)

      Visible here:

      https://qa.nuxeo.org/jenkins/job/FT-nuxeo-master-webdriver-dm-tomcat-win/jdk=openjdk-7-jdk,label=hudson-xp/990/

      2013-11-07 15:06:41,671 WARN  [http-bio-0.0.0.0-8080-exec-10] [org.nuxeo.ecm.platform.ui.web.restAPI.SystemLogRestlet] ----- WebDriver: Starting test 'org.nuxeo.functionaltests.ITDefaultWorkflowTest#testDefaultParallelWorkflow'
      2013-11-07 15:07:11,073 ERROR [http-bio-0.0.0.0-8080-exec-9] [org.jboss.seam.jsf.SeamPhaseListener] swallowing exception
      java.lang.IllegalStateException: missing conversation entry
      	at org.jboss.seam.core.Conversation.flush(Conversation.java:135)
      	at org.jboss.seam.core.Manager.flushConversationMetadata(Manager.java:983)
      	at org.jboss.seam.faces.FacesManager.prepareBackswitch(FacesManager.java:304)
      	at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:493)
      	at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:148)
      	at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:118)
      
      ...
      
      2013-11-07 15:07:11,133 ERROR [http-bio-0.0.0.0-8080-exec-9] [facelets.viewhandler] Error Rendering View[/view_admin.xhtml]
      java.lang.NullPointerException
      	at org.jboss.seam.core.Manager.isReallyLongRunningConversation(Manager.java:258)
      	at org.jboss.seam.core.Conversation.isLongRunning(Conversation.java:323)
      	at org.nuxeo.ecm.platform.ui.web.application.NuxeoConversationStateHolder.saveState(NuxeoConversationStateHolder.java:132)
      	at org.ajax4jsf.application.AjaxStateManager.saveStateInSession(AjaxStateManager.java:523)
      	at org.ajax4jsf.application.AjaxStateManager.buildViewState(AjaxStateManager.java:503)
      	at org.ajax4jsf.application.AjaxStateManager$SeamStateManagerWrapper.saveView(AjaxStateManager.java:105)
      	at org.jboss.seam.jsf.SeamStateManager.saveView(SeamStateManager.java:89)
      	at org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:454)
      

      and here:

      https://qa.nuxeo.org/jenkins/job/FT-nuxeo-master-selenium-dm-tomcat_permanentCheck/3114/

      2013-11-07 23:43:27,837 ERROR [http-apr-0.0.0.0-8080-exec-30] [org.jboss.seam.jsf.SeamPhaseListener] swallowing exception
      java.lang.IllegalStateException: missing conversation entry
      	at org.jboss.seam.core.Conversation.flush(Conversation.java:135)
      	at org.jboss.seam.core.Manager.flushConversationMetadata(Manager.java:983)
      	at org.jboss.seam.faces.FacesManager.prepareBackswitch(FacesManager.java:304)
      	at org.jboss.seam.jsf.SeamPhaseListener.afterRenderResponse(SeamPhaseListener.java:510)
      	at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:249)
      	at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
      	at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
      	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      

      See also attached files

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5 hours
                  5h
                  Remaining:
                  Remaining Estimate - 5 hours
                  5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.