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:
Blocking:

Description

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(Class.java:2706)
at java.lang.Class.getConstructor(Class.java:1657)
at imagej.util.ClassUtils.convert(ClassUtils.java:105)
at imagej.util.ClassUtils.toNumber(ClassUtils.java:213)
at imagej.ext.module.ui.AbstractInputHarvester.addNumber(AbstractInputHarvester.java:198)
at imagej.ext.module.ui.AbstractInputHarvester.buildPanel(AbstractInputHarvester.java:110)
at imagej.ext.module.ui.AbstractInputHarvester.harvest(AbstractInputHarvester.java:67)
at imagej.ext.plugin.AbstractInputHarvesterPlugin.process(AbstractInputHarvesterPlugin.java:63)
at imagej.ext.module.ModuleRunner.preProcess(ModuleRunner.java:98)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:81)
at imagej.ext.module.ModuleService$1.run(ModuleService.java:168)
at java.lang.Thread.run(Thread.java:680)

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.