xforms:repeat and an empty $current-repeat-index (previous "xforms:repeat")

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

xforms:repeat and an empty $current-repeat-index (previous "xforms:repeat")

Henrik Pettersen
All,

I am reposting this problem in order to clarify my particular issue
better. Apologies for any confusion.

I am having problems with xforms:repeat, that I am unable to resolve.
Any help/hints/tricks/insights would be greatly appreciated. Thank you
to Ryan Puddephatt and Adrian Baker for getting me this far!

Here is my view:

<xhtml:html xmlns=""
           xmlns:xhtml="http://www.w3.org/1999/xhtml"
           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
           xmlns:f="http://orbeon.org/oxf/xml/formatting"
           xmlns:aspic="http://www.cruk.com/aspic/editor/v1"
           xmlns:xforms="http://www.w3.org/2002/xforms"
           xmlns:xi="http://orbeon.org/oxf/xml/xinclude"
           xmlns:ev="http://www.w3.org/2001/xml-events"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:test="http://test.org"
           xsl:version="2.0">
 <xhtml:head>
     <xhtml:meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
     <xhtml:title> xhtml:list all users </xhtml:title>
     <xforms:model>
         <xforms:instance id="test">
             <test:results>
                 <test:users>
                     <test:user>
                         <test:email>[hidden email]</test:email>
                         <test:firstname>Henrik</test:firstname>
                         <test:lastname>Pettersen</test:lastname>
                         <test:username>admin</test:username>
                         <test:id>0</test:id>
                     </test:user>
                     <test:user>
                         <test:email>[hidden email]</test:email>
                         <test:firstname>Henrik</test:firstname>
                         <test:lastname>Pettersen</test:lastname>
                         <test:username>henrikp</test:username>
                         <test:id>1</test:id>
                     </test:user>
                 </test:users>
                 <test:request-security>
                     <test:secure>false</test:secure>
                 </test:request-security>
             </test:results>
         </xforms:instance>
     </xforms:model>
 </xhtml:head>

 <xhtml:body>
 ...
 <xforms:repeat nodeset="instance('test')/test:users/test:user">
       <xhtml:td>username: <xforms:output ref="test:username"/></xhtml:td>
 </xforms:repeat>
 ...
 </xhtml:body>
</xhtml:html>



Here is my error message:

"The following error has occurred:
Error Message
An empty sequence is not allowed as the value of variable $current-repeat-index"

And this is the stacktrace:

"
org.orbeon.oxf.common.ValidationException: Condition failed for every
branch of choose: [ends-with( /request/request-path, '.css' ) or
ends-with( /request/request-path, '.js' ), (/request/request-path
 = '/xforms-server-submit'), (/request/request-path = '/'),
(/request/request-path = '/home'), (/request/request-path = '/login'),
(/request/request-path = '/login-error'), (/request/request-path = '/
users'), (/request/request-path =
'/config/theme/orbeon-layout.cssd')]: Condition failed for every
branch of choose: [ends-with( /request/request-path, '.css' ) or
ends-with( /request/request-path, '.
js' ), (/request/request-path = '/xforms-server-submit'),
(/request/request-path = '/'), (/request/request-path = '/home'),
(/request/request-path = '/login'), (/request/request-path =
'/login-error')
, (/request/request-path = '/users'), (/request/request-path =
'/config/theme/orbeon-layout.cssd')]
       at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:212)
       at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.getKeyImpl(ConcreteChooseProcessor.java:129)
       at org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
       at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1181)
       at org.orbeon.oxf.processor.pipeline.TeeProcessor$1.getKeyImpl(TeeProcessor.java:79)
       at org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
       at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(ProcessorImpl.java:1181)
       at org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1191)
       at org.orbeon.oxf.processor.ProcessorImpl.getInputKeyValidity(ProcessorImpl.java:1222)
       at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:456)
       at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsDOM4J(ProcessorImpl.java:426)
       at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:185)
       at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:652)
       at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:515)
       at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:649)
       at org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControllerProcessor.java:416)
       at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86)
       at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:95)
       at org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:144)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:74)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       at java.lang.Thread.run(Thread.java:595)
"

Can anyone spot the problem?

Thanks!

Sincerely,
Henrik Pettersen
Advanced Computational Laboraty
Cancer Research UK



--
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: xforms:repeat and an empty $current-repeat-index (previous "xforms:repeat")

Ryan Puddephatt
Henrik, I copied your code (attached) and used it in the Xforms Sandbox
(http://www.orbeon.com/ops/goto-example/xforms-sandbox), it works fine. The
error is definitely to do with a miss typed url. It is generated based on
the page-flow entries. I see you /users path-info there, but is you browser
definitely pointing to http://localhost:8080/my-web-app/users, or something
similar? If it is, try restarting you browser and server it could be a
caching problem

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Henrik Pettersen [mailto:[hidden email]]
>Sent: 12 July 2006 12:03
>To: [hidden email]
>Subject: [ops-users] xforms:repeat and an empty $current-repeat-index
>(previous "xforms:repeat")
>
>All,
>
>I am reposting this problem in order to clarify my particular issue
>better. Apologies for any confusion.
>
>I am having problems with xforms:repeat, that I am unable to resolve.
>Any help/hints/tricks/insights would be greatly appreciated. Thank you
>to Ryan Puddephatt and Adrian Baker for getting me this far!
>
>Here is my view:
>
><xhtml:html xmlns=""
>           xmlns:xhtml="http://www.w3.org/1999/xhtml"
>           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>           xmlns:f="http://orbeon.org/oxf/xml/formatting"
>           xmlns:aspic="http://www.cruk.com/aspic/editor/v1"
>           xmlns:xforms="http://www.w3.org/2002/xforms"
>           xmlns:xi="http://orbeon.org/oxf/xml/xinclude"
>           xmlns:ev="http://www.w3.org/2001/xml-events"
>           xmlns:xs="http://www.w3.org/2001/XMLSchema"
>           xmlns:test="http://test.org"
>           xsl:version="2.0">
> <xhtml:head>
>     <xhtml:meta http-equiv="Content-Type" content="text/html;
>charset=UTF-8" />
>     <xhtml:title> xhtml:list all users </xhtml:title>
>     <xforms:model>
>         <xforms:instance id="test">
>             <test:results>
>                 <test:users>
>                     <test:user>
>
><test:email>[hidden email]</test:email>
>                         <test:firstname>Henrik</test:firstname>
>                         <test:lastname>Pettersen</test:lastname>
>                         <test:username>admin</test:username>
>                         <test:id>0</test:id>
>                     </test:user>
>                     <test:user>
>                         <test:email>[hidden email]</test:email>
>                         <test:firstname>Henrik</test:firstname>
>                         <test:lastname>Pettersen</test:lastname>
>                         <test:username>henrikp</test:username>
>                         <test:id>1</test:id>
>                     </test:user>
>                 </test:users>
>                 <test:request-security>
>                     <test:secure>false</test:secure>
>                 </test:request-security>
>             </test:results>
>         </xforms:instance>
>     </xforms:model>
> </xhtml:head>
>
> <xhtml:body>
> ...
> <xforms:repeat nodeset="instance('test')/test:users/test:user">
>       <xhtml:td>username: <xforms:output ref="test:username"/></xhtml:td>
> </xforms:repeat>
> ...
> </xhtml:body>
></xhtml:html>
>
>
>
>Here is my error message:
>
>"The following error has occurred:
>Error Message
>An empty sequence is not allowed as the value of variable $current-repeat-
>index"
>
>And this is the stacktrace:
>
>"
>org.orbeon.oxf.common.ValidationException: Condition failed for every
>branch of choose: [ends-with( /request/request-path, '.css' ) or
>ends-with( /request/request-path, '.js' ), (/request/request-path
> = '/xforms-server-submit'), (/request/request-path = '/'),
>(/request/request-path = '/home'), (/request/request-path = '/login'),
>(/request/request-path = '/login-error'), (/request/request-path = '/
>users'), (/request/request-path =
>'/config/theme/orbeon-layout.cssd')]: Condition failed for every
>branch of choose: [ends-with( /request/request-path, '.css' ) or
>ends-with( /request/request-path, '.
>js' ), (/request/request-path = '/xforms-server-submit'),
>(/request/request-path = '/'), (/request/request-path = '/home'),
>(/request/request-path = '/login'), (/request/request-path =
>'/login-error')
>, (/request/request-path = '/users'), (/request/request-path =
>'/config/theme/orbeon-layout.cssd')]
>       at
>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(Conc
>reteChooseProcessor.java:212)
>       at
>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.getKeyIm
>pl(ConcreteChooseProcessor.java:129)
>       at
>org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
>       at
>org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(Processor
>Impl.java:1181)
>       at
>org.orbeon.oxf.processor.pipeline.TeeProcessor$1.getKeyImpl(TeeProcessor.ja
>va:79)
>       at
>org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
>       at
>org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(Processor
>Impl.java:1181)
>       at
>org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1191)
>       at
>org.orbeon.oxf.processor.ProcessorImpl.getInputKeyValidity(ProcessorImpl.ja
>va:1222)
>       at
>org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl
>.java:456)
>       at
>org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsDOM4J(ProcessorImpl.
>java:426)
>       at
>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(Conc
>reteChooseProcessor.java:185)
>       at
>org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcesso
>r.java:652)
>       at
>org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:5
>15)
>       at
>org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor
>.java:649)
>       at
>org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControll
>erProcessor.java:416)
>       at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86)
>       at
>org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:95)
>       at
>org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:1
>44)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>       at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:74)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>       at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:252)
>       at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:173)
>       at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:213)
>       at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:178)
>       at
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas
>e.java:432)
>       at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
>6)
>       at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
>5)
>       at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a:107)
>       at
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>       at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>       at
>org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
>Connection(Http11BaseProtocol.java:664)
>       at
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
>va:527)
>       at
>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW
>orkerThread.java:80)
>       at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>va:684)
>       at java.lang.Thread.run(Thread.java:595)
>"
>
>Can anyone spot the problem?
>
>Thanks!
>
>Sincerely,
>Henrik Pettersen
>Advanced Computational Laboraty
>Cancer Research UK




--
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: xforms:repeat and an empty $current-repeat-index (previous "xforms:repeat")

Ryan Puddephatt
And my outlook code doesn't work any more....strange and annoying, but here
is the attachment

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Ryan Puddephatt [mailto:[hidden email]]
>Sent: 12 July 2006 12:16
>To: [hidden email]
>Subject: RE: [ops-users] xforms:repeat and an empty $current-repeat-index
>(previous "xforms:repeat")
>
>Henrik, I copied your code (attached) and used it in the Xforms Sandbox
>(http://www.orbeon.com/ops/goto-example/xforms-sandbox), it works fine. The
>error is definitely to do with a miss typed url. It is generated based on
>the page-flow entries. I see you /users path-info there, but is you browser
>definitely pointing to http://localhost:8080/my-web-app/users, or something
>similar? If it is, try restarting you browser and server it could be a
>caching problem
>
>Ryan
>
>Ryan Puddephatt
>Software Engineer
>TFX Group - IT UK
>1 Michaelson Square
>Livingston
>West Lothian
>Scotand
>EH54 7DP
>
>* [hidden email]
>( 01506 407 110
>7  01506 407 108
>
>
>>-----Original Message-----
>>From: Henrik Pettersen [mailto:[hidden email]]
>>Sent: 12 July 2006 12:03
>>To: [hidden email]
>>Subject: [ops-users] xforms:repeat and an empty $current-repeat-index
>>(previous "xforms:repeat")
>>
>>All,
>>
>>I am reposting this problem in order to clarify my particular issue
>>better. Apologies for any confusion.
>>
>>I am having problems with xforms:repeat, that I am unable to resolve.
>>Any help/hints/tricks/insights would be greatly appreciated. Thank you
>>to Ryan Puddephatt and Adrian Baker for getting me this far!
>>
>>Here is my view:
>>
>><xhtml:html xmlns=""
>>           xmlns:xhtml="http://www.w3.org/1999/xhtml"
>>           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>           xmlns:f="http://orbeon.org/oxf/xml/formatting"
>>           xmlns:aspic="http://www.cruk.com/aspic/editor/v1"
>>           xmlns:xforms="http://www.w3.org/2002/xforms"
>>           xmlns:xi="http://orbeon.org/oxf/xml/xinclude"
>>           xmlns:ev="http://www.w3.org/2001/xml-events"
>>           xmlns:xs="http://www.w3.org/2001/XMLSchema"
>>           xmlns:test="http://test.org"
>>           xsl:version="2.0">
>> <xhtml:head>
>>     <xhtml:meta http-equiv="Content-Type" content="text/html;
>>charset=UTF-8" />
>>     <xhtml:title> xhtml:list all users </xhtml:title>
>>     <xforms:model>
>>         <xforms:instance id="test">
>>             <test:results>
>>                 <test:users>
>>                     <test:user>
>>
>><test:email>[hidden email]</test:email>
>>                         <test:firstname>Henrik</test:firstname>
>>                         <test:lastname>Pettersen</test:lastname>
>>                         <test:username>admin</test:username>
>>                         <test:id>0</test:id>
>>                     </test:user>
>>                     <test:user>
>>                         <test:email>[hidden email]</test:email>
>>                         <test:firstname>Henrik</test:firstname>
>>                         <test:lastname>Pettersen</test:lastname>
>>                         <test:username>henrikp</test:username>
>>                         <test:id>1</test:id>
>>                     </test:user>
>>                 </test:users>
>>                 <test:request-security>
>>                     <test:secure>false</test:secure>
>>                 </test:request-security>
>>             </test:results>
>>         </xforms:instance>
>>     </xforms:model>
>> </xhtml:head>
>>
>> <xhtml:body>
>> ...
>> <xforms:repeat nodeset="instance('test')/test:users/test:user">
>>       <xhtml:td>username: <xforms:output ref="test:username"/></xhtml:td>
>> </xforms:repeat>
>> ...
>> </xhtml:body>
>></xhtml:html>
>>
>>
>>
>>Here is my error message:
>>
>>"The following error has occurred:
>>Error Message
>>An empty sequence is not allowed as the value of variable $current-repeat-
>>index"
>>
>>And this is the stacktrace:
>>
>>"
>>org.orbeon.oxf.common.ValidationException: Condition failed for every
>>branch of choose: [ends-with( /request/request-path, '.css' ) or
>>ends-with( /request/request-path, '.js' ), (/request/request-path
>> = '/xforms-server-submit'), (/request/request-path = '/'),
>>(/request/request-path = '/home'), (/request/request-path = '/login'),
>>(/request/request-path = '/login-error'), (/request/request-path = '/
>>users'), (/request/request-path =
>>'/config/theme/orbeon-layout.cssd')]: Condition failed for every
>>branch of choose: [ends-with( /request/request-path, '.css' ) or
>>ends-with( /request/request-path, '.
>>js' ), (/request/request-path = '/xforms-server-submit'),
>>(/request/request-path = '/'), (/request/request-path = '/home'),
>>(/request/request-path = '/login'), (/request/request-path =
>>'/login-error')
>>, (/request/request-path = '/users'), (/request/request-path =
>>'/config/theme/orbeon-layout.cssd')]
>>       at
>>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(Con
>c
>>reteChooseProcessor.java:212)
>>       at
>>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.getKeyI
>m
>>pl(ConcreteChooseProcessor.java:129)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(Processo
>r
>>Impl.java:1181)
>>       at
>>org.orbeon.oxf.processor.pipeline.TeeProcessor$1.getKeyImpl(TeeProcessor.j
>a
>>va:79)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(Processo
>r
>>Impl.java:1181)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1191
>)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl.getInputKeyValidity(ProcessorImpl.j
>a
>>va:1222)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImp
>l
>>.java:456)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsDOM4J(ProcessorImpl
>.
>>java:426)
>>       at
>>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(Con
>c
>>reteChooseProcessor.java:185)
>>       at
>>org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcess
>o
>>r.java:652)
>>       at
>>org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:
>5
>>15)
>>       at
>>org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcesso
>r
>>.java:649)
>>       at
>>org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControl
>l
>>erProcessor.java:416)
>>       at
>org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86)
>>       at
>>org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:95)
>>       at
>>org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:
>1
>>44)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>       at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:74)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>       at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>o
>>nFilterChain.java:252)
>>       at
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>C
>>hain.java:173)
>>       at
>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
>j
>>ava:213)
>>       at
>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
>j
>>ava:178)
>>       at
>>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBa
>s
>>e.java:432)
>>       at
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
>2
>>6)
>>       at
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
>0
>>5)
>>       at
>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
>v
>>a:107)
>>       at
>>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148
>)
>>       at
>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>       at
>>org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proces
>s
>>Connection(Http11BaseProtocol.java:664)
>>       at
>>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j
>a
>>va:527)
>>       at
>>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower
>W
>>orkerThread.java:80)
>>       at
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
>a
>>va:684)
>>       at java.lang.Thread.run(Thread.java:595)
>>"
>>
>>Can anyone spot the problem?
>>
>>Thanks!
>>
>>Sincerely,
>>Henrik Pettersen
>>Advanced Computational Laboraty
>>Cancer Research UK
>
>


--
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

test.xhtml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xforms:repeat and an empty $current-repeat-index (previous "xforms:repeat")

Henrik Pettersen
All,

Fixed the problem. Somehow I was not using the latest/correct version
of orbeon presentation server. Reinitialized my application with
new/clean OPS container code, and problem disapeared.

Henrik

On 7/12/06, Ryan Puddephatt <[hidden email]> wrote:

> And my outlook code doesn't work any more....strange and annoying, but here
> is the attachment
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>
>
> >-----Original Message-----
> >From: Ryan Puddephatt [mailto:[hidden email]]
> >Sent: 12 July 2006 12:16
> >To: [hidden email]
> >Subject: RE: [ops-users] xforms:repeat and an empty $current-repeat-index
> >(previous "xforms:repeat")
> >
> >Henrik, I copied your code (attached) and used it in the Xforms Sandbox
> >(http://www.orbeon.com/ops/goto-example/xforms-sandbox), it works fine. The
> >error is definitely to do with a miss typed url. It is generated based on
> >the page-flow entries. I see you /users path-info there, but is you browser
> >definitely pointing to http://localhost:8080/my-web-app/users, or something
> >similar? If it is, try restarting you browser and server it could be a
> >caching problem
> >
> >Ryan
> >
> >Ryan Puddephatt
> >Software Engineer
> >TFX Group - IT UK
> >1 Michaelson Square
> >Livingston
> >West Lothian
> >Scotand
> >EH54 7DP
> >
> >* [hidden email]
> >( 01506 407 110
> >7  01506 407 108
> >
> >
> >>-----Original Message-----
> >>From: Henrik Pettersen [mailto:[hidden email]]
> >>Sent: 12 July 2006 12:03
> >>To: [hidden email]
> >>Subject: [ops-users] xforms:repeat and an empty $current-repeat-index
> >>(previous "xforms:repeat")
> >>
> >>All,
> >>
> >>I am reposting this problem in order to clarify my particular issue
> >>better. Apologies for any confusion.
> >>
> >>I am having problems with xforms:repeat, that I am unable to resolve.
> >>Any help/hints/tricks/insights would be greatly appreciated. Thank you
> >>to Ryan Puddephatt and Adrian Baker for getting me this far!
> >>
> >>Here is my view:
> >>
> >><xhtml:html xmlns=""
> >>           xmlns:xhtml="http://www.w3.org/1999/xhtml"
> >>           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >>           xmlns:f="http://orbeon.org/oxf/xml/formatting"
> >>           xmlns:aspic="http://www.cruk.com/aspic/editor/v1"
> >>           xmlns:xforms="http://www.w3.org/2002/xforms"
> >>           xmlns:xi="http://orbeon.org/oxf/xml/xinclude"
> >>           xmlns:ev="http://www.w3.org/2001/xml-events"
> >>           xmlns:xs="http://www.w3.org/2001/XMLSchema"
> >>           xmlns:test="http://test.org"
> >>           xsl:version="2.0">
> >> <xhtml:head>
> >>     <xhtml:meta http-equiv="Content-Type" content="text/html;
> >>charset=UTF-8" />
> >>     <xhtml:title> xhtml:list all users </xhtml:title>
> >>     <xforms:model>
> >>         <xforms:instance id="test">
> >>             <test:results>
> >>                 <test:users>
> >>                     <test:user>
> >>
> >><test:email>[hidden email]</test:email>
> >>                         <test:firstname>Henrik</test:firstname>
> >>                         <test:lastname>Pettersen</test:lastname>
> >>                         <test:username>admin</test:username>
> >>                         <test:id>0</test:id>
> >>                     </test:user>
> >>                     <test:user>
> >>                         <test:email>[hidden email]</test:email>
> >>                         <test:firstname>Henrik</test:firstname>
> >>                         <test:lastname>Pettersen</test:lastname>
> >>                         <test:username>henrikp</test:username>
> >>                         <test:id>1</test:id>
> >>                     </test:user>
> >>                 </test:users>
> >>                 <test:request-security>
> >>                     <test:secure>false</test:secure>
> >>                 </test:request-security>
> >>             </test:results>
> >>         </xforms:instance>
> >>     </xforms:model>
> >> </xhtml:head>
> >>
> >> <xhtml:body>
> >> ...
> >> <xforms:repeat nodeset="instance('test')/test:users/test:user">
> >>       <xhtml:td>username: <xforms:output ref="test:username"/></xhtml:td>
> >> </xforms:repeat>
> >> ...
> >> </xhtml:body>
> >></xhtml:html>
> >>
> >>
> >>
> >>Here is my error message:
> >>
> >>"The following error has occurred:
> >>Error Message
> >>An empty sequence is not allowed as the value of variable $current-repeat-
> >>index"
> >>
> >>And this is the stacktrace:
> >>
> >>"
> >>org.orbeon.oxf.common.ValidationException: Condition failed for every
> >>branch of choose: [ends-with( /request/request-path, '.css' ) or
> >>ends-with( /request/request-path, '.js' ), (/request/request-path
> >> = '/xforms-server-submit'), (/request/request-path = '/'),
> >>(/request/request-path = '/home'), (/request/request-path = '/login'),
> >>(/request/request-path = '/login-error'), (/request/request-path = '/
> >>users'), (/request/request-path =
> >>'/config/theme/orbeon-layout.cssd')]: Condition failed for every
> >>branch of choose: [ends-with( /request/request-path, '.css' ) or
> >>ends-with( /request/request-path, '.
> >>js' ), (/request/request-path = '/xforms-server-submit'),
> >>(/request/request-path = '/'), (/request/request-path = '/home'),
> >>(/request/request-path = '/login'), (/request/request-path =
> >>'/login-error')
> >>, (/request/request-path = '/users'), (/request/request-path =
> >>'/config/theme/orbeon-layout.cssd')]
> >>       at
> >>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(Con
> >c
> >>reteChooseProcessor.java:212)
> >>       at
> >>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.getKeyI
> >m
> >>pl(ConcreteChooseProcessor.java:129)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(Processo
> >r
> >>Impl.java:1181)
> >>       at
> >>org.orbeon.oxf.processor.pipeline.TeeProcessor$1.getKeyImpl(TeeProcessor.j
> >a
> >>va:79)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl$6.getKey(ProcessorImpl.java:991)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.getKey(Processo
> >r
> >>Impl.java:1181)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl.getInputKey(ProcessorImpl.java:1191
> >)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl.getInputKeyValidity(ProcessorImpl.j
> >a
> >>va:1222)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImp
> >l
> >>.java:456)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsDOM4J(ProcessorImpl
> >.
> >>java:426)
> >>       at
> >>org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(Con
> >c
> >>reteChooseProcessor.java:185)
> >>       at
> >>org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcess
> >o
> >>r.java:652)
> >>       at
> >>org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:
> >5
> >>15)
> >>       at
> >>org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcesso
> >r
> >>.java:649)
> >>       at
> >>org.orbeon.oxf.processor.PageFlowControllerProcessor.start(PageFlowControl
> >l
> >>erProcessor.java:416)
> >>       at
> >org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:86)
> >>       at
> >>org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:95)
> >>       at
> >>org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:
> >1
> >>44)
> >>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>       at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:74)
> >>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>       at
> >>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> >o
> >>nFilterChain.java:252)
> >>       at
> >>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> >C
> >>hain.java:173)
> >>       at
> >>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> >j
> >>ava:213)
> >>       at
> >>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> >j
> >>ava:178)
> >>       at
> >>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBa
> >s
> >>e.java:432)
> >>       at
> >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> >2
> >>6)
> >>       at
> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> >0
> >>5)
> >>       at
> >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> >v
> >>a:107)
> >>       at
> >>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148
> >)
> >>       at
> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> >>       at
> >>org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proces
> >s
> >>Connection(Http11BaseProtocol.java:664)
> >>       at
> >>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j
> >a
> >>va:527)
> >>       at
> >>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower
> >W
> >>orkerThread.java:80)
> >>       at
> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
> >a
> >>va:684)
> >>       at java.lang.Thread.run(Thread.java:595)
> >>"
> >>
> >>Can anyone spot the problem?
> >>
> >>Thanks!
> >>
> >>Sincerely,
> >>Henrik Pettersen
> >>Advanced Computational Laboraty
> >>Cancer Research UK
> >
> >
>
>
>
>
> --
> 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