2 Replies Latest reply on Mar 19, 2004 8:32 AM by jorgewf

    Session becoming null after using it in the same page

    jorgewf


      Can anyone explain me how a session object becomes null after I use it on the same page and don't reassign its value to null.

      I'm using the JBoss 3.2.3 in HP-UX 11 on the server side and Internet Explorer 5.5+ and Windows 2k Professional on the client side.

      Sample code:
      <%
      Object firstAttribute = session.getAttribute("firstAttribute");
      %>
      // A bit of html.
      <%
      Object secondAttribute = session.getAttribute("secondAttribute");
      %>

      On the second call to session.getAttribute, I got a NullPointerException. How? Why?

      Jorge Walendowsky Filho