List Info

Thread: illegal state




illegal state
user name
2006-11-22 15:00:20
Version 5.5.20

I have attached a part of the log of Tomcat and the JSP
code, I hope that helps

To further explain the situation, I enter a comment, that
comment is
entered in the db, but in my browser an Apache Error Report
page is
show with the error "Cannot forward after response has
been committed"



On 11/22/06, David Czarnecki <davidblojsom.com> wrote:
> What version of Tomcat 5.5?
>
> I just tried locally and didn't see that error. I get:
>
> Nov 22 09:42:54 DEBUG [http-8080-Processor25]
core.ApplicationDispatcher -
> Disabling the response for futher output
> Nov 22 09:42:54 DEBUG [http-8080-Processor25]
jsp.JSPDispatcher - Dispatched
> to flavor template for user:
/WEB-INF//blogs/default/templates/foo.jsp
>
> But, that really was just a simple JSP that prints out
Foo bar!
>
> I had tried under 5.5.12 and 5.5.20.
>
>
> On 11/22/06 7:28 AM, "Steven Hulshof"
<chamaciegmail.com> wrote:
>
> > hello,
> >
> > I using blojsom 3.0 and tomcat 5.5.
> > I created some JSP templates to test and play
around with Blojsom.
> > However, when i entered a comment Tomcat gives me
this error.
> >
> > java.lang.IllegalStateException: Cannot forward
after response has
> > been committed
> >
org.blojsom.dispatcher.jsp.JSPDispatcher.dispatch(JSPDispatc
her.java:181)
> >
org.blojsom.servlet.BlojsomServlet.service(BlojsomServlet.ja
va:364)
> >
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
org.blojsom.filter.PermalinkFilter.doFilter(PermalinkFilter.
java:207)
> >
org.blojsom.filter.SkipEntriesFilter.doFilter(SkipEntriesFil
ter.java:103)
> >
org.blojsom.filter.PageFilter.doFilter(PageFilter.java:167)
> >
org.blojsom.filter.FeedFilter.doFilter(FeedFilter.java:198)
> >
> > does anyone know what is going on?
> >
> > Steven
> >
> >
------------------------------------------------------------
-------------
> > Take Surveys. Earn Cash. Influence the Future of
IT
> > Join SourceForge.net's Techsay panel and you'll
get the chance to share your
> > opinions on IT & business topics through brief
surveys - and earn cash
> > http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Blojsom-users mailing list
> > Blojsom-userslists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>
> --
> David Czarnecki
>
> http://www.blojsom.com/b
log/ | http://blojsom.sf.net
>
>
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys - and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>
		<form id="commentform"
method="post" action="$">
			<div><input type="hidden"
name="comment" value="y" />
<input
				type="hidden" name="entry_id"
value="${entry.id}" /> <input
				type="hidden" name="permalink"
value="${entry.postSlug}" /> <input
				type="hidden" name="redirect_to"
value="$" /></div>
			<div class="label"><label
for="author">Author (<span
class="red">*</span>):</label></
div>

			<div class="input"><input
id="author" name="author"
type="text"
				value="$" class="fixed"
/></div>

			<div class="label"><label
for="authorEmail">E-mail:</label></div
>
			<div class="input"><input
id="authorEmail" name="authorEmail"
				type="text"
				value="$"
				class="fixed" /><span>(not
displayed)</span></div>

			<div class="label"><label
for="authorURL">URL:</label></div>
			<div class="input"><input
id="authorURL" name="authorURL"
type="text"
				value="$"
				class="fixed" /></div>

			<div class="label"><label
for="commentText">Comment (<span
				class="red">*</span>):</label>&
lt;/div>
			<div class="input"><textarea
name="commentText" id="commentText"
				rows="7" cols="55"
onkeyup="reloadPreviewDiv();"
class="fixed"></textarea></div>

			<div
class="label">&nbsp;</div>
			<div class="input"><label
for="remember"><input
id="remember"
				name="remember" type="checkbox"
				checked="$"  />
			Remember me?</label></div>

			<div class="clear"></div>

			<div
class="label">&nbsp;</div>
			<div class="input"><input
type="submit" name="submit"
value="Comment"
				class="button" /><input
type="reset" name="reset"
value="Reset"
				class="button" /></div>

			<div class="clear"></div>

			<div
class="label">&nbsp;</div>
			<div class="input">
			<h4>Live Comment Preview:</h4>
			<div
id="commentPreview">&nbsp;</div>
			</div>
			</form>nov 22 14:46:58 DEBUG
[http-8080-Processor24] filter.FeedFilter - Handling feed
filter request:
/FutureMirror/uncategorized/2006/19/21/title-2
nov 22 14:46:58 DEBUG [http-8080-Processor24]
filter.PageFilter - Handling page filter request:
/FutureMirror/uncategorized/2006/19/21/title-2
nov 22 14:46:58 DEBUG [http-8080-Processor24]
filter.SkipEntriesFilter - Handling skip entries request:
/FutureMirror/uncategorized/2006/19/21/title-2
nov 22 14:46:58 DEBUG [http-8080-Processor24]
filter.PermalinkFilter - Handling YYYY/MM/DD/permalink
request: /FutureMirror/uncategorized/
nov 22 14:46:58 ERROR [http-8080-Processor24]
servlet.BlojsomServlet -
org.blojsom.fetcher.FetcherException: Blog id: FutureMirror
not found
nov 22 14:46:59 DEBUG [http-8080-Processor24]
database.DatabaseFetcher - blojsom path info:
/FutureMirror/uncategorized/
nov 22 14:46:59 DEBUG [http-8080-Processor24]
database.DatabaseFetcher - User requested category:
/FutureMirror/uncategorized/
nov 22 14:46:59 DEBUG [http-8080-Processor24]
database.DatabaseFetcher - Permalink request for: title-2
nov 22 14:46:59 DEBUG [http-8080-Processor24]
database.DatabaseFetcher - Total entries after permalink: 0
nov 22 14:46:59 DEBUG [http-8080-Processor24]
database.DatabaseFetcher - Total entries before permalink:
1
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.meta.MetaPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.technorati.TagCloudPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.date.DateFormatPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
date.DateFormatPlugin - Timezone ID: America/New_York
nov 22 14:46:59 DEBUG [http-8080-Processor24]
date.DateFormatPlugin - Date format pattern: EEEE, d MMMM
yyyy
nov 22 14:46:59 ERROR [http-8080-Processor24]
servlet.BlojsomServlet - Plugin not available: referer-log
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.calendar.VelocityCalendarPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.calendar.CalendarFilterPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.comment.CommentPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
comment.CommentPlugin - Loaded entry for comment: 2
nov 22 14:46:59 DEBUG [http-8080-Processor24]
moderation.IPAddressModerationPlugin - IP address whitelist
not populated
nov 22 14:46:59 DEBUG [http-8080-Processor24]
moderation.IPAddressModerationPlugin - IP address blacklist
not populated
nov 22 14:46:59 DEBUG [http-8080-Processor24]
filter.XSSFilterPlugin - Processing comment response
submission event
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.trackback.TrackbackPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.search.SimpleSearchPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.emoticons.EnhancedEmoticonsPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.macro.MacroExpansionPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.statistics.DaysSincePostedPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.statistics.WordCountPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.obfuscation.SimpleObfuscationPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.nofollow.NoFollowPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.common.RSSEnclosurePlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - blojsom plugin execution:
org.blojsom.plugin.technorati.TechnoratiTagsPlugin
nov 22 14:46:59 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet - Adding last-modified header for
most recent entry comment
nov 22 14:46:59 DEBUG [http-8080-Processor24]
core.ApplicationDispatcher -
servletPath=/WEB-INF//blogs/default/templates/FutureMirror/j
sp_template.jsp, pathInfo=null, queryString=null, name=null
nov 22 14:46:59 DEBUG [http-8080-Processor24]
core.ApplicationDispatcher -   Forward on committed response
--> ISE
nov 22 14:46:59 ERROR [http-8080-Processor24]
[/blojsom].[blojsom] - Servlet.service() for servlet blojsom
threw exception
java.lang.IllegalStateException: Cannot forward after
response has been committed
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(App
licationDispatcher.java:313)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(Appli
cationDispatcher.java:301)
	at
org.blojsom.dispatcher.jsp.JSPDispatcher.dispatch(JSPDispatc
her.java:181)
	at
org.blojsom.servlet.BlojsomServlet.service(BlojsomServlet.ja
va:364)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:173)
	at
org.blojsom.filter.PermalinkFilter.doFilter(PermalinkFilter.
java:207)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:173)
	at
org.blojsom.filter.SkipEntriesFilter.doFilter(SkipEntriesFil
ter.java:103)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:173)
	at
org.blojsom.filter.PageFilter.doFilter(PageFilter.java:167)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:173)
	at
org.blojsom.filter.FeedFilter.doFilter(FeedFilter.java:198)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar
dWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(Standar
dContextValve.java:178)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo
stValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
rtValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(Standard
EngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
apter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Proce
ssor.java:869)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11Connection
Handler.processConnection(Http11BaseProtocol.java:664)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo
lTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru
n(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown
Source)-----------------------------------------------------
--------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.php?page=join
.php&p=sourceforge&CID=DEVDEV_______________________
________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
illegal state
user name
2006-11-22 18:45:53
FYI for others ... Verified a fix with Steven earlier. The
fix will be in
blojsom 3.1

On 11/22/06 10:00 AM, "Steven Hulshof"
<chamaciegmail.com> wrote:

> Version 5.5.20
> 
> I have attached a part of the log of Tomcat and the JSP
code, I hope that
> helps
> 
> To further explain the situation, I enter a comment,
that comment is
> entered in the db, but in my browser an Apache Error
Report page is
> show with the error "Cannot forward after response
has been committed"
> 
> 
> 
> On 11/22/06, David Czarnecki <davidblojsom.com> wrote:
>> What version of Tomcat 5.5?
>> 
>> I just tried locally and didn't see that error. I
get:
>> 
>> Nov 22 09:42:54 DEBUG [http-8080-Processor25]
core.ApplicationDispatcher -
>> Disabling the response for futher output
>> Nov 22 09:42:54 DEBUG [http-8080-Processor25]
jsp.JSPDispatcher - Dispatched
>> to flavor template for user:
/WEB-INF//blogs/default/templates/foo.jsp
>> 
>> But, that really was just a simple JSP that prints
out Foo bar!
>> 
>> I had tried under 5.5.12 and 5.5.20.
>> 
>> 
>> On 11/22/06 7:28 AM, "Steven Hulshof"
<chamaciegmail.com> wrote:
>> 
>>> hello,
>>> 
>>> I using blojsom 3.0 and tomcat 5.5.
>>> I created some JSP templates to test and play
around with Blojsom.
>>> However, when i entered a comment Tomcat gives
me this error.
>>> 
>>> java.lang.IllegalStateException: Cannot forward
after response has
>>> been committed
>>>
org.blojsom.dispatcher.jsp.JSPDispatcher.dispatch(JSPDispatc
her.java:181)
>>>
org.blojsom.servlet.BlojsomServlet.service(BlojsomServlet.ja
va:364)
>>>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>
org.blojsom.filter.PermalinkFilter.doFilter(PermalinkFilter.
java:207)
>>>
org.blojsom.filter.SkipEntriesFilter.doFilter(SkipEntriesFil
ter.java:103)
>>>
org.blojsom.filter.PageFilter.doFilter(PageFilter.java:167)
>>>
org.blojsom.filter.FeedFilter.doFilter(FeedFilter.java:198)
>>> 
>>> does anyone know what is going on?
>>> 
>>> Steven
>>> 
>>>
------------------------------------------------------------
-------------
>>> Take Surveys. Earn Cash. Influence the Future
of IT
>>> Join SourceForge.net's Techsay panel and you'll
get the chance to share your
>>> opinions on IT & business topics through
brief surveys - and earn cash
>>> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Blojsom-users mailing list
>>> Blojsom-userslists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>> 
>> --
>> David Czarnecki
>> 
>> http://www.blojsom.com/b
log/ | http://blojsom.sf.net
>> 
>> 
>> 
>>
------------------------------------------------------------
-------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get
the chance to share your
>> opinions on IT & business topics through brief
surveys - and earn cash
>> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Blojsom-users mailing list
>> Blojsom-userslists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>> 
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys - and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

-- 
David Czarnecki

http://www.blojsom.com/b
log/ | http://blojsom.sf.net



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )