In snapshot (and probably since forever): riap://host doesn't work if a Restlet is attached to a VirtualHost using attachDefault instead of attach(pattern,target); an NPE is thrown in ComponentClientDispatcher.
This is because setCurrent(hashCode) only gets called inside Routes created by VirtualHost.createRoute(), and VirtualHost.createRoute() is not invoked for the default attachment point. I didn't see a no-brainer way to patch, since VirtualHost.attachDefault(...) relies on super.attachDefault(...) to get its Route. Should I bother filing a bug on this? Or somebody just recommend the approach to fix it and I'll send in a patch. - R ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2382642

