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:\Documents and Settings\workspace\Web directory.  Context directory is C:\Documents and Settings\workspace\WebRoot\WEB-INF.  struts config file must be found under the context directory, the directory the test case is running from, or in the classpath.

strutstestcase | nobody | 1 decade ago
  1. 0

    NullPointerException calling super.tearDown()

    strutstestcase | 1 decade ago | nobody
    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:\Documents and Settings\workspace\Web directory.  Context directory is C:\Documents and Settings\workspace\WebRoot\WEB-INF.  struts config file must be found under the context directory, the directory the test case is running from, or in the classpath.
  2. 0

    StrutsTestCase for JUnit / Discussion / Open Discussion:null pointer exception (Action servlet is not initialized)

    sourceforge.net | 11 months ago
    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 -------------- directory. Context directory is ------. struts config file must be found under the context directory, the directory the test case is running from, or in the classpath.
  3. 0

    StrutsTestCase for JUnit / Discussion / Open Discussion:Error initializing action servlet

    sourceforge.net | 11 months ago
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    null pointer exception (Action servlet is not initialized)

    strutstestcase | 3 years ago | mhmdnabih
    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 -------------- directory. Context directory is ------. struts config file must be found under the context directory, the directory the test case is running from, or in the classpath.
  6. 0

    actionPerform() NullPointerException

    strutstestcase | 7 years ago | schatzb
    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/user/workspace/APP directory.  Context directory is /home/user/workspace/APP.  struts config file must be found under the context directory, the directory the test case is running from, or in the classpath.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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:\Documents and Settings\workspace\Web directory.  Context directory is C:\Documents and Settings\workspace\WebRoot\WEB-INF.  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()
    2. servletunit.struts
      MockStrutsTestCase.actionPerform
      1. servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:407)
      1 frame
    3. com.msc.afsc
      TestLoginAction.testLoginActionBlankFields
      1. com.msc.afsc.web.struts.action.TestLoginAction.testLoginActionBlankFields(TestLoginAction.java:23)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    5. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      9. junit.framework.TestSuite.runTest(TestSuite.java:208)
      10. junit.framework.TestSuite.run(TestSuite.java:203)
      10 frames
    6. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      3 frames