ome / ZarrReader

Other
6 stars 9 forks source link

ClassCastException when parsing acqusition start time #55

Open dgault opened 1 year ago

dgault commented 1 year ago

Issue was raised on forum thread https://forum.image.sc/t/ome-zarr-import-to-omero-failure-response-on-import/82067/3

The stack trace is as below (with ZarrReader 0.3.0):

java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')
        at loci.formats.in.ZarrReader.parsePlate(ZarrReader.java:541)
        at loci.formats.in.ZarrReader.initFile(ZarrReader.java:287)
        at loci.formats.FormatReader.setId(FormatReader.java:1443)
        at loci.formats.ImageReader.setId(ImageReader.java:849)

The same issue will still be present in 0.3.1 and is caused when parsing the acquisition start time property:

String acqStartTime = (String) acquistion.get("starttime");
imagesc-bot commented 1 year ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/ome-zarr-import-to-omero-failure-response-on-import/82067/4