junit.framework.AssertionFailedError: Error running action.perform(): class java.lang.NullPointerException - null

strutstestcase | nobody | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Nullpointer exception from getActionServlet()

    strutstestcase | 1 decade ago | nobody
    junit.framework.AssertionFailedError: Error running action.perform(): class java.lang.NullPointerException - null

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Error running action.perform(): class java.lang.NullPointerException - null

      at java.lang.Throwable.<init>()
    2. Java RT
      Throwable.<init>
      1. java.lang.Throwable.<init>(Throwable.java)
      2. java.lang.Throwable.<init>(Throwable.java)
      2 frames
    3. JUnit
      AssertionFailedError.<init>
      1. junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
      1 frame
    4. servletunit.struts
      MockStrutsTestCase.actionPerform
      1. servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:340)
      1 frame
    5. au.com.qtech
      ModelAddTest1.testLogon
      1. au.com.qtech.coreweb.unittests.ModelAddTest1.testLogon(ModelAddTest1.java:79)
      1 frame
    6. Java RT
      AccessibleObject.invokeV
      1. java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
      1 frame
    7. org.eclipse.ant
      InternalAntRunner.run
      1. org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:571)
      2. org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:367)
      2 frames
    8. Java RT
      AccessibleObject.invokeV
      1. java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
      1 frame
    9. Ant Build Tool Core
      AntRunner.run
      1. org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
      1 frame
    10. org.eclipse.ui
      AntLaunchDelegate$1.run
      1. org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:172)
      1 frame
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:801)
      1 frame