You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by karthi <ra...@snovabits.net> on 2012/05/03 11:29:56 UTC
Cookies: Invalid cookie. Value not a token or quoted value
Hi,
I have developed an application in tapestry and yesterday that
application went to live where I have faced a problem in tapestry cookies.
I have used the cookies to store the user related informations
import org.apache.tapestry5.services.Cookies;
@Inject
private Cookies cookies;
cookies.writeCookieValue("isUserLogin", "True", -1);
The above is what i am coding to store the datas.
When I looked in my log file I have seen the below lines:
*[2012-05-03 09:24:16.029] Cookies: Invalid cookie. Value not a token or
quoted value*
this displays continuously, however my UI works good but this line is
getting continuously logged in the log file, what is wrong here?
Environment is:
Server - virgo-tomcat-server-3.0.2
Tapestry version is - 5.3.1
Logger - org.apache.log4j.Logger, Version - log4j-1.2.15
Thanks in advance,
Karthi.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by mcamilleri <ca...@gmail.com>.
Did you ever get this fixed karthi? I'm having a similar problem.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5715398.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by karthi <ra...@snovabits.net>.
Okay... Thank you so much for your patience and worthy replies...
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708915.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by Lance Java <la...@googlemail.com>.
I think it might be a problem with "Ids=10025033/10025032"
Take a look http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html
here for "org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR"
and "org.apache.catalina.STRICT_SERVLET_COMPLIANCE"
Any further questions, I think you're best to ask on the Tomcat users list
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708913.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by karthi <ra...@snovabits.net>.
I just copied and pasted it from firebox browser show cookies section where
it displays name, value etc.,
The following is taken from request headers using firebug
isUserLogin=True; userId=2058; smsAvail=30; position=2;
Ids=10025033/10025032
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708888.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by Lance Java <la...@googlemail.com>.
> and the other cookies are
> Cfp 1
> JEB2 4FB0E5C76E651
> i00 75474fb0eb0ee
Cookies should be of the form "key2=value1; key2=value2". How are you
writing these cookies?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708873.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by karthi <ra...@snovabits.net>.
> Have you given me the entire cookie value? This does not include the
"isUserLogin" value you were initially talking about
"isUserLogin" is get written in cookies, when user logged in, I have given
you the another module cookie value
and the other cookies are
Cfp 1
JEB2 4FB0E5C76E651
i00 75474fb0eb0ee
>Tomcat is logging these messages under
"org.apache.tomcat.util.http.Cookies" so you could turn off that logging in
tomcat
Thank you again for your help.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708863.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by Lance Java <la...@googlemail.com>.
> Thank you for your reply...
No problem
> This is what I have in my request headers (Taken using firebug)
> Cookie BigIP_Colcms=271399690.0.0000
Have you given me the entire cookie value? This does not include the
"isUserLogin" value you were initially talking about.
> Is there any way to avoid this log being written in the log file?
This sounds like sweeping under the carpet to me. Tomcat is logging these
messages under "org.apache.tomcat.util.http.Cookies" so you could turn off
that logging in tomcat. This sounds like it is not a Tapestry related
question so probably best to ask on the Tomcat users list.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708832.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by karthi <ra...@snovabits.net>.
Thank you for your reply...
This is what I have in my request headers (Taken using firebug)
Cookie BigIP_Colcms=271399690.0.0000
Is there any way to avoid this log being written in the log file?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708821.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by Lance Java <la...@googlemail.com>.
This error is being logged by Tomcat, not Tapestry
(http://www.docjar.com/html/api/org/apache/tomcat/util/http/Cookies.java.html).
Can you inspect the HTTP headers (using firebug etc) and see what the value
of the entire cookie is?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708776.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Cookies: Invalid cookie. Value not a token or quoted value
Posted by karthi <ra...@snovabits.net>.
Anyone?
Is this needs any server side settings changes or any tapestry changes?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Cookies-Invalid-cookie-Value-not-a-token-or-quoted-value-tp5682745p5708759.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org