Login  Register

Re: Latest Bio-Formats in Fiji

Posted by Mark Hiner on Oct 03, 2014; 12:40pm
URL: http://imagej.273.s1.nabble.com/Latest-Bio-Formats-in-Fiji-tp5009834p5009889.html

Hi Christophe,

>so I guess something else was modified in the new jar that keeps him from
playing nice with the rest of the daily build?

Sort of; the "NoSuchMethodError" means that the ND2Reader is using API
("getEmissionWavelength" method) that doesn't exist in the version (5.0.x)
of your FormatTools class it has access to. This means that it needs the
5.1.x FormatTools class.

So at this point you could either:

a) download all the 5.1.x jars from Jenkins and switch to these. I assume
there will be new dependency jars you'll end up having to track down.

or

b) Continue to download and replace just the components are needed, using
the same process you did with formats-gpl. FormatTools is in the
"formats-api" jar. If you keep getting "NoSuchMethodError"s, you can look
up the class with the missing method on the Bio-Formats GitHub
<https://github.com/openmicroscopy/bioformats/find/develop>. For example, I
saw that FormatTools.java is in /components/formats-api, so I knew you
needed the formats-api.jar.

You can of course also wait for us to set the update site to 5.1.x, but
these are your fastest options.

Hope this helps. Please let me know if you have any other problems or
questions.

Regards,
Mark



On Fri, Oct 3, 2014 at 7:16 AM, Christophe Leterrier <
[hidden email]> wrote:

> Hi Mark,
>
> Thanks for the advice; I tried to replace the formats-gpl.jar in the
> jars/bioformats directory (daily build) with the version currently on
> Jenkins for 5.1. After that I tried to open the big nd2 file I uploaded to
> people at Bio-Formats. After half a minute with no big memory usage (around
> 70 MB), I get a new error:
>
> (Fiji Is Just) ImageJ 2.0.0-rc-14/1.49g; Java 1.6.0_24 [64-bit]; Windows 7
> 6.1; 61MB of 49071MB (<1%)
>
> java.lang.NoSuchMethodError:
> loci.formats.FormatTools.getEmissionWavelength(Ljava/lang/Double;)Lome/xml/model/primitives/PositiveFloat;
> at
> loci.formats.in.NativeND2Reader.populateMetadataStore(NativeND2Reader.java:1928)
> at loci.formats.in.NativeND2Reader.initFile(NativeND2Reader.java:1316)
> at loci.formats.FormatReader.setId(FormatReader.java:1317)
> at loci.formats.DelegateReader.setId(DelegateReader.java:253)
> at loci.formats.ImageReader.setId(ImageReader.java:753)
> at io.scif.bf.BioFormatsFormat$Parser.typedParse(BioFormatsFormat.java:406)
> at io.scif.bf.BioFormatsFormat$Parser.typedParse(BioFormatsFormat.java:388)
> at io.scif.AbstractParser.parse(AbstractParser.java:252)
> at io.scif.AbstractParser.parse(AbstractParser.java:335)
> at io.scif.AbstractParser.parse(AbstractParser.java:52)
> at io.scif.AbstractReader.setSource(AbstractReader.java:270)
> at
> io.scif.services.DefaultInitializeService.initializeReader(DefaultInitializeService.java:90)
> at io.scif.img.ImgOpener.createReader(ImgOpener.java:542)
> at io.scif.img.ImgOpener.openImgs(ImgOpener.java:144)
> at net.imagej.DefaultDatasetService.open(DefaultDatasetService.java:266)
> at net.imagej.DefaultDatasetService.open(DefaultDatasetService.java:250)
> at net.imagej.io.DatasetIOPlugin.open(DatasetIOPlugin.java:78)
> at net.imagej.io.DatasetIOPlugin.open(DatasetIOPlugin.java:50)
> at
> net.imagej.legacy.plugin.DefaultLegacyOpener.open(DefaultLegacyOpener.java:134)
> at
> net.imagej.legacy.DefaultLegacyHooks.interceptFileOpen(DefaultLegacyHooks.java:327)
> at
> net.imagej.legacy.DefaultLegacyHooks.interceptRunPlugIn(DefaultLegacyHooks.java:150)
> at ij.IJ.runPlugIn(IJ.java)
> at ij.Executer.runCommand(Executer.java:131)
> at ij.Executer.run(Executer.java:64)
> at java.lang.Thread.run(Thread.java:662)
>
> so I guess something else was modified in the new jar that keeps him from
> playing nice with the rest of the daily build?
>
> Christophe
>
>
>
> 2014-10-01 21:21 GMT+02:00 Mark Hiner <[hidden email]>:
>
>> Hi Christophe,
>>
>> >As far as I understand, the current dailies are 5.0, not 5.1 yet
>>
>> You are correct. We will be switching over to 5.1.x, but in the mean time
>> it looks like the nd2 fix
>> <https://github.com/openmicroscopy/bioformats/commit/3c857c2e5743e9b23801408bd61de49697716b4d>
>> you're looking for only affected the formats-gpl component. You should be
>> able to just download that specific jar, and replace the
>> formats-gpl-5.0.5.jar in your Fiji.app/jars/bioformats directory (the old
>> version will just be called "formats-gpl.jar" if you still have the
>> Bio-Formats update site enabled).
>>
>> I hope that will hold you over until we migrate to the 5.1.x daily
>> builds, but please let us know if there are any problems manually replacing
>> the jar.
>>
>> Thanks,
>> Mark
>>
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html