NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 551 - Stitching Plugin does not start any more
Stitching Plugin does not start any more
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P5 major
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2013-01-22 14:46 CST by Sebastian Rhode
Modified: 2013-01-29 23:47 CST
3 users (show)

See Also:

Description Sebastian Rhode 2013-01-22 14:46:32 CST
Hi I just updated my Fiji to day and tried to start the Stitching (Grid/Collection stitching) and got the following error messages.

I have not used it for a while, so I can not if the error was caused by the update. My System is Win7, 64bit


java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at ij.Command.runPlugIn(Command.java:148)
	at ij.Command.runCommand(Command.java:97)
	at ij.Executer.run(Executer.java:64)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException: cannot add null item to Choice
	at java.awt.Choice.insertNoInvalidate(Choice.java:208)
	at java.awt.Choice.addItem(Choice.java:189)
	at ij.gui.GenericDialog.addChoice(GenericDialog.java:445)
	at plugin.GridType.<init>(GridType.java:94)
	at plugin.Stitching_Grid.run(Stitching_Grid.java:96)
	at ij.IJ.runUserPlugIn(IJ.java:184)
	at ij.IJ.runPlugIn(IJ.java:151)
	... 8 more



and some information about the java, if that helps.

Information about your version of Java - this information is useful for the Fiji developers:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: CHECK_TURNED_OFF

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\Users\Public\DOCUME~1\Fiji/java/win64/jdk1.6.0_24/jre/
  ij.dir => C:\Users\Public\DOCUME~1\Fiji
Comment 1 Sebastian Rhode 2013-01-25 10:01:09 CST
Hi,

i just check with a fresh download, if the stitching plugin works there. And it does.

So the questions is now, why is does not work with my version, which is up-to-data. So there must some interference with something in my Fiji installation. But I have no idea, what this might be.

Is there an easy way to find out, which other file causes the problem?

Cheers,

Sebi
Comment 2 Stephan Preibisch 2013-01-25 10:49:36 CST
Could you compare the Stitching jars in two directories? Maybe you also have more than one Stitching jar in the fiji version where it does not work?
Comment 3 Sebastian Rhode 2013-01-25 16:46:45 CST
Hi Stephan,

in both dirs the file is called: Stitching_-2.0.0-SNAPSHOT.jar
The both have 287kB as size and I did not found any other stitching jar version, where is does not work.

When I copy the stitching jar from the working one to the not working directory, the problem remains, so I guess it is not the jar itself, its something else ...

Cheers, Sebi
Comment 4 Johannes Schindelin 2013-01-25 17:11:29 CST
The only other .jar file involved in your bug report is ij.jar... Is that one different?
Comment 5 Sebastian Rhode 2013-01-28 09:02:47 CST
Hi Johannes,

in both directories, there is the ij-147h.jar. The file size is identical for both.

Sebi
Comment 6 Sebastian Rhode 2013-01-28 12:48:58 CST
Hi guys,

i just updated my Fiji today and tried again. And now the stitching plugin starts as usual, which is good.
But I am still curious, why it did not work before, even my Fiji was up-to-date due to the updater ...

Sebi
Comment 7 Curtis Rueden 2013-01-28 19:56:53 CST
The (probably) same issue was reported on the ImageJ mailing list again recently:

   https://list.nih.gov/cgi-bin/wa.exe?A2=IMAGEJ;a2ad00d7.1301

I am also able to reliably reproduce the "cannot add null item to Choice" error with an up-to-date version of Fiji on OS X simply by attempting to run the macro:

   run("Grid/Collection stitching", "")
Comment 8 Curtis Rueden 2013-01-28 20:24:52 CST
I have uploaded a new version of the Stitching plugins that I believe fixes the problem with calling "Grid/collection Stitching" from a macro.

Could anyone affected please update your Fiji, try again, and comment here how it goes for you?

Thanks!