Hello Darin,

thanks for sharing a sample application, that helps a lot. Actually, it
appears that a system property that contains the proxy host
(System.getProperty("http.proxyHost")), was tested against the null value,
whereas in this case, it contains an empty string. I've just fixed the trunk
and the 2.0 branch. Thanks a lot for reporting this issue.
As a workaround, you can try to clear this property:
        System.clearProperty("http.proxyHost");

Best regards,
Thierry Boileau


Hello,
>
> I was hoping to hear back on this problem as I'm trying to deploy my applet
> and it is very cumbersome to have to build my applet and run it outside
> Eclipse to simply test it.
>
> I've included a zip file of a small Eclipse project and associated source
> that demonstrates the problem. I would greatly appreciate any help resolving
> this issue of not being able to run an Applet using Restlet 2.0.1 in Sun's
> AppletViewer within Eclipse.
>
> The trace from running the applet will look something  like:
>
> Oct 6, 2010 9:05:39 AM org.restlet.engine.http.connector.HttpServerHelper
> start
> INFO: Starting the internal HTTP server on port 8182
> Oct 6, 2010 9:05:44 AM org.restlet.engine.http.connector.HttpClientHelper
> start
> INFO: Starting the default HTTP client
> Oct 6, 2010 9:05:46 AM org.restlet.resource.ClientResource handle
> INFO: A recoverable error was detected (1001), attempting again in 2000 ms.
> Oct 6, 2010 9:05:49 AM org.restlet.resource.ClientResource handle
> INFO: A recoverable error was detected (1001), attempting again in 2000 ms.
> Communication Error (1001) - Connection refused: connect
>        at
> org.restlet.resource.ClientResource.handle(ClientResource.java:854)
>        at
> org.restlet.resource.ClientResource.handle(ClientResource.java:759)
>        at org.restlet.resource.ClientResource.get(ClientResource.java:492)
>         at RestletApplet.init(RestletApplet.java:46)
>         at sun.applet.AppletPanel.run(AppletPanel.java:424)
>        at java.lang.Thread.run(Thread.java:619)
>
> Thank you for helping with this,
>
> Darin
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2668607

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

Reply via email to