servletunit.struts.ExceptionDuringTestError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • servletunit.struts.ExceptionDuringTestError:
    via strutstestcase by nobody
    ,
  • actionPerform() NullPointerException
    via strutstestcase by schatzb
    ,
  • MockStrutsTestCase has problem with Clover???
    via strutstestcase by singhannie
    ,
  • exception was thrown during actionExecute()
    via strutstestcase by dgonneau
    ,
  • servletunit.struts.ExceptionDuringTestError:
    via strutstestcase by elifdandan
    ,
    • servletunit.struts.ExceptionDuringTestError: A NullPointerException was thrown.  This may indicate an error in your ActionForm, or it may indicate that the Struts ActionServlet was unable to find struts config file.  TestCase is running from C:\dev\AW directory.  Context directory is c:\dev\AW\tomcat\aw.  struts config file must be found under the context directory, the directory the test case is running from, or in the classpath. at servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:280) at TestLoginAction.testSuccessfulLogin(TestLoginAction.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(Unknown Source) at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(Unknown Source) at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(Unknown Source) at com.intellij.rt.execution.junit2.JUnitStarter.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
    No Bugmate found.