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 #810 (closed defect: fixed)

Opened 2011-10-10T11:11:36-05:00

Last modified 2011-10-20T16:23:45-05:00

Exception thrown by input dialog of ImageMath

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-b1-initial
Component: Plugins Version:
Severity: serious Keywords:
Cc: Blocked By:


Open Blobs and Bridge. Launch the IJ2 Image Calculator plugin. Exception (noted below) thrown. I thought we had this bug long ago which had been fixed. Review and reassign as needed.

[WARN ] Cannot convert 'bridge.gif' to

at java.lang.Class.getConstructor0(
at java.lang.Class.getConstructor(
at imagej.util.ClassUtils.convert(
at imagej.ext.module.AbstractModuleItem.loadValue(
at imagej.ext.module.ui.AbstractInputHarvester.addInput(
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 java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$

Change History

comment:1 Changed 2011-10-13T13:43:54-05:00 by bdezonia

  • Owner changed from curtis to bdezonia
  • Component changed from ij-ext to ij-plugins

comment:2 Changed 2011-10-14T13:33:07-05:00 by bdezonia

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

Curtis noticed this has to do with persistence. Datasets are getting persisted after each run of the plugin with the name of the Dataset. And then later launches of the plugin try to assign Dataset values from persistence and can't figure out how to convert a String to a Dataset.

Changed the plugin to not persist the Dataset names.

We could change the peristence code to skip things like Datasets. Curtis, let me know if my fix is enough or if we need to go further with a general solution. If my implementation is fine then please close.

comment:3 Changed 2011-10-20T16:23:45-05:00 by curtis

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

I filed a new ticket, #838, to track the general problem with persistence. Meanwhile, this specific issue (with the ImageMath plugin) is fixed, so I am closing this ticket.