struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacqueline Gomes" <jgo...@docep.wa.gov.au>
Subject RE: Logic Iterate - Cannot Create iterator for this collection
Date Wed, 04 Feb 2004 10:10:17 GMT
RUN/servers/bnonline/bnonline.war
04/02 18:05:58 info [axis]   getConnection()
04/02 18:05:58 info [axis]    Check for timeout, activeCount=1, useCount=1
04/02 18:05:58 info [axis]    Found available connection
04/02 18:05:58 info [axis]    Return allocated connection, activeCount=1, useCou
nt=2
04/02 18:05:58 user FileServlet: destroy
04/02 18:05:58 info 1 session(s) persisted
04/02 18:05:58 info Removing web application service from servlet engine service
: bnonline.war
04/02 18:05:59 info Deploying web application "file:/C:/Tools/JRUN/servers/bnonl
ine/bnonline.war" from: file:/C:/Tools/JRUN/servers/bnonline/bnonline.war
04/02 18:05:59 user JSPServlet: init
04/02 18:05:59 user action: init
04/02 18:05:59 info [axis] Initializing, config='org.apache.struts.util.LocalStr
ings', returnNull=true04/02 18:05:59 error [axis] Parse Error at line 215 column
 -1: Element "action" does not allow text.
org.xml.sax.SAXParseExcept
04/02 18:05:59 info [axis] Initializing, config='org.apache.struts.action.Action
Resources', returnNull=true
ion: Element "action" does not allow text.
        at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
        at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.text(Val
idatingParser.java:355)
        at org.apache.crimson.parser.InputEntity.parsedContent(InputEntity.java:
597)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1973)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)

        at org.apache.commons.digester.Digester.parse(Digester.java:1548)
        at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
        at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.
java:1208)
        at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationServ
ice.java:763)
        at jrun.servlet.WebApplicationService.postStart(WebApplicationService.ja
va:258)
        at jrun.deployment.DeployerService.initModules(DeployerService.java:711)

        at jrun.deployment.DeployerService.createWatchedDeployment(DeployerServi
ce.java:242)
        at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
Here's the stack trace.


04/02 18:09:09 info [axis] Initializing, config='org.apache.struts.taglib.logic.
LocalStrings', returnNull=true04/02 18:09:09 error Unhandled exception thrown fr
om /admin/adm_obtain_extract_results.jsp:81
[1]javax.servlet.jsp.JspException
04/02 18:09:09 info [axis] Initializing, config='org.apache.struts.taglib.bean.L
ocalStrings', returnNull=true
: Cannot create iterator for this collection
        at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
310)
        at jrun__admin__adm_obtain_extract_results2ejsp25._jspService(jrun__admi
n__adm_obtain_extract_results2ejsp25.java:478)
        at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
        at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
ava:414)
        at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
r.java:387)
        at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
:172)
        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
        at org.apache.struts.action.RequestProcessor.processForwardConfig(Reques
tProcessor.java:455)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
        at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /admi
n/adm_obtain_extract_results.jsp:81
        at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
        at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
java:381)
        at jrun__admin__adm_obtain_extract_results2ejsp25._jspService(jrun__admi
n__adm_obtain_extract_results2ejsp25.java:540)
        at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
        at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
ava:414)
        at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
r.java:387)
        at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
:172)
        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
        at org.apache.struts.action.RequestProcessor.processForwardConfig(Reques
tProcessor.java:455)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
        at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


-----Original Message-----
From: Michael McGrady [mailto:mike@michaelmcgrady.com]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection


Could you please give more details?  Show me the stack trace or whatever 
you are seeing.

At 01:44 AM 2/4/2004, you wrote:
>I am still getting Cannot Create Iterator for this collection error.
>
>-----Original Message-----
>From: Michael McGrady [mailto:mike@michaelmcgrady.com]
>Sent: Wednesday, 4 February 2004 5:42 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>What happens?
>
>
>At 01:36 AM 2/4/2004, you wrote:
> >I did put a bean:write in there and it still doesn't work.
> >
> >-----Original Message-----
> >From: Michael McGrady [mailto:mike@michaelmcgrady.com]
> >Sent: Wednesday, 4 February 2004 5:35 PM
> >To: Struts Users Mailing List
> >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >I have not looked at this closely, but I notice there is no write in the
> >nested iterator.  Can you say what happens with this when you run it?
> >
> >At 01:06 AM 2/4/2004, you wrote:
> > >Hi All,
> > >
> > >I have a List collection (paymntTrnsctns) which contains an adminReceipts
> > >objects. One of the properties of adminReceipts is a list.  So I display
> > >the normal string properties of the object, such as receiptNumber and
> > >transactionDate, but can't then get the list adminPaymentDetails within
> > >the adminReceipts object.
> > >
> > >I am trying to execute the following code:
> > >
> > >   <logic:iterate id="adminReceipts" name="paymntTrnsctns">
> > >     <div id="ExtractResults" style="width: 760px; background-color:
> > > #FFFFFF; border: 1px; padding: 1px; margin: 0px auto";>
> > >       <table width="100%" border="1" cellpadding="0" cellspacing="0">
> > >                 <tr class="extractResultsTRHeading" bgcolor="#FFFFFF">
> > >                   <td class="extractResultsTD">
> > >                     <bean:message key="prompt.label.receiptNumber"/>
> > >                   </td>
> > >                   <td class="extractResultsTD">
> > >                     <bean:message key="prompt.label.dateTime"/>
> > >                   </td>
> > >                 </tr>
> > >                 <tr class="extractResultsTRHeading"
> > > bgcolor="<jsp:getProperty name="colour" property="next"/>">
> > >                   <td class="extractResultsTD">
> > >                     <bean:write name="adminReceipts"
> > > property="receiptNumber"/>
> > >                   </td>
> > >                   <td class="extractResultsTD">
> > >                     <bean:write name="adminReceipts"
> > > property="transactionDate"/>
> > >                   </td>
> > >                 </tr>
> > >           </table>
> > >         </div>
> > >         <logic:iterate id="adminPaymentDetails" name="adminReceipts">
> > >       </logic:iterate>
> > ></logic:iterate>
> > >
> > >Can anyone please tell me what I'm doing wrong.
> > >
> > >Thanks,
> > >
> > >Jackie.
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message