On Fri, 4 Jun 2004, Peter W. Draper wrote:
> Mark,
>
> I do see the same problems as David reports, but under Windows, not Linux.
>
> > > Also rdata2.xml shows as a FILE - not as an NDX or HDX.
> >
> > I don't see this, though (as per previous message) the installation
> > doesn't give me JNIHDS so rdata2.sdf appears as a file.
>
> In the "ndx" demo data directory I see rdata.fits as a FITS file,
> rdata2.sdf as an NDX and rdata2.xml as a plain file. Normally don't
> all these files report as NDXs?
Yes they should.
> 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.
> 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?
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|