You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "mark lewman (JIRA)" <ji...@apache.org> on 2006/12/04 05:00:57 UTC
[jira] Commented: (STR-261) NullPointerException in
ActionMapping.findForward()
[ http://issues.apache.org/struts/browse/STR-261?page=comments#action_38973 ]
mark lewman commented on STR-261:
---------------------------------
http://www.comedysportzla.com/mb1/board1/1186.shtml - http://www.comedysportzla.com/mb1/board1/1187.shtml - http://www.comedysportzla.com/mb1/board1/1188.shtml - http://www.comedysportzla.com/mb1/board1/1189.shtml - http://www.comedysportzla.com/mb1/board1/1190.shtml - http://www.comedysportzla.com/mb1/board1/1191.shtml - http://www.comedysportzla.com/mb1/board1/1192.shtml - http://www.comedysportzla.com/mb1/board1/1193.shtml - http://www.comedysportzla.com/mb1/board1/1194.shtml - http://www.comedysportzla.com/mb1/board1/1195.shtml - http://www.comedysportzla.com/mb1/board1/1196.shtml - http://www.comedysportzla.com/mb1/board1/1197.shtml - http://www.comedysportzla.com/mb1/board1/1198.shtml - http://www.comedysportzla.com/mb1/board1/1199.shtml - http://www.comedysportzla.com/mb1/board1/1200.shtml - http://www.comedysportzla.com/mb1/board1/1201.shtml - http://www.comedysportzla.com/mb1/board1/1202.shtml - http://www.comedysportzla.com/mb1/board1/1203.shtml - http://www.comedysportzla.com/mb1/board1/1204.shtml - http://www.comedysportzla.com/mb1/board1/1205.shtml - http://www.comedysportzla.com/mb1/board1/1206.shtml - http://www.comedysportzla.com/mb1/board1/1207.shtml - http://www.comedysportzla.com/mb1/board1/1208.shtml - http://www.comedysportzla.com/mb1/board1/1209.shtml - http://www.comedysportzla.com/mb1/board1/1210.shtml - http://www.comedysportzla.com/mb1/board1/1211.shtml - http://www.comedysportzla.com/mb1/board1/1212.shtml - http://www.comedysportzla.com/mb1/board1/1213.shtml - http://www.comedysportzla.com/mb1/board1/1214.shtml - http://www.comedysportzla.com/mb1/board1/1215.shtml - http://www.comedysportzla.com/mb1/board1/1216.shtml - http://www.comedysportzla.com/mb1/board1/1217.shtml - http://www.comedysportzla.com/mb1/board1/1218.shtml - http://www.comedysportzla.com/mb1/board1/1219.shtml - http://www.comedysportzla.com/mb1/board1/1220.shtml - http://www.comedysportzla.com/mb1/board1/1221.shtml - http://www.comedysportzla.com/mb1/board1/1222.shtml - http://www.comedysportzla.com/mb1/board1/1223.shtml - http://www.comedysportzla.com/mb1/board1/1224.shtml - http://www.comedysportzla.com/mb1/board1/1225.shtml - http://www.comedysportzla.com/mb1/board1/1226.shtml - http://www.comedysportzla.com/mb1/board1/1227.shtml - http://www.comedysportzla.com/mb1/board1/1228.shtml - http://www.comedysportzla.com/mb1/board1/1229.shtml - http://www.comedysportzla.com/mb1/board1/1230.shtml - http://www.comedysportzla.com/mb1/board1/1231.shtml - http://www.comedysportzla.com/mb1/board1/1232.shtml - http://www.comedysportzla.com/mb1/board1/1233.shtml - http://www.comedysportzla.com/mb1/board1/1234.shtml - http://www.comedysportzla.com/mb1/board1/1235.shtml - http://www.comedysportzla.com/mb1/board1/1236.shtml - http://www.comedysportzla.com/mb1/board1/1237.shtml - http://www.comedysportzla.com/mb1/board1/1238.shtml - http://www.comedysportzla.com/mb1/board1/1239.shtml - http://www.comedysportzla.com/mb1/board1/1240.shtml - http://www.comedysportzla.com/mb1/board1/1241.shtml - http://www.comedysportzla.com/mb1/board1/1242.shtml - http://www.comedysportzla.com/mb1/board1/1243.shtml - http://www.comedysportzla.com/mb1/board1/1244.shtml - http://www.comedysportzla.com/mb1/board1/1245.shtml - http://www.comedysportzla.com/mb1/board1/1246.shtml - http://www.comedysportzla.com/mb1/board1/1247.shtml - http://www.comedysportzla.com/mb1/board1/1248.shtml - http://www.comedysportzla.com/mb1/board1/1249.shtml - http://www.comedysportzla.com/mb1/board1/1250.shtml - http://www.comedysportzla.com/mb1/board1/1251.shtml - http://www.comedysportzla.com/mb1/board1/1252.shtml - http://www.comedysportzla.com/mb1/board1/1253.shtml - http://www.comedysportzla.com/mb1/board1/1254.shtml - http://www.comedysportzla.com/mb1/board1/1255.shtml - http://www.comedysportzla.com/mb1/board1/1256.shtml - http://www.comedysportzla.com/mb1/board1/1257.shtml - http://www.comedysportzla.com/mb1/board1/1258.shtml - http://www.comedysportzla.com/mb1/board1/1259.shtml - http://www.comedysportzla.com/mb1/board1/1260.shtml - http://www.comedysportzla.com/mb1/board1/1261.shtml - http://www.comedysportzla.com/mb1/board1/1262.shtml - http://www.comedysportzla.com/mb1/board1/1263.shtml - http://www.comedysportzla.com/mb1/board1/1264.shtml - http://www.comedysportzla.com/mb1/board1/1265.shtml - http://www.comedysportzla.com/mb1/board1/1266.shtml - http://www.comedysportzla.com/mb1/board1/1267.shtml - http://www.comedysportzla.com/mb1/board1/1268.shtml - http://www.comedysportzla.com/mb1/board1/1269.shtml - http://www.comedysportzla.com/mb1/board1/1270.shtml - http://www.comedysportzla.com/mb1/board1/1271.shtml - http://www.comedysportzla.com/mb1/board1/1272.shtml - http://www.comedysportzla.com/mb1/board1/1273.shtml - http://www.comedysportzla.com/mb1/board1/1274.shtml - http://www.comedysportzla.com/mb1/board1/1275.shtml - http://www.comedysportzla.com/mb1/board1/1276.shtml - http://www.comedysportzla.com/mb1/board1/1277.shtml - http://www.comedysportzla.com/mb1/board1/1278.shtml - http://www.comedysportzla.com/mb1/board1/1279.shtml - http://www.comedysportzla.com/mb1/board1/1280.shtml - http://www.comedysportzla.com/mb1/board1/1281.shtml -
> NullPointerException in ActionMapping.findForward()
> ---------------------------------------------------
>
> Key: STR-261
> URL: http://issues.apache.org/struts/browse/STR-261
> Project: Struts 1
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0 Final
> Environment: Operating System: other
> Platform: Other
> Reporter: Martin Zaidel
> Assigned To: Craig McClanahan
> Priority: Minor
> Fix For: 1.0.2
>
>
> findForward() throws a null pointer exception when searching for a non-existent
> forward name:
> public class TestAction extends Action
> {
> public ActionForward perform(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> throws ServletException {
> ActionForward forward = null;
> try {
> forward = mapping.findForward("noSuchForward");
> } catch (NullPointerException npe) {
> // this is a bug in ActionMapping, struts v1.0
> System.out.println("Null pointer in findForward()");
> }
> return forward;
> }
> }
> public class ActionTestDriver {
> /**
> * Test with a valid customer, a valid cart, but not
> * logged in.
> */
> public static void main(String args[])
> throws Exception
> {
> TestAction action = new TestAction();
> ActionMapping mapping = new ActionMapping();
> ActionForward forwardOkay = new ActionForward ( "/success.do" );
> forwardOkay.setName ( "okay" );
> mapping.addForward ( forwardOkay );
> ActionForward forward = action.perform ( mapping,
> null,
> null,
> null );
> System.out.println("Returned " + forward);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] Commented: (STR-261) NullPointerException in ActionMapping.findForward()
Posted by Wendy Smoak <ws...@gmail.com>.
On 12/3/06, Wendy Smoak <ws...@gmail.com> wrote:
> It's apparently scripted... don't delete it just yet, Jeff Turner
> wants to look at them first.
Jeff is looking at this one and WW-1514 and will delete the comments
when he's finished investigating.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [jira] Commented: (STR-261) NullPointerException in ActionMapping.findForward()
Posted by Wendy Smoak <ws...@gmail.com>.
On 12/3/06, Paul Benedict <pb...@apache.org> wrote:
> How does mark lewman keep getting a jira account? I think it's the same
> name every time.
It's apparently scripted... don't delete it just yet, Jeff Turner
wants to look at them first.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [jira] Commented: (STR-261) NullPointerException in ActionMapping.findForward()
Posted by Paul Benedict <pb...@apache.org>.
How does mark lewman keep getting a jira account? I think it's the same
name every time.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [jira] Commented: (STR-261) NullPointerException in ActionMapping.findForward()
Posted by Paul Benedict <pb...@apache.org>.
How does mark lewman keep getting a jira account? I think it's the same
name every time.