Login  Register

NoSuchFieldError between BlockMatching and TrakEM2

Posted by Eva_Fiorinelli on Jul 14, 2015; 2:16pm
URL: http://imagej.273.s1.nabble.com/NoSuchFieldError-between-BlockMatching-and-TrakEM2-tp5013555.html

Dear all,

I'm using the block matching plugin of Stephan Saalfeld in Java.
When I execute the command :

IJ.run(Brain, "Extract Block Matching Correspondences", "source_image=IMG1.dcm target_image=Brain layer_scale=1 search_radius=50 block_radius=50 resolution=24 minimal_pmcc_r=0.10 maximal_curvature_ratio=1000 maximal_second_best_r/best_r=1 use_local_smoothness_filter approximate_local_transformation=Affine local_region_sigma=65 maximal_local_displacement=12 export");

I obtain this error :

java.lang.NoSuchFieldError: m00
        at mpicbg.trakem2.transform.AffineModel2D.copy(AffineModel2D.java:76)
        at mpicbg.trakem2.transform.AffineModel2D.copy(AffineModel2D.java:22)
        at mpicbg.models.AbstractModel.filter(AbstractModel.java:181)
        at mpicbg.models.AbstractModel.filter(AbstractModel.java:239)
        at mpicbg.models.AbstractModel.localSmoothnessFilter(AbstractModel.java:677)
        at mpicbg.ij.plugin.BlockMatching_ExtractPoinRoi.run(BlockMatching_ExtractPoinRoi.java:152)
        at ij.IJ.runUserPlugIn(IJ.java:199)
        at ij.IJ.runPlugIn(IJ.java:163)
        at ij.Executer.runCommand(Executer.java:132)
        at ij.Executer.run(Executer.java:65)
        at ij.IJ.run(IJ.java:279)
        at ij.IJ.run(IJ.java:334)
        at strokeDetection.model.ArterialMatching.match(ArterialMatching.java:110)
        at strokeDetection.model.ArterialMatching.<init>(ArterialMatching.java:24)
        at strokeDetection.Main.main(Main.java:25)

The documentation says that the NoSuchField error is :

Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field.
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.

So I think I have the bad version for one of the dependencies but I don't find which one.
In Fiji/jars there are mpicbg-1.0.1.jar and mpicbg-trakem2-1.2.2.
In Fiji/plugins I use TrakEM2_-1.0b-SNAPSHOT.jar and  blockmatching_-2.1.1.

Does anyone know what versions of blockmatching and TrakEM2 I need ?

Thank you,

Eva