Archived:Panic in S60 3rd Edition FP1 devices if the Set-Cookie header is empty (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
S60 3rd Edition FP1
Created: User:Technical writer 1 (04 Jul 2007)
Last edited: hamishwillee (25 Jul 2013)


On Nokia S60 3rd Edition FP1 phones and emulator, the USER 44 or USER 45 panic is thrown while connecting to a remote server. The error is based on low-level parsing of the response which is caused by an empty Set-Cookie property in the header. If the header is removed or set to a non-empty string, no panic is raised and the application works fine.

How to reproduce

Build a dummy servlet with the Set-Cookie header set to an empty string:

protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
String test="Testing...";
int length = test.getBytes().length;
response.setHeader("Set-Cookie", "");
PrintWriter out = response.getWriter();


Do not leave the Set-Cookie header empty.

Set-Cookie: \r\n -- crash
Set-Cookie: foo\r\n -- no crash
Set-Cookie: foo=bar\r\n -- no crash
This page was last modified on 25 July 2013, at 12:33.
51 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.