NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #685 (closed defect: fixed)

Opened 2011-07-25T16:33:28-05:00

Last modified 2011-07-26T16:43:59-05:00

The input harvester can throw exceptions

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: biweekly-2011: Jul-18 to Jul-29
Component: Plugin Framework Version:
Severity: serious Keywords:
Cc: Blocked By:


Open Organ Of Corti
Open the Delete Axis plugin
An exception is thrown immediately

It looks like the field initialization code is trying to fill Long and Double fields with Integer values.

[WARN ] Cannot convert '1' to java.lang.Long
java.lang.NoSuchMethodException: java.lang.Long.<init>(java.lang.Integer)

at java.lang.Class.getConstructor0(
at java.lang.Class.getConstructor(
at imagej.util.ClassUtils.convert(
at imagej.util.ClassUtils.toNumber(
at imagej.ext.module.ui.AbstractInputHarvester.addNumber(
at imagej.ext.module.ui.AbstractInputHarvester.buildPanel(
at imagej.ext.module.ui.AbstractInputHarvester.harvest(
at imagej.ext.plugin.AbstractInputHarvesterPlugin.process(
at imagej.ext.module.ModuleRunner.preProcess(
at imagej.ext.module.ModuleService$

Change History

comment:1 Changed 2011-07-25T16:40:09-05:00 by bdezonia

THere are other plugins that can be used to recreate error:
Image::Stacks::Tools::Animate, Add Data, Delete Data, etc.

comment:2 Changed 2011-07-26T10:34:57-05:00 by bdezonia

  • Owner changed from bdezonia to curtis
  • Status changed from new to assigned

comment:3 Changed 2011-07-26T11:21:39-05:00 by bdezonia

Further inspection shows that it is likely that this issue only affects DynamicPlugins

comment:4 Changed 2011-07-26T16:43:59-05:00 by curtis

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in 34e48b71f589a4c09ebcdfd58293bd1582b8908c.