Ticket #685 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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 8 years ago 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 8 years ago by bdezonia

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

comment:3 Changed 8 years ago by bdezonia

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

comment:4 Changed 8 years ago by curtis

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

Fixed in 34e48b71f589a4c09ebcdfd58293bd1582b8908c.

Note: See TracTickets for help on using tickets.