Hi Paul,

The control is not redirected to execute() method.


Thanks
Krishnaraj


On Thu, Jun 12, 2014 at 8:48 PM, Paul Benedict <pbened...@apache.org> wrote:

> Put a breakpoint in your execute() and see if it's being called. The error
> message might be telling the truth: the action has already been executed.
>
>
> Cheers,
> Paul
>
>
> On Thu, Jun 12, 2014 at 10:15 AM, Dave Newton <davelnew...@gmail.com>
> wrote:
>
> > Without knowing what's in your interceptor stack it's impossible to help.
> >
> > Dave
> >
> >
> > On Thu, Jun 12, 2014 at 11:11 AM, Krishnaraj A <
> > akrajmscjavaquest...@gmail.com> wrote:
> >
> > > Hi Team,
> > >
> > > Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit
> > plugin
> > > <http://struts.apache.org/2.3.1.2/docs/junit-plugin.html>. The normal
> > > actions which is working fine. But I have issue when I am testing the
> > > action which has interceptor.
> > >
> > > <action name="MainAdminPage" class="com.action.MainAdminAction">
> > >             <interceptor-ref name="newStack" />
> > >             <result>/MainAdmin.jsp</result>
> > >             <result name="Login_page">/Login.jsp</result>
> > > </action>
> > >
> > > When I start testing the control goes to interceptor and check all the
> > > validation.
> > > when it invoke "return invocation.invoke();". it throws error.
> > >  java.lang.IllegalStateException: Action has already executed
> > >
> > > I am not able to get the solution for the above problem. Can any one
> help
> > > me in this problem to find the solution. Thanks in advance.
> > >
> > > Thanks,
> > > Krishna raj
> > >
> >
> >
> >
> > --
> > e: davelnew...@gmail.com
> > m: 908-380-8699
> > s: davelnewton_skype
> > t: @dave_newton <https://twitter.com/dave_newton>
> > b: Bucky Bits <http://buckybits.blogspot.com/>
> > g: davelnewton <https://github.com/davelnewton>
> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> >
>

Reply via email to