Redirect processor IllegalStateException

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

Redirect processor IllegalStateException

daniele.stroppa
Redirect processor IllegalStateException

Hi All,

I'm having some troubles redirecting my first page to another one. In my page flow I have this

<page id="home" path-info="/" default-submission="grp-submission.xml" >
        <action action="grp-get-configuration.xpl">
                <result page="grp-view-report"  transform="oxf:xslt">
                        <model xmlns="" xsl:version="2.0">
                                <xsl:copy-of select="doc('input:instance')/model/*"/>
                        </model>
                </result>
        </action>
</page>

When I try to access the portlet I get this IllegalStateException

java.lang.IllegalStateException 
Exception Class java.lang.IllegalStateException

org.orbeon.oxf.portlet.PortletExternalContext$DirectResponseTemp sendRedirect PortletExternalContext.java 561
org.orbeon.oxf.processor.RedirectProcessor start RedirectProcessor.java 68
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 652
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 515
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 649
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 getInput PipelineProcessor.java 140
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 getKeyImpl PipelineProcessor.java 109
org.orbeon.oxf.processor.ProcessorImpl$6 getKey ProcessorImpl.java 991
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl getKey ProcessorImpl.java 1181
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1 getKeyImpl ConcreteChooseProcessor.java
 
If I maximize the portlet the error goes away and everything works just fine. I've tried using the instance-passing="redirect" attribute for the result tag, but still got the same error.

Any suggestion?

thanks

Daniele Stroppa
Graduate Software Engineer - Information Solutions Consultancy
Intelligent Transport Systems
Atkins Highways and Transportation

Woodcote Grove, Ashley Road, Espom, Surrey, KT18 5BW
Tel: +44 (0)1372 756726
Mob: +44 (0)7981 670012
E-mail: [hidden email]
www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.



--
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: Redirect processor IllegalStateException

Erik Bruchez
Administrator
Daniele,

This is meant to happen when the portlet does not return any content,
i.e. didn't do either a redirection or wrote out some text. I am not
sure why this happens in your case though.

-Erik

Stroppa, Daniele wrote:

> Hi All,
>
> I'm having some troubles redirecting my first page to another one. In my
> page flow I have this
>
> <page id="home" path-info="/" default-submission="grp-submission.xml" >
>         <action action="grp-get-configuration.xpl">
>                 <result page="grp-view-report"  transform="oxf:xslt">
>                         <model xmlns="" xsl:version="2.0">
>                                 <xsl:copy-of
> select="doc('input:instance')/model/*"/>
>                         </model>
>                 </result>
>         </action>
> </page>
>
> When I try to access the portlet I get this IllegalStateException
>
> java.lang.IllegalStateException
> Exception Class java.lang.IllegalStateException
>
> org.orbeon.oxf.portlet.PortletExternalContext$DirectResponseTemp
> sendRedirect PortletExternalContext.java 561
> org.orbeon.oxf.processor.RedirectProcessor start RedirectProcessor.java 68
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
> PipelineProcessor.java 652
> org.orbeon.oxf.processor.ProcessorImpl executeChildren
> ProcessorImpl.java 515
> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
> PipelineProcessor.java 649
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 getInput
> PipelineProcessor.java 140
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 getKeyImpl
> PipelineProcessor.java 109
> org.orbeon.oxf.processor.ProcessorImpl$6 getKey ProcessorImpl.java 991
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl getKey
> ProcessorImpl.java 1181
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
> getKeyImpl ConcreteChooseProcessor.java
>  
> If I maximize the portlet the error goes away and everything works just
> fine. I've tried using the instance-passing="redirect" attribute for the
> result tag, but still got the same error.
>
> Any suggestion?
>
> thanks
>
> *Daniele Stroppa*
> Graduate Software Engineer - Information Solutions Consultancy
> Intelligent Transport Systems
> *Atkins Highways and Transportation*
>
> Woodcote Grove, Ashley Road, Espom, Surrey, KT18 5BW
> Tel: +44 (0)1372 756726
> Mob: +44 (0)7981 670012
> E-mail: [hidden email]
> _www.atkinsglobal.com/its_ <file://www.atkinsglobal.com/its>
>
>
>
> *This email and any attached files are confidential and copyright
> protected. If you are not the addressee, any dissemination of this
> communication is strictly prohibited. Unless otherwise expressly agreed
> in writing, nothing stated in this communication shall be legally
> binding.* <http://www.blackspider.com/>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



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