Open
Description
I hope this is the correct place to report issues with the LOF reader; I know it's an external contribution.
I have an image that will not read and results in this error:
[Fatal Error] :1:1: Content is not allowed in prolog.
Content is not allowed in prolog.
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at loci.formats.in.LeicaMicrosystemsMetadata.LMSXmlDocument.initFromXmlString(LMSXmlDocument.java:109)
at loci.formats.in.LeicaMicrosystemsMetadata.LMSXmlDocument.<init>(LMSXmlDocument.java:87)
at loci.formats.in.LeicaMicrosystemsMetadata.LMSImageXmlDocument.<init>(LMSImageXmlDocument.java:37)
at loci.formats.in.LeicaMicrosystemsMetadata.LofXmlDocument.<init>(LofXmlDocument.java:39)
at loci.formats.in.LOFReader.isThisType(LOFReader.java:154)
at loci.formats.FormatReader.isThisType(FormatReader.java:653)
at loci.formats.ImageReader.isThisType(ImageReader.java:864)
at loci.formats.ImageReader.getReader(ImageReader.java:193)
at loci.formats.ImageReader.setId(ImageReader.java:844)
at loci.formats.tools.ImageConverter.testConvert(ImageConverter.java:523)
at loci.formats.tools.ImageConverter.main(ImageConverter.java:1141)
*** One or more readers is misbehaving. See the debug output for more information. e.g.:
loci.formats.in.LOFReader@52e6fdee -> java.lang.NullPointerException('null') ***
Exception in thread "main" loci.formats.UnknownFormatException: Unknown file format: C:\Users\lakej\Desktop\BMSEQIF-003-tonsil-high-c1-cd25positives.lof
at loci.formats.ImageReader.getReader(ImageReader.java:202)
at loci.formats.ImageReader.setId(ImageReader.java:844)
at loci.formats.tools.ImageConverter.testConvert(ImageConverter.java:523)
at loci.formats.tools.ImageConverter.main(ImageConverter.java:1141)
It's a 4-channel, 20-slice single position image.
I can share the image but it is quite large; I've 7-zipped it:
https://www.dropbox.com/s/s9w3kfpzrhpbz86/DAPI-CD4-CD45-CD25.7z?dl=0