problem with passing values from page to page

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with passing values from page to page

Alexander Žaťko
I am attempting to pass value of an XForms node of one page to another.  
In my page-flow - on the originating page - I have an action like this:

         <action when="/edit-actions/action = 'invoice-from-asn'">
             <result page="invoice">
                 <xu:update select="/edit-actions/tn">
                     <xu:value-of  
select="document('input:instance')//tn"/>
                 </xu:update>
                 <xu:update select="/edit-actions/doctype">
                     <xu:value-of select="'new'"/>
                 </xu:update>
             </result>
         </action>

However, OPS generates an error (see below). When I remove the content  
of the "result" element, the called page "invoice" is retrieved, but  
the values are not passed. I can't figure out what is going on as I  
have a similar - working - value-passing construct elsewhere in the  
page-flow. The one difference I can see between the error-generating  
one and the one that works is, that in the former case, XForms models  
for both pages are generated dynamically. Not sure if this has any  
impact on what I am seeing.

I am using OPS 3.0 beta 3 and classic XForms engine.


A.


2006-01-31 09:46:44,311 INFO  org.orbeon.oxf.pipeline.InitUtils null -  
/asn - Timing: 789 - Cache hits: 656, fault: 40, adds: 40, success  
rate: 94%
java.lang.ArrayIndexOutOfBoundsException: 30
        at  
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
.java:688)
        at  
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
.java:616)
        at  
org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputB
uffer.java:496)
        at  
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor
.java:1535)
        at  
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:
892)
        at org.apache.coyote.Response.action(Response.java:182)
        at org.apache.coyote.Response.sendHeaders(Response.java:374)
        at  
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:321)
        at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:282)
        at  
org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.j
ava:476)
        at  
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:163)
        at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
799)
        at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
        at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
577)
        at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
        at java.lang.Thread.run(Thread.java:552)
Jan 31, 2006 9:46:44 AM org.apache.coyote.http11.Http11Processor process
SEVERE: Error finishing response
java.lang.ArrayIndexOutOfBoundsException: 169427168
        at  
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer
.java:688)
        at  
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputB
uffer.java:428)
        at  
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor
.java:1531)
        at  
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:
892)
        at org.apache.coyote.Response.action(Response.java:180)
        at  
org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputB
uffer.java:388)
        at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
836)
        at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
        at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
577)
        at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
        at java.lang.Thread.run(Thread.java:552)




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: problem with passing values from page to page

Erik Bruchez
Administrator
Do you use instance-passing="forward"?

-Erik

Alexander Zatko wrote:

> I am attempting to pass value of an XForms node of one page to another.
> In my page-flow - on the originating page - I have an action like this:
>
>         <action when="/edit-actions/action = 'invoice-from-asn'">
>             <result page="invoice">
>                 <xu:update select="/edit-actions/tn">
>                     <xu:value-of select="document('input:instance')//tn"/>
>                 </xu:update>
>                 <xu:update select="/edit-actions/doctype">
>                     <xu:value-of select="'new'"/>
>                 </xu:update>
>             </result>
>         </action>
>
> However, OPS generates an error (see below). When I remove the content
> of the "result" element, the called page "invoice" is retrieved, but the
> values are not passed. I can't figure out what is going on as I have a
> similar - working - value-passing construct elsewhere in the page-flow.
> The one difference I can see between the error-generating one and the
> one that works is, that in the former case, XForms models for both pages
> are generated dynamically. Not sure if this has any impact on what I am
> seeing.
>
> I am using OPS 3.0 beta 3 and classic XForms engine.
>
>
> A.
>
>
> 2006-01-31 09:46:44,311 INFO  org.orbeon.oxf.pipeline.InitUtils null -
> /asn - Timing: 789 - Cache hits: 656, fault: 40, adds: 40, success rate:
> 94%
> java.lang.ArrayIndexOutOfBoundsException: 30
>     at
> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:688)
>
>     at
> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:616)
>
>     at
> org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:496)
>
>     at
> org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1535)
>
>     at
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:892)
>     at org.apache.coyote.Response.action(Response.java:182)
>     at org.apache.coyote.Response.sendHeaders(Response.java:374)
>     at
> org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:321)
>     at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:282)
>     at
> org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java:476)
>
>     at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:163)
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>
>     at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>
>     at java.lang.Thread.run(Thread.java:552)
> Jan 31, 2006 9:46:44 AM org.apache.coyote.http11.Http11Processor process
> SEVERE: Error finishing response
> java.lang.ArrayIndexOutOfBoundsException: 169427168
>     at
> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:688)
>
>     at
> org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:428)
>
>     at
> org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1531)
>
>     at
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:892)
>     at org.apache.coyote.Response.action(Response.java:180)
>     at
> org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:388)
>
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:836)
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>
>     at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>
>     at java.lang.Thread.run(Thread.java:552)



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: problem with passing values from page to page

Alexander Žaťko
The properties.xml has the default value of "redirect" for the  
oxf:page-flow processor. I guess that works fine for one of my pages,  
but did not work for the second - probably because there is just too  
much data for GET. I changed the value to "forward" on the result  
element of the problematic page and now it works.

Thank you

A.


On Feb 1, 2006, at 11:07 AM, Erik Bruchez wrote:

> Do you use instance-passing="forward"?
>
> -Erik
>
> Alexander Zatko wrote:
>> I am attempting to pass value of an XForms node of one page to  
>> another. In my page-flow - on the originating page - I have an action  
>> like this:
>>         <action when="/edit-actions/action = 'invoice-from-asn'">
>>             <result page="invoice">
>>                 <xu:update select="/edit-actions/tn">
>>                     <xu:value-of  
>> select="document('input:instance')//tn"/>
>>                 </xu:update>
>>                 <xu:update select="/edit-actions/doctype">
>>                     <xu:value-of select="'new'"/>
>>                 </xu:update>
>>             </result>
>>         </action>
>> However, OPS generates an error (see below). When I remove the  
>> content of the "result" element, the called page "invoice" is  
>> retrieved, but the values are not passed. I can't figure out what is  
>> going on as I have a similar - working - value-passing construct  
>> elsewhere in the page-flow. The one difference I can see between the  
>> error-generating one and the one that works is, that in the former  
>> case, XForms models for both pages are generated dynamically. Not  
>> sure if this has any impact on what I am seeing.
>> I am using OPS 3.0 beta 3 and classic XForms engine.
>> A.
>> 2006-01-31 09:46:44,311 INFO  org.orbeon.oxf.pipeline.InitUtils null  
>> - /asn - Timing: 789 - Cache hits: 656, fault: 40, adds: 40, success  
>> rate: 94%
>> java.lang.ArrayIndexOutOfBoundsException: 30
>>     at  
>> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff
>> er.java:688)     at  
>> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff
>> er.java:616)     at  
>> org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutpu
>> tBuffer.java:496)     at  
>> org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Process
>> or.java:1535)     at  
>> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:
>> 892)
>>     at org.apache.coyote.Response.action(Response.java:182)
>>     at org.apache.coyote.Response.sendHeaders(Response.java:374)
>>     at  
>> org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:321)
>>     at  
>> org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:282)
>>     at  
>> org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse
>> .java:476)     at  
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
>> 163)
>>     at  
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 799)
>>     at  
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
>> sConnection(Http11Protocol.java:705)     at  
>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
>> 577)
>>     at  
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol.java:683)     at java.lang.Thread.run(Thread.java:552)
>> Jan 31, 2006 9:46:44 AM org.apache.coyote.http11.Http11Processor  
>> process
>> SEVERE: Error finishing response
>> java.lang.ArrayIndexOutOfBoundsException: 169427168
>>     at  
>> org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuff
>> er.java:688)     at  
>> org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutpu
>> tBuffer.java:428)     at  
>> org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Process
>> or.java:1531)     at  
>> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:
>> 892)
>>     at org.apache.coyote.Response.action(Response.java:180)
>>     at  
>> org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutpu
>> tBuffer.java:388)     at  
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 836)
>>     at  
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
>> sConnection(Http11Protocol.java:705)     at  
>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
>> 577)
>>     at  
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol.java:683)     at java.lang.Thread.run(Thread.java:552)
>
>
> --
> You receive this message as a subscriber of the  
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws