[ImageJ-bugs] [Bug 1061] java.lang.NoSuchMethodException: Could not find method net.imglib2.view.Views.extendMirrorDouble

bugzilla at fiji.sc bugzilla at fiji.sc
Mon May 4 12:07:57 CDT 2015


http://fiji.sc/bugzilla/show_bug.cgi?id=1061

Mark Hiner <hinerm at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hinerm at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from Mark Hiner <hinerm at gmail.com> ---
Hi Lukas,

The problem comes from the return type:

>net.imglib2.view.Views.extendMirrorDouble(Lnet/imglib2/RandomAccessibleInterval;)Lnet/imglib2/ExtendedRandomAccessibleInterval

Note the return value: net/imglib2/ExtendedRandomAccessibleInterval

This class moved to net.imglib2.view.ExtendedRandomAccessibleInterval before
the official 2.0.0 release[1], so that's why you're getting the
NoSuchMethodException.

>imglib2-2.0.0.jar library is used

Given the dependency skew, it seems very likely that this jar is NOT the actual
ImgLib2-2.0.0 release jar. In any case, you should update your plugin to use
the same ImgLib2 release that is distributed with Fiji.

The most robust way to do this is to use Maven[2] to manage your dependency
versions. If you convert your plugin to a Maven project and extend the latest
pom-fiji[3] you are guaranteed to see the same version of all dependencies that
ship with Fiji. A good starting point for your own pom would be to look at
other Fiji plugins, like Stitching[4], that also use ImgLib2.

I'm going to close this issue since it's not truly a bug, but you are welcome
to reply with any questions you may have. The mailing lists and chat[5] are
also good resources for getting development help.

Thank you for taking the time to contact us!

Best,
Mark

[1]
https://github.com/imglib/imglib2/blob/imglib2-2.0.0/src/main/java/net/imglib2/view/ExtendedRandomAccessibleInterval.java
[2] http://imagej.net/Maven
[3] https://github.com/fiji/pom-fiji/releases
[4] https://github.com/fiji/Stitching/blob/Stitching_-3.0.2/pom.xml
[5] http://imagej.net/Help:Contents

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20150504/ee8915f3/attachment.html>


More information about the Imagej-bugs mailing list