Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:45, 29 August 2007.

KIJ000700 - Panic in Nokia S60 3rd Edition, FP1 devices if the Set-Cookie header is empty

From Forum Nokia Wiki

Panic in Nokia S60 3rd Edition, FP1 devices if the Set-Cookie header is empty KIJ000700
Overview -
Category Java
Subcategory Networking
Reported against S60 3rd Edition, FP1
Date identified July 4, 2007
Symptoms -
Detailed description 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...";
       response.setContentType(content_type);
       int length = test.getBytes().length;
       response.setContentLength(length);
       response.setHeader("Set-Cookie", "");
       PrintWriter out = response.getWriter();
       out.println(test);
       out.close();
  }
Solution 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
Related Discussions
Thread Thread Starter Forum Replies Last Post
is it possible to to install self signed java midlet in S60 3rd fp1 emulator ravibabu Mobile Java General 0 2008-01-03 12:16
How to connect the emulator with BT usb Hlali Bluetooth Technology 2 2007-02-10 08:53
How to send SIP PUBLISH message in S60 3rd edition murkyl Symbian Networking & Messaging 5 2007-08-29 10:29
reading from data cable asif_mi3 Mobile Java General 15 2008-01-16 22:46
Trying to Get HTTP Header kiranpuranik General Symbian C++ 3 2007-11-01 18:08
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX