Hi Jason,

Thanks for the report.

The current WAR client has not been fully tested and should be considered
"alpha code". We plan to have full WAR protocol support in 1.1 M3 only, with
a consistent behavior between Servlet and standalone modes.
http://restlet.tigris.org/issues/show_bug.cgi?id=76

Could you enter a bug report and attach a reproducible sample code to the
report if possible? Here are the instructions:
http://restlet.tigris.org/servlets/ProjectIssues

Best regards,
Jerome  

> -----Message d'origine-----
> De : news [mailto:[EMAIL PROTECTED] De la part de Jason Terhune
> Envoyé : mardi 15 janvier 2008 21:49
> À : [email protected]
> Objet : NullPointerException in ServletWarClientHelper
> 
> Hello,
> 
> I'm using a Directory with a WAR reference, and I get an NPE 
> if the resource 
> doesn't exist *and* contains a forward slash.  I would expect 
> a 404 result 
> instead.  If there's no forward slash in the URL, I get the 
> 404 result as 
> expected.  I assume this is related to directory searching.
> 
> Let me know if you need any more info to recreate.  Also, I 
> think it would be 
> helpful to list the war:/// syntax in the javadoc for 
> org.restlet.data.LocalReference.
> 
> thanks,
> Jason
> 
> 
> Here's a pared down version of my Application.createRoot() 
> method... hopefully 
> I didn't cut out anything important.
> 
>       public Restlet createRoot() {
>               Router router = new Router(getContext());
> 
>               /*
>                * For everything else, look for the file in 
> the WAR file.  
> The URI "war:///" resolves
>                * to the WebContent directory.
>                */ 
>               Directory fileDirectory = new 
> Directory(getContext(), new 
> LocalReference("war:///"));
>               fileDirectory.setListingAllowed(true);
>               router.attachDefault(fileDirectory);
> 
>               return router;
>       }
> 

Reply via email to