Woden supports Java 1.4. The URL.toURI() method was introduced in Java 5. 
At any rate, the toURI() method will still result in a URISyntaxException 
because the original path contains an illegal character (as defined by 
RFC2396)... the space character which appears in the file path.  I think 
the fix is to escape spaces in the path to %20.  Am looking into this now.

John Kaputin


[EMAIL PROTECTED] wrote on 18/12/2007 19:16:23:

> I was a little hasty ... this one will compile:
> 
>             catalogURI = catalogLocation.toURI();
> 
> :-)
> 
> On 18/12/2007, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > On 18/12/2007, Lawrence Mandel <[EMAIL PROTECTED]> wrote:
> > > 4. Development Discussion - All
> > >
> > > John: There was a post to the list today about a URI syntax 
exception with
> > > a URI with a space. I'm going to look into this.
> > > Lawrence: Can you open a Jira?
> > > John: I want to confirm this is a Woden problem first. From the 
stack
> > > tract it looks like it is.
> >
> > This line of code:
> >
> >                                 catalogURI = new 
> URI(catalogLocation.toString());
> >
> > in SimpleURIResolver should be
> >
> >                                 catalogURI = new 
> URI(catalogLocation.toURI());
> >
> > Jeremy
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to