RE: URI is null error on ActionForward

2001-07-19 Thread Gogineni, Pratima

FYI - I usually get this when I have  a datasource configured in the
struts-config.xml but if for some reason the database cant be accessed 

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 7:07 AM
To: Struts List
Subject: URI is null error on ActionForward


I have a really simple action forward just like many I've used in the past.
I am getting this error on JRun 3.1 EE.  I have included an excerpt from my
struts-config.xml and my action class to see if you y'all see something I
just do not...I just added the redirect=true and it does the same thing.

Thanks for any help you can give me here! :-)

Jon Brisbin
Lamar, MO
[EMAIL PROTECTED]


java.lang.IllegalArgumentException: URI is null
 at
allaire.jrun.servlet.JRunSE.getRequestDispatcher(../servlet/JRunSE.java:1937
)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1750)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
 at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
 at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
 at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
 at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
 at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
 at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
 at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)


My struts config excerpt follows:

  !-- == Action Mapping Definitions
== --
  action-mappings

!-- Create Category action --
action  path=/AddCategory
 type=com.rrlures.struts.AddCategory
 name=categoryForm
scope=request
input=/catalog/admin.jsp
 forward name=success
  path=/catalog/admin-updated.jsp
 redirect=true /
/action

  /action-mappings


My action class forwards like such:

// Set our utility objects
HttpSession session = request.getSession(true);
MessageResources messages = getResources();
CategoryForm form = (CategoryForm)actionForm;

request.setAttribute(formxml, form.getXml());

getServlet().getServletContext().log(Forwarding to success.);
return (new ActionForward(success));




RE: URI is null error on ActionForward

2001-07-19 Thread Siggelkow, Bill

Use 'mapping.findForward(success)' instead of creating a new ActionForward
as the return value of your perform method.
This will use the local forward defined for your action, or if not
specified,
will try and find a global forward named success.

-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 11:14 AM
To: '[EMAIL PROTECTED]'
Subject: RE: URI is null error on ActionForward


FYI - I usually get this when I have  a datasource configured in the
struts-config.xml but if for some reason the database cant be accessed 

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 7:07 AM
To: Struts List
Subject: URI is null error on ActionForward


I have a really simple action forward just like many I've used in the past.
I am getting this error on JRun 3.1 EE.  I have included an excerpt from my
struts-config.xml and my action class to see if you y'all see something I
just do not...I just added the redirect=true and it does the same thing.

Thanks for any help you can give me here! :-)

Jon Brisbin
Lamar, MO
[EMAIL PROTECTED]


java.lang.IllegalArgumentException: URI is null
 at
allaire.jrun.servlet.JRunSE.getRequestDispatcher(../servlet/JRunSE.java:1937
)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1750)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
 at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
 at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
 at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
 at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
 at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
 at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
 at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
 at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)


My struts config excerpt follows:

  !-- == Action Mapping Definitions
== --
  action-mappings

!-- Create Category action --
action  path=/AddCategory
 type=com.rrlures.struts.AddCategory
 name=categoryForm
scope=request
input=/catalog/admin.jsp
 forward name=success
  path=/catalog/admin-updated.jsp
 redirect=true /
/action

  /action-mappings


My action class forwards like such:

// Set our utility objects
HttpSession session = request.getSession(true);
MessageResources messages = getResources();
CategoryForm form = (CategoryForm)actionForm;

request.setAttribute(formxml, form.getXml());

getServlet().getServletContext().log(Forwarding to success.);
return (new ActionForward(success));