2 Replies Latest reply on May 13, 2008 12:53 AM by ilavenila

    Accessing a static method throws a null pointer exception

    ilavenila

      Hey,

      I have a very weird situation. I have a web app deployed in JBoss. I am getting a null pointer exception on a static method.

      Say,

      I have a class name StaticHelperClass which has a static method calculateItem. When I try to access this method in a second class such as

      StaticHelperClass.calculateItem , I am receiving a null pointer exception on this line.

      I don't know why accessing a static method should throw a null pointer. Any pointers/clues would me much appreciated. Thanks!