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

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

    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

          People

            skitching Simon Kitching
            skitching Simon Kitching
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: