Closed claudio-rosati closed 5 years ago
Well, the error seems to be in the archiverappliance library. It's somehow finding a time stamp with invalid nanoseconds:
java.lang.IllegalArgumentException: nanos > 999999999 or < 0
at java.sql.Timestamp.setNanos(Timestamp.java:389)
at org.epics.archiverappliance.retrieval.client.EpicsMessage.<init>(EpicsMessage.java:34)
In principle, that should not happen. In reality, Channel Access serves the timestamp as seconds and nanoseconds. The nanoseconds are a 32 bit unsigned integer set by the IOC, and depending on your timing source it can put anything in there, for example 1000000000 which is beyond 999999999.
Unclear if the AA actually stored such a bad time stamp, or if it erroneously sends that to you when you ask for the data, or if the archiverappliance library creates such a bad time stamp.
I don't know about the archive applicance, but maybe there's a way to dump the raw samples from the AA by some other way to see the nanoseconds as they are stored in the AA, so you can compare with the actual data.
Thank you, I'll forward your message to the guy managing the Archiver Appliance.
I open a DataBrowser view and add a PV. I set the the time span to 7 days and everything is fine.
Then is change the trace Request from Optimized to Raw data. After a couple of seconds the following is displayed in console:
The same data using the archiver appliance web interface is well depicted:
@kasemir Can you please help me indicating where to start looking for the problem?