junit.framework.AssertionFailedError: was expecting '/testhome.pagedef' but received '/test/do/layoutSwitch'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via strutstestcase by holmanc
, 1 year ago
was expecting '/testhome.pagedef' but received '/test/do/layoutSwitch'
via strutstestcase by *anonymous
, 1 year ago
was expecting '/Final\_War/jsp/AAAAAA /BBBBB .jsp' but received '/Final\_Warnull'
via strutstestcase by *anonymous
, 1 year ago
was expecting '/Final\_War/jsp/AAAAAA /BBBBB .jsp' but received '/Final\_Warnull'
via strutstestcase by nobody
, 1 year ago
was expecting '/agente-cactified/esn/verMovimientosCuentaAction' but received '/agente-cactified/jsp/esni c/agente/MovimientosCuenta.jsp'
via Google Groups by Gary Weberg, 2 years ago
was expecting '/pages/application/account/jsp/applypayment.jsp' but received '/applyPaymentAction.do?method=validate'
via strutstestcase by meagle
, 1 year ago
was expecting '/ViewReport.jsp' but received 'http://null:8080null'
junit.framework.AssertionFailedError: was expecting '/testhome.pagedef' but received '/test/do/layoutSwitch'
at servletunit.struts.Common.verifyForwardPath(Common.java:152)
at servletunit.struts.CactusStrutsTestCase.verifyForward(CactusStrutsTestCase.java:418)
at test.com.holmansite.controller.TestStrutsCactusGuestBookAction.testSuccessfullEntry(TestStrutsCactusGuestBookAction.java:41)
at org.apache.cactus.AbstractTestCase.runServerTest(AbstractTestCase.java:491)
at org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.java:456)
at org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTestCaller.java:137)
at org.apache.cactus.server.AbstractTestController.handleRequest(AbstractTestController.java:122)
at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:134)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at java.lang.Thread.run(Thread.java:479)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.