marfa posadniza - 2008-04-15

Hi All,

I am getting a NullPointer exception running either my own testcases or the example
TestLoginAction:
junit.framework.AssertionFailedError: Error running action.perform(): class java.lang.NullPointerException - null
    at junit.framework.Assert.fail(Assert.java:47)
    at servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:339)
    at examples.TestLoginAction2.testSuccessfulLogin(TestLoginAction2.java:37)
   
   
Strange thing is everything was workin fine for me for a while, then broke after i wrote some additional
test cases.  The only thing i changed was to use struts1.1jar instead of sturts1.0 jar(m using
2.0 release) - changed it back but still got the error.
Our team uses struts1.1 and it seems that there is no StrutsTestCase for struts1.1 - i tried using
the 2.1.4xxx release but that supports only struts1.2 and higher.  The 2.0 release is for struts1.0 -
i am wondering if that could be causing the prob, even though does not look so + things were working
with my environment's struts1.1 jar..

The source code on line 339 has
  logger.debug("Error in actionPerform()",ex);
  fail("Error running action.perform(): " + ex.getClass() + " - " + ex.getMessage());

- the logger is not null however as i am getting logging messages...
  and I am not sure if the source code exactly matches the .class files...

Any help would be greatly appreciated...
Thank you...