Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-950

Session Scoped bean got stucked in CreationalContextImpl.incompleteInstances map

    Details

    • Steps to Reproduce:
      Hide

      Deploy the attached war into Tomcat6.0.x, start TC, go to the URL: http://localhost:8080/weld-numberguess/home.jsf, try to guess 10 times, in the tomcat console, it should print out "destruct the Game now.", after that do a heap dump, use eclipse MAT to open the dump and search Game, should be able to see the attached screenshot.

      Show
      Deploy the attached war into Tomcat6.0.x, start TC, go to the URL: http://localhost:8080/weld-numberguess/home.jsf , try to guess 10 times, in the tomcat console, it should print out "destruct the Game now.", after that do a heap dump, use eclipse MAT to open the dump and search Game, should be able to see the attached screenshot.
    • Estimated Difficulty:
      Medium

      Description

      I have a session scoped bean annotated with @Named @SessionScoped, and in the bean's method, I called context.getExternalContext().invalidateSession(); to end the conversation and after @PreDestroy called, the bean is still in the memory, it was hard reference from CreationalContextImpl.incompleteInstances map.

      The issue can be reproduced with modified weld-numberguess example (I attached with this ticket)

        Gliffy Diagrams

          Activity

          Hide
          luksa Marko Lukša added a comment -

          Apparently, this was fixed in 1.1.8.

          I can reproduce the bug with 1.1.7 and earlier.

          Show
          luksa Marko Lukša added a comment - Apparently, this was fixed in 1.1.8. I can reproduce the bug with 1.1.7 and earlier.

            People

            • Assignee:
              luksa Marko Lukša
              Reporter:
              wangliyu Wang Liyu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development