users@grizzly.java.net

Re: Grizzly freezes in normal mode but runs normally in Debug mode

From: <Peter.Neu_at_gmx.net>
Date: Thu, 21 Jan 2010 14:23:13 +0100

Hi,

tried the latest release. Same problem. Tried to create the stack dump but in the command line grizzly doesn't freeze. It's only in the run mode in Eclipse where it freezes. Tried in Eclipse the VisualVM but it also freezes so I couldn't get a stack dump. :-(

The code where it stops is some jersey client code

WebResource resource = restClient.resource(...);
Builder builder = resource.getRequestBuilder();
        builder = builder.header("Authorization", "Basic " + new String(Base64.encode(new String(username + ":" + password).getBytes("UTF-8"))));
        builder = builder.accept("application/json");
        builder = builder.header("Accept-Charset", "UTF-8");
        String response = builder.get(String.class);

The last line is where it freezes.


Cheers,
Pete




-------- Original-Nachricht --------
> Datum: Thu, 21 Jan 2010 10:55:17 +0100
> Von: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
> An: users_at_grizzly.dev.java.net
> Betreff: Re: Grizzly freezes in normal mode but runs normally in Debug mode

> Hi Peter,
>
> can you pls. send a stack dump? Also, if possible, can you try the
> later Grizzly binaries, like 1.9.18-k?
>
> Thanks.
>
> WBR,
> Alexey.
>
> On Jan 21, 2010, at 10:48 , Peter.Neu_at_gmx.net wrote:
>
> > Hi,
> >
> > I have got a strange problem with Grizzly when I start it in normal
> > mode it freezes in the middle of the execution of a rest resource.
> > But when I execute it in debug mode it runs without any problems.
> >
> > Any ideas?
> >
> > Eclipse Version: 3.4.2 (Aptana)
> > JDK 1.6.0.14
> > Grizzly 1.8.6.4.
> >
> > Cheers,
> > Pete
> >
> >
> >
> >
> > --
> > Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer 81190.
> > Von 5 Euro je SMS (zzgl. SMS-Gebühr) gehen 4,83 Euro an UNICEF.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> > For additional commands, e-mail: users-help_at_grizzly.dev.java.net
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net

-- 
Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer 81190.
Von 5 Euro je SMS (zzgl. SMS-Gebühr) gehen 4,83 Euro an UNICEF.