Re: [Plastic-devs] plastic file ref
Brought to you by:
johndavidtaylor,
thomasboch
|
From: Mark T. <m.b...@br...> - 2006-07-03 13:38:23
|
On Mon, 3 Jul 2006, John Taylor wrote:
> R Holbrey wrote:
> >
> > hi guys,
> >
> > if I tell eirik to load a votable via the interop menu (using
> > broadcast or send table) of topcat I get a request to "loadFromURL" a
> > file such as:
> >
> > file://localhost/tmp/plastic63074.vot
> >
> > despite working around 'numer-of-slashes' saga, I can't really find
> > any reference to such a file on my system, that is I would expect to
> > find something in either
> >
> > /tmp/plastic63074.vot or ./tmp/plastic63074.vot
> It should be the former. Funny that you can't find it. Brian Walshe
> had a similar problem this week receiving a file from Topcat. I didn't
> think anything of it...just assumed he was not doing file handling
> properly. I'll check that I'm seeing the file OK on my system....
Richard and John (and Brian),
my best guess for what's happening here is that TOPCAT is writing the
temporary file (in /tmp/plastic*.vot, as John says), but then deleting
it before Eirik has read it. What it does for a table broadcast/transmit is:
1. Write a VOTable representing the current state of the table to
be sent to a temporary file
2. Send the loadFromURL message
3. Wait for the response object from the hub describing which
listeners succeeded and which failed to load the table
4. Delete the temporary file
So you might well see what you are seeing if you are replying to the
loadFromUrl (returning a true/false error status) before you've actually
consumed the temporary file.
Is that what you're doing?
Mark
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
m.b...@br... +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|