We're Hiring!

Java exception in bfGetReader

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

Java exception in bfGetReader

Postby pospiech » Mon Jun 29, 2015 9:26 am

I am using the Matlab tools of ome for several years now to read zvi and czi files.
The code uses loci_tools.jar from around 2013. Very likely Version 4.x

If I now execute the same code it fails with an exception:

Java exception occurred:
java.lang.NullPointerException

at loci.formats.in.ZeissCZIReader.translateInformation(ZeissCZIReader.java:1066)

at loci.formats.in.ZeissCZIReader.translateMetadata(ZeissCZIReader.java:758)

at loci.formats.in.ZeissCZIReader.initFile(ZeissCZIReader.java:444)

at loci.formats.FormatReader.setId(FormatReader.java:1178)

at loci.formats.ImageReader.setId(ImageReader.java:727)

at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:529)

at loci.formats.ChannelFiller.setId(ChannelFiller.java:263)

at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:529)

at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:274)


How can I further debug this problem?
pospiech
 
Posts: 2
Joined: Tue Dec 18, 2012 8:17 am

Re: Java exception in bfGetReader

Postby sbesson » Mon Jun 29, 2015 11:27 am

Hi,

looking at your stack trace, the Bio-Formats version indeed looks like version 4.4.4 or similar.

Many code changes have been included into Bio-Formats to handle errors similar to the one you reported while opening CZI files (see here for example). These changes should be available in the most recent versions of Bio-Formats. Note also that the 4.4.x line is no longer supported.

Would it be possible for you to upgrade your MATLAB Bio-Formats toolbox either to 5.0.x or even preferably to the latest 5.1.x version and see if that fixes your error while opening the CZI file?

Best,
Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest