dev@grizzly.java.net

Re: Grizzly revision 4420 broke Atmosphere rest-chat sample

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Fri, 23 Apr 2010 19:03:23 +0200

Hi,

I'm not saying that it's definitely not a Grizzly issue, it could be :)

But not sure how rev. 4420 caused that.
BTW, the default content-type, which we set if non was set before
(unless it's not explicitly changed) is: "text/plain;
charset=iso-8859-1".
Sebastien, is this bug constantly reproducible, it *always* fails?

Thanks.

WBR,
Alexey.

On Apr 23, 2010, at 18:14 , jfarcand wrote:

> Salut,
>
> On 23/04/10 12:22 AM, Oleksiy Stashok wrote:
>> Hi Sebastien,
>>
>> that fix was required for Glassfish, what it supposed to do - apply
>> default content type to the HttpResponse, if content-type wasn't
>> specified explicitly.
>> So for the chat sample, IMO, it would be enough to specify the
>> content-type for the response.
>
> Hum...the content-type in that case is set by Jersey for that demo:
>
>>
>> @Path("/")
>> @Produces("text/html;charset=ISO-8859-1")
>> public class ResourceChat {
>
> and it works well with other container so I would suspect something
> else is "broken".
>
> Thanks!!
>
> -- Jeanfrancois
>
>
>
>> If it wouldn't work - pls. let us know.
>>
>> Thanks.
>>
>> WBR,
>> Alexey.
>>
>> On Apr 23, 2010, at 3:50 , Sebastien Dionne wrote:
>>
>>> Hello guy. It has been a long week of trial and error.. but I
>>> found it.
>>>
>>>
>>> the problem is the sample : rest-chat of Atmosphere stop working
>>> after
>>> revision 4419. Work's fine with the 1.9.19-SNAPSHOT (8 april) on the
>>> repository... but if we take the trunk for grizzly.. it stopped
>>> working.
>>>
>>> I try my test from this snapshoot.. and all revisions after that..
>>> and
>>> at 4420 it stopped to work.
>>>
>>> look like this bug fix as side effects.
>>>
>>> fix issue https://glassfish.dev.java.net/issues/show_bug.cgi?
>>> id=11751
>>> ("loading admin gui alters mime type mappings")
>>> reviewed by Oleksiy Stashok
>>>
>>>
>>> can someone from grizzly take the lead please.
>>>
>>> if you want to test it with atmosphere.. really simple
>>>
>>> download the trunk.
>>>
>>> go in the folder
>>> extras\spade-server\target
>>>
>>> and start Deployer with this command line :
>>>
>>>
>>> java -jar atmosphere-spade-server-0.6-SNAPSHOT.jar -a
>>> C:/workspaces/workspace_atmosphere/samples/rest-chat/target/
>>> atmosphere-rest-chat.war
>>>
>>>
>>> http://localhost:8080/atmosphere-rest-chat/index.html
>>>
>>> enter a username for the logging.. press enter
>>>
>>> you shoul see something in the panel..
>>>
>>> if you try with the trunk of grizzly.. it will stall there.. no
>>> error
>>> in the logs. nothing.
>>>
>>> it could be a bug with atmopshere too.. maybe the fact that you
>>> fix a
>>> bug in grizzly, atmopshere will have to adapt.. don't know.. that's
>>> why I'll let you talk with jf.
>>>
>>> thanks and goodnight.
>>>
>>>
>>> --
>>> -------------
>>> A+
>>>
>>> Sébastien.
>>>
>>> Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
>>> http://twitter.com/survivant
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>