Uploaded image for project: 'MyFaces Orchestra'
  1. MyFaces Orchestra
  2. ORCHESTRA-32

Hot-restart of Tomcat causes NullPointerException while deserializing saved http-session

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 1.2
    • None
    • Conversation
    • None

    Description

      Tomcat displays this message on restart:

      SCHWERWIEGEND: Exception loading sessions from persistent storage
      java.lang.NullPointerException
      at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)
      at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1445)

      The problem is that the orchestra ConversationManager class has a readResolve method that returns null, intending that the object just gets created "on demand" later. However Tomcat tries to put the deserialized object into its session - and null objects are not permitted in an HttpSession.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            skitching Simon Kitching
            skitching Simon Kitching

            Dates

              Created:
              Updated:

              Slack

                Issue deployment