You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by A Stephen <st...@attbi.com> on 2002/12/10 06:22:50 UTC

Nasty Error when use LookupDispatchAction

Greetings,

First my applogies for the attention grabing subject.
Used LookupDispatchAction and love, but I ran into a nasty problem
In the example,
The three actions were
1) populating the form with key
    e.g. /edit.do?submit=init&key=10
2) Editing the record
3) Deleting record

Everything works beautifully until you try and mess the query string
for e.g  /edit.do?submit=initchanged&key=10
there is no mapping for initx, hence there is no method name and null is
passed into the
return dispatchMethod(mapping, form, request, response, methodName)
which finally calls getMethod(String name, Class[] parameterTypes)
The end result is that application shuts down with VM error
-------------------HotSpot Error message------------------------------------
#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F57494E13120E43505002D4
#
Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
----------------------------------------------------------------------------
----


Resolution:
I throw an exception in (LookupDispatchAction) before the dispatchMethod is
called.
How do I submit this change?


Thank you,
-S









--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


[PATCH] Re: Nasty Error when use LookupDispatchAction

Posted by A Stephen <st...@attbi.com>.

----- Original Message -----
From: "A Stephen" <st...@attbi.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<st...@jakarta.apache.org>
Sent: Monday, December 09, 2002 9:22 PM
Subject: Nasty Error when use LookupDispatchAction


> Greetings,
>
> First my applogies for the attention grabing subject.
> Used LookupDispatchAction and love, but I ran into a nasty problem
> In the example,
> The three actions were
> 1) populating the form with key
>     e.g. /edit.do?submit=init&key=10
> 2) Editing the record
> 3) Deleting record
>
> Everything works beautifully until you try and mess the query string
> for e.g  /edit.do?submit=initchanged&key=10
> there is no mapping for initx, hence there is no method name and null is
> passed into the
> return dispatchMethod(mapping, form, request, response, methodName)
> which finally calls getMethod(String name, Class[] parameterTypes)
> The end result is that application shuts down with VM error
> -------------------HotSpot Error
message------------------------------------
> #
> # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
> # Please report this error at
> # http://java.sun.com/cgi-bin/bugreport.cgi
> #
> # Error ID: 4F533F57494E13120E43505002D4
> #
> Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
> --------------------------------------------------------------------------
--
> ----
>
>
> Resolution:
> I throw an exception in (LookupDispatchAction) before the dispatchMethod
is
> called.
> How do I submit this change?
>
>
> Thank you,
> -S
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

[PATCH] Re: Nasty Error when use LookupDispatchAction

Posted by A Stephen <st...@attbi.com>.

----- Original Message -----
From: "A Stephen" <st...@attbi.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<st...@jakarta.apache.org>
Sent: Monday, December 09, 2002 9:22 PM
Subject: Nasty Error when use LookupDispatchAction


> Greetings,
>
> First my applogies for the attention grabing subject.
> Used LookupDispatchAction and love, but I ran into a nasty problem
> In the example,
> The three actions were
> 1) populating the form with key
>     e.g. /edit.do?submit=init&key=10
> 2) Editing the record
> 3) Deleting record
>
> Everything works beautifully until you try and mess the query string
> for e.g  /edit.do?submit=initchanged&key=10
> there is no mapping for initx, hence there is no method name and null is
> passed into the
> return dispatchMethod(mapping, form, request, response, methodName)
> which finally calls getMethod(String name, Class[] parameterTypes)
> The end result is that application shuts down with VM error
> -------------------HotSpot Error
message------------------------------------
> #
> # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
> # Please report this error at
> # http://java.sun.com/cgi-bin/bugreport.cgi
> #
> # Error ID: 4F533F57494E13120E43505002D4
> #
> Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
> --------------------------------------------------------------------------
--
> ----
>
>
> Resolution:
> I throw an exception in (LookupDispatchAction) before the dispatchMethod
is
> called.
> How do I submit this change?
>
>
> Thank you,
> -S
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

RE: Nasty Error when use LookupDispatchAction

Posted by Deepika Malik <de...@patni.com>.
hi,
I am using struts validate method to validate my fields.How can i set the
focus in html to a particular field on error in a particular field.
thanks in advance,
Deepika


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>