Skip to content

ClassCastException when parsing acqusition start time #55

@dgault

Description

@dgault

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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions