On Fri, 4 Jun 2004, Mark Taylor wrote:
> > When I look at the "HDX view" of "rdata2.sdf" (the only one reporting
> > as an NDX), I see a truncated report:
> >
> > <hdx
> >
> > and nothing else. Running this from a terminal I see the stack trace
> >
> > ------------------
> >
> > C:\Program Files\STARJAVA\lib\treeview>java -jar treeview.jar
> > java.lang.AssertionError: Failed to convert URL <file:/C:/Program
> > Files/STARJAVA
> > /etc/treeview/demo/ndx/rdata2.sdf#DATA_ARRAY> to URI
> > at uk.ac.starlink.util.URLUtils.urlToUri(URLUtils.java:166)
>
> OK there is clearly some problem with URLUtils.urlToUri(), no doubt
> to do with forward and backslashes or drive letters - the comments
> (not sure if they're Norman's or mine) in that method suggest there's
> probably something to get confused about in any case.
Hi Mark,
actually the space in "Program Files" may be the problem. If I copy the
demo data to a directory with no spaces, but still on the same drive,
Treeview can suddenly see these NDXs as expected. Only problem with that
idea is that I'm sure this all used to be OK, and no one seems to have
modified NDX/HDX/URLUtils in any ways that would affect this.
> > I'll investigate further and see what I can come up with (unless the above
> > makes some immediate sense to you).
>
> I'd be grateful if you could, since I don't have any easy access to
> windows/cygwin.
>
> Not sure if the problems with the fits and xml files are the same
> or different. These at least though (appearing as non-NDXs) should
> get picked up in the Treeview unit tests - did you ever manage to
> run these under windows?
I ran the JNIAST and JNIHDS tests under windows, but didn't try any
others. Will look at that and let you know what happens.
Peter.
|