RestletGWTSimpleExample - Error while handling an HTTP client call

5 messages Options
Embed this post
Permalink
webpost

RestletGWTSimpleExample - Error while handling an HTTP client call

Reply Threaded More More options
Print post
Permalink
hello out there,

i'm trying to run the Restlet GWT Simple Example. but my gwt client can't connect to the running restlet service. i will always receive these "Error while handling an HTTP client call" messages without any further explanation or tracebacks.

i both tried the 1.1 version
http://wiki.restlet.org/docs_1.1/13-restlet/144-restlet/188-restlet.html

and the 2.0 one
http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/144-restlet/188-restlet.html

using gwt 1.5 or 1.7.

there seems to be another user experiencing such a problem: http://blog.noelios.com/2008/07/25/restlet-ported-to-gwt/#comment-7302

any help would be appreciated. thanks,
josef

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2414738
webpost

RE: RestletGWTSimpleExample - Error while handling an HTTP client call

Reply Threaded More More options
Print post
Permalink
maybe i have to add, that i am using eclipse with google plugin for eclipse.

first, i imported the RestletGWTSimpleExample project and then enabled gwt functionality in project settings, activating google app engine + web toolkit.

to run, i first start the server using launch as java application on the TestServer.java.
http://localhost:8888/ping works

now i start the gwt client in hosted mode. when i click the "click-me" button, the client would fail at line 124:

client.get("http://localhost:8888/ping", new Callback() {
                    @Override
                    public void onEvent(Request request, Response response) {
                        button.setText(response.getEntity().getText());
                    }
                });


i can repeat this and would always receive the following log output:

Starting the HTTP client
Error while handling an HTTP client call

thanks, josef

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2414761
Thierry Boileau

Re: RestletGWTSimpleExample - Error while handling an HTTP client call

Reply Threaded More More options
Print post
Permalink
Hello Josef,

I take care of this issue and will keep you informed.

Best regards,
Thierry Boileau

> maybe i have to add, that i am using eclipse with google plugin for eclipse.
>
> first, i imported the RestletGWTSimpleExample project and then enabled gwt functionality in project settings, activating google app engine + web toolkit.
>
> to run, i first start the server using launch as java application on the TestServer.java.
> http://localhost:8888/ping works
>
> now i start the gwt client in hosted mode. when i click the "click-me" button, the client would fail at line 124:
>
> client.get("http://localhost:8888/ping", new Callback() {
>                     @Override
>                     public void onEvent(Request request, Response response) {
>                         button.setText(response.getEntity().getText());
>                     }
>                 });
>
>
> i can repeat this and would always receive the following log output:
>
> Starting the HTTP client
> Error while handling an HTTP client call
>
> thanks, josef
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2414761
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2414791
webpost

RE: Re: RestletGWTSimpleExample - Error while handling an HTTP client call

Reply Threaded More More options
Print post
Permalink
thank you thierry,
i wonder this must be a configuration issue. i can't be the first person running the example ;)
josef

> Hello Josef,
>
> I take care of this issue and will keep you informed.
>
> Best regards,
> Thierry Boileau
>
> > maybe i have to add, that i am using eclipse with google plugin for eclipse.
> >
> > first, i imported the RestletGWTSimpleExample project and then enabled gwt functionality in project settings, activating google app engine + web toolkit.
> >
> > to run, i first start the server using launch as java application on the TestServer.java.
> > http://localhost:8888/ping works
> >
> > now i start the gwt client in hosted mode. when i click the "click-me" button, the client would fail at line 124:
> >
> > client.get("http://localhost:8888/ping", new Callback() {
> >                     @Override
> >                     public void onEvent(Request request, Response response) {
> >                         button.setText(response.getEntity().getText());
> >                     }
> >                 });
> >
> >
> > i can repeat this and would always receive the following log output:
> >
> > Starting the HTTP client
> > Error while handling an HTTP client call
> >
> > thanks, josef
> >
> > ------------------------------------------------------
> > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2414761
> >
> >

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2414843
webpost

RE: RestletGWTSimpleExample - Error while handling an HTTP client call

Reply Threaded More More options
Print post
Permalink
In reply to this post by webpost
could anyone confirm running successfully the RestletGWTSimpleExample?
thanks,
josef

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2418609