Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / December 2004

Tip: Looking for answers? Try searching our database.

Cannot forward a response that is already committed

Thread view: 
Mow - 01 Dec 2004 20:27 GMT
Hi All,

I'm receiving the following problem.
I receive it when calling a specific JSP in my framework.

Any ideas?
Thanks, Mo

-------------------------------------------------------------------------
java.lang.IllegalStateException: Cannot forward a response that is already committed
       at weblogic.servlet.internal.RequestDispatcherImpl.forward
       (RequestDispatcherImpl.java:132)
-------------------------------------------------------------------------
Juha Laiho - 02 Dec 2004 15:54 GMT
moweis@gmail.com (Mow) said:
>I'm receiving the following problem.
>I receive it when calling a specific JSP in my framework.
[quoted text clipped - 5 lines]
>        (RequestDispatcherImpl.java:132)
>-------------------------------------------------------------------------

forwarding is intended to be used in situations, where the forward target
will generate all output destined to the browser - so, no browser output
may be generated before calling forward(). Or, more accurately, small
amount of output may be generated, but not committed. If too much (server-
and perhaps configuration-dependent limit) output is generated, the server
will commit output to the browser by itself. If there is uncommitted
(buffered) output data at the time of the forward() call, the data will
be flushed (so, will not end up to the browser).

So, whatever is forwarding the request is apparently writing (too much)
data to the browser before calling forward().
Signature

Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
        PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)

Mow - 02 Dec 2004 19:00 GMT
Thanks for your reply.

What do you mean by writing to much data to the browser?
What server side actions would be considered as such?

Marwan

> moweis@gmail.com (Mow) said:
> >I'm receiving the following problem.
[quoted text clipped - 18 lines]
> So, whatever is forwarding the request is apparently writing (too much)
> data to the browser before calling forward().


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.