File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes IllegalStateException 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.j Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "IllegalStateException 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.j" Watch "IllegalStateException 	at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.j" New topic
Author

IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.j

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 205

Hello!

I have commandLink within the form:

When i click it simple method is executed:

This method leads to below exception:

I know that this method causes exception because phaselistener shows that invoke_application phase ended before exception and does not show that render_response phase started.

Thank you for any ideas!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14571
    
    7

Normally, I'd say that it's because you have ".xhtml" in your navigation string. But I think you previously said you are set up to accept ".xhtml" as a JSF URL extension. I still have misgivings about that, however.

Most likely your problem is because you are attempting to parameterise the navigation URL. You cannot do that. Action methods can only return simple navigation IDs or URLs without parameters.

A better approach would be to inject the backing bean for topicPage into the action method's backing bean as a managed property and use its "setTopicId" method to inject the topic directly into the target backing bean.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.j
 
Similar Threads
First Struts2 Hibernate3 app.
Glassfish v3 - ARH!
MessagingException: IOException while sending message
Netbeans 6.8M1 and JAX-RS using Jersey problems
Glassfish EAR deployment error