Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.IllegalStateException: Response already committed

874483Jan 12 2012 — edited Jan 13 2012
Hi all,
I am using fileDownLoadActionListener for export purpose.
The data is exported to excel from the view object using poi.
Its working perfectly whent the number of records are less.
When number of records exceeds(nearly 10,000 records)
the I get the following error.
java.lang.IllegalStateException: Response already committed
	at weblogic.servlet.internal.ServletOutputStreamImpl.clearBuffer(ServletOutputStreamImpl.java:339)
	at weblogic.servlet.internal.ServletOutputStreamImpl.reset(ServletOutputStreamImpl.java:292)
	at weblogic.servlet.internal.ServletResponseImpl.reset(ServletResponseImpl.java:330)
	at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:193)
	at org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener.processAction(FileDownloadActionListener.java:127)
	Truncated. see log file for complete stacktrace
>
<Jan 12, 2012 11:06:17 AM GMT> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Jan 12, 2012 11:06:17 AM GMT. Notification details: 
WatchRuleType: Log 
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802')) 
WatchData: DATE = Jan 12, 2012 11:06:17 AM GMT SERVER = DefaultServer MESSAGE = [ServletContext@5590030[app:UserAccessRights module:UserAccessRights-UserRights-context-root path:/UserAccessRights-UserRights-context-root spec-version:2.5]] Servlet failed with Exception
java.lang.IllegalStateException: Response already committed
	at weblogic.servlet.internal.ServletOutputStreamImpl.clearBuffer(ServletOutputStreamImpl.java:339)
	at weblogic.servlet.internal.ServletOutputStreamImpl.reset(ServletOutputStreamImpl.java:292)
	at weblogic.servlet.internal.ServletResponseImpl.reset(ServletResponseImpl.java:330)
	at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:193)
	at org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener.processAction(FileDownloadActionListener.java:127)
	at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
	at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:671)
	at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
	at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
	at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
	at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
	at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
	at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
	at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
	at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
	at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
	at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
	at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
	at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
Please help..
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2012
Added on Jan 12 2012
3 comments
3,005 views