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 /home/stephane/dev/java/j2ee/gcjv directory.  Context directory is /home/stephane/dev/java/j2ee/gcjv/build.  struts config file must be found under the context directory, the directory the test case is running from, or in the classpath.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web30

  • via strutstestcase by nobody
    , 1 year ago
    A NullPointerException was thrownThis may indicate an error in your ActionForm, or it may indicate that the Struts ActionServlet was unable to find struts config fileTestCase is running from /home/stephane/dev/java/j2ee/gcjv directory
  • A NullPointerException was thrownThis may indicate an error in your ActionForm, or it may indicate that the Struts ActionServlet was unable to find struts config fileTestCase is running from /home/stephane/dev/java/j2ee/gcjv directory
  • via Coderanch by Jason Vo, 7 months ago
    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:\Workspaces\Test\ directory. Context directory is
  • Stack trace

    • 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 /home/stephane/dev/java/j2ee/gcjv directory.  Context directory is /home/stephane/dev/java/j2ee/gcjv/build.  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:407) at admin.LoginTestCase.testLogin(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.