• Tutorial
    • AWS
    • Oracle
    • WordPress
    • Azure DevOps
  • About me
Tutorial
    AWS
    Oracle
    Wordpress
    Azure DevOps
About me
cedricleruth - It's still magic even if you know how it's done
  • Tutorial
    • AWS
    • Oracle
    • WordPress
    • Azure DevOps
  • About me

java.lang.IllegalStateException: Cannot forward a response that is already committed on a JSF action with sendRedirect/forward in ADF

This kind of java.lang.IllegalStateException exception are triggered when some Java code is executed after a forward(), sendRedirect() or sendError().
You can refer to this StackOverflow thread to learn more about how to avoid this in Java: here

I’ve encountered this error in ADF a couple of time when you use a forward(), sendRedirect() or sendError() in a JSF action even if you do add the return; as ADF execute its own java code at the end of an action.

To avoid this you have to keep the business logic inside the action handler and move the forward(), sendRedirect() or sendError() inside the ActionEventListener operation.

Example :

Want to be notified when there is more?

Get in touch:

Categories

  • AWS EC2
  • AWS Lambda
  • AWS S3
  • AWS Tutorials
  • Azure DevOps
  • Highlight
  • IT Architecture
  • Oracle ADF
  • Oracle Database
  • Oracle SOA Suite
  • Oracle Tutorials
  • Route53
  • Tutorials
  • Weblogic
  • Wordpress Tutorials

Read more about:

ADF Apache AWS Bean binding bpel Certificate cli cloud convert Database Deployment EC2 ERROR Exception file First Value GIT HTTPS Icons IllegalStateException iterator Java Jdevelopper lambda Oracle Oracle ADF Performance php programmatically RichTable route53 row S3 script sendRedirectforward soa sql SSL table View Criteria View Object VO weblogic WordPress