Hello ab,
thanks for your report, the bug has been fixed in the svn repository.
Best regards,
Thierry Boileau
> Hi,
>
> first, the good news: After downloading the current snapshot, I was
> able to make redirects... Thanx for fixing.
>
> Now the bad news: it is still not stable enough:
>
> My Redirector looks like this:
> *router.attach("/go/{host}/{port}/", new Redirector(getContext(),
> "http://{host}:{port}/{rr}", Redirector.MODE_SERVER_OUTBOUND));*
>
> A call to
> http://localhost:8888/redirect/go/localhost/8080/RESTfulServices...
> forwards my request to http://localhost:8080/RESTfulServices... and it
> works fine...
>
> When I try to forward to a non-existing host
> (http://localhost:8888/redirect/go/WrongHostName/8080/RESTfulServices...)
> Restlet throws the following Java exception and any further requests
> are not possible any more. I have to restart the server...:
> 04.03.2010 11:39:48 org.restlet.routing.Redirector handle
> INFO: Redirecting via client dispatcher to:
> http://WrongHostName:8080/RESTfulServices/resources/customers/pkey/2176172632
> 04.03.2010 11:39:55
> org.restlet.engine.log.LoggingThreadFactory$LoggingExceptionHandler
> uncaughtException
> SCHWERWIEGEND: Thread: Restlet-22593188 terminated with exception: null
> java.lang.NullPointerException
> at
> org.restlet.engine.http.connector.BaseClientHelper.handleOutbound(BaseClientHelper.java:555)
> at
> org.restlet.engine.http.connector.ControllerTask$4.run(ControllerTask.java:139)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
>
> Another problem is when I deploy the application to Tomcat. The
> Redirects do not work at all.
>
> Best Regards,
>
> ab
> ------------------------------------------------------------------------
> View this message in context: Re: How to write an Universal redirector
> <http://n2.nabble.com/How-to-write-an-Universal-redirector-tp4620578p4673751.html>
> Sent from the Restlet Discuss mailing list archive
> <http://n2.nabble.com/Restlet-Discuss-f1400322.html> at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2454946