0 Replies Latest reply on Jan 16, 2014 10:09 AM by flp05

    Random NullPointerException in Session attributes

    flp05 Newbie

      Hello all,


      I was hoping you help me with something, it's not really a question, it's more like a discussion.I have two problems which increase significantly after the migration for Jboss 7.2.0 (from 4.0.2). I'm not sure they are related, but I was hoping you could give me some pointers to the problems.


      Problem 1:

      In Production log (and only in Production), I have lots of NullPointerExceptions when accessing Session objects (control objects, temporary objects, etc). For example, this returns NULL, failing on the second line :

      userData = session.getAttribute("USER_DATA");

      The problem is, that this code is used everywhere with success but sometimes, from nothing, it fails.



      Problem 2:

      Again, only in Production, I have a page with 3 iframes on it. Again, it works 90% of the times, but sometimes it fails with this error:

      java.lang.InstantiationException: BusinessActionForm

      When this error happens, two of the iframes just show the error and the other one keeps runing. I have no idea what happens, as I'm unnable to replicate the error.



      The application uses Struts Framework and both of these errors already happen before the shift for Jboss AS7. However, they start happen much more times. A lot more. Both errors only happen in Production environment and they respond well in every test environment no matter what I do.


      Someone wants to try to help me in this? It's ambiguous I know, but any lead can help me.


      Once again, a big thank you and my congratulations on this awesome communitya and project.

      Best Regards,

      Luís Oliveira