Skip to main content

User 44 / 45 exception in Nokia S60 3rd Ed FP1 while connecting to a server

5 replies [Last post]
Anonymous

Hi all,
on Nokia S60 3rd Ed FP1 phones and emulator, I have a USER 44 or USER 45
exception while connecting to a remote server.

It seems to be an error in the low-level parsing of the response...
caused by an empty Set-Cookie: property in the header of the response,
if the property is removed or set to a non empty string (e.g.
Set-Cookie: foo) no exception is raised and the application works fine.

It happens with my code and with the http demo included in wtk 2.5 as
soon as the server response is received

Is this a known issue?

thanks

--
Francesco Mapelli mapelli@funambol.com

funambol :: mobile open source :: http://www.funambol.com

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Daniel Rocha

Hey Fernando,

Would you have a test midlet for this issue?

Daniel

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext Daniel Rocha
Sent: Tuesday, June 12, 2007 3:35 PM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
connecting to a server

That must be a platform problem here (at least lack of extra error
checking). I will report it back to the S60 team.

Daniel

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
Sent: Tuesday, June 12, 2007 5:50 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
connecting to a server

Hi Daniel, thanks for your reply.

The server returns HTTP/1.1 200 OK ...

we tried using a dummy server, giving the same response except for the
"Set-Cookie:" property and it crashes only when Set-Cookie is set to an
empty string.

afaik this Set-Cookie usage is not strictly standard-compliant, but
crashing the app for a non standard reply it's a bit tough...

f

Daniel Rocha ha scritto:
> Is your server returning "HTTP1.1/200" instead of "HTTP1.1/200 OK" by

> any chance?
>
> Daniel
>
> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
> Sent: Monday, June 11, 2007 6:12 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
> connecting to a server
>
> Hi all,
> on Nokia S60 3rd Ed FP1 phones and emulator, I have a USER 44 or USER
> 45 exception while connecting to a remote server.
>
> It seems to be an error in the low-level parsing of the response...
> caused by an empty Set-Cookie: property in the header of the
response...
>

--
Francesco Mapelli mapelli@funambol.com

funambol :: mobile open source :: http://www.funambol.com

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

francesco mapelli

Hi Daniel,

the issue can be reproduced using the http demo in wtk 2.5 and a server
with the "set-cookie" property se to an empty string.

you can build a dummy servlet with something like this:

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();
}

bye

francesco

Daniel Rocha ha scritto:
> Hey Fernando,
>
> Would you have a test midlet for this issue?
>
> Daniel
>
> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext Daniel Rocha
> Sent: Tuesday, June 12, 2007 3:35 PM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
> connecting to a server
>
> That must be a platform problem here (at least lack of extra error
> checking). I will report it back to the S60 team.
>
> Daniel
>
> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
> Sent: Tuesday, June 12, 2007 5:50 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: Re: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
> connecting to a server
>
> Hi Daniel, thanks for your reply.
>
> The server returns HTTP/1.1 200 OK ...
>
> we tried using a dummy server, giving the same response except for the
> "Set-Cookie:" property and it crashes only when Set-Cookie is set to an
> empty string.
>
> afaik this Set-Cookie usage is not strictly standard-compliant, but
> crashing the app for a non standard reply it's a bit tough...
>
> f
>
> Daniel Rocha ha scritto:
>
>> Is your server returning "HTTP1.1/200" instead of "HTTP1.1/200 OK" by
>>
>
>
>> any chance?
>>
>> Daniel
>>
>> -----Original Message-----
>> From: A mailing list for KVM discussion
>> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
>> Sent: Monday, June 11, 2007 6:12 AM
>> To: KVM-INTEREST@JAVA.SUN.COM
>> Subject: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
>> connecting to a server
>>
>> Hi all,
>> on Nokia S60 3rd Ed FP1 phones and emulator, I have a USER 44 or USER
>> 45 exception while connecting to a remote server.
>>
>> It seems to be an error in the low-level parsing of the response...
>> caused by an empty Set-Cookie: property in the header of the
>>
> response...
>
>
> --
> Francesco Mapelli mapelli@funambol.com
>
> funambol :: mobile open source :: http://www.funambol.com
>
> ========================================================================
> ===
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".
>
> ========================================================================
> ===
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

--
Francesco Mapelli mapelli@funambol.com

funambol :: mobile open source :: http://www.funambol.com

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Daniel Rocha

That must be a platform problem here (at least lack of extra error
checking). I will report it back to the S60 team.

Daniel

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
Sent: Tuesday, June 12, 2007 5:50 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
connecting to a server

Hi Daniel, thanks for your reply.

The server returns HTTP/1.1 200 OK ...

we tried using a dummy server, giving the same response except for the
"Set-Cookie:" property and it crashes only when Set-Cookie is set to an
empty string.

afaik this Set-Cookie usage is not strictly standard-compliant, but
crashing the app for a non standard reply it's a bit tough...

f

Daniel Rocha ha scritto:
> Is your server returning "HTTP1.1/200" instead of "HTTP1.1/200 OK" by

> any chance?
>
> Daniel
>
> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
> Sent: Monday, June 11, 2007 6:12 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while
> connecting to a server
>
> Hi all,
> on Nokia S60 3rd Ed FP1 phones and emulator, I have a USER 44 or USER
> 45 exception while connecting to a remote server.
>
> It seems to be an error in the low-level parsing of the response...
> caused by an empty Set-Cookie: property in the header of the
response...
>

--
Francesco Mapelli mapelli@funambol.com

funambol :: mobile open source :: http://www.funambol.com

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Daniel Rocha

Is your server returning "HTTP1.1/200" instead of "HTTP1.1/200 OK" by
any chance?

Daniel

-----Original Message-----
From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
Sent: Monday, June 11, 2007 6:12 AM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while connecting
to a server

Hi all,
on Nokia S60 3rd Ed FP1 phones and emulator, I have a USER 44 or USER 45
exception while connecting to a remote server.

It seems to be an error in the low-level parsing of the response...
caused by an empty Set-Cookie: property in the header of the response,
if the property is removed or set to a non empty string (e.g.
Set-Cookie: foo) no exception is raised and the application works fine.

It happens with my code and with the http demo included in wtk 2.5 as
soon as the server response is received

Is this a known issue?

thanks

--
Francesco Mapelli mapelli@funambol.com

funambol :: mobile open source :: http://www.funambol.com

========================================================================
===
To unsubscribe, send email to listserv@java.sun.com and include in the
body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

francesco mapelli

Hi Daniel, thanks for your reply.

The server returns HTTP/1.1 200 OK ...

we tried using a dummy server, giving the same response except for the
"Set-Cookie:" property and it crashes only when Set-Cookie is set to an
empty string.

afaik this Set-Cookie usage is not strictly standard-compliant, but
crashing the app for a non standard reply it's a bit tough...

f

Daniel Rocha ha scritto:
> Is your server returning "HTTP1.1/200" instead of "HTTP1.1/200 OK" by
> any chance?
>
> Daniel
>
> -----Original Message-----
> From: A mailing list for KVM discussion
> [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of ext francesco mapelli
> Sent: Monday, June 11, 2007 6:12 AM
> To: KVM-INTEREST@JAVA.SUN.COM
> Subject: User 44 / 45 exception in Nokia S60 3rd Ed FP1 while connecting
> to a server
>
> Hi all,
> on Nokia S60 3rd Ed FP1 phones and emulator, I have a USER 44 or USER 45
> exception while connecting to a remote server.
>
> It seems to be an error in the low-level parsing of the response...
> caused by an empty Set-Cookie: property in the header of the response...
>

--
Francesco Mapelli mapelli@funambol.com

funambol :: mobile open source :: http://www.funambol.com

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".