Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException when parsing acqusition start time #55

Open
dgault opened this issue Jun 12, 2023 · 1 comment
Open

ClassCastException when parsing acqusition start time #55

dgault opened this issue Jun 12, 2023 · 1 comment

Comments

@dgault
Copy link
Member

dgault commented Jun 12, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants