ehcache

net.sf.ehcache.constructs.web
Class AlreadyCommittedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.ehcache.CacheException
                  extended by net.sf.ehcache.constructs.web.ResponseHeadersNotModifiableException
                      extended by net.sf.ehcache.constructs.web.AlreadyCommittedException
All Implemented Interfaces:
java.io.Serializable

public class AlreadyCommittedException
extends ResponseHeadersNotModifiableException

This exception is thrown if, in particular, the ServletResponse.isCommitted() method shows the response has been committed. A commited response has already had its status code and headers written.

One situation that can cause this problem is using jsp:include to include a full, cached page in another page. When the JSP page is entered the response gets committed.

Version:
$Id: AlreadyCommittedException.java 519 2007-07-27 07:11:45Z gregluck $
Author:
Greg Luck
See Also:
ResponseHeadersNotModifiableException, Serialized Form

Constructor Summary
AlreadyCommittedException()
          Constructor for the exception
AlreadyCommittedException(java.lang.String message)
          Constructs an exception with the message given
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlreadyCommittedException

public AlreadyCommittedException()
Constructor for the exception


AlreadyCommittedException

public AlreadyCommittedException(java.lang.String message)
Constructs an exception with the message given

Parameters:
message - the message

ehcache