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 433 - Sample images cannot be opened if Bio-Formats is not installed
Sample images cannot be opened if Bio-Formats is not installed
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Linux
: P2 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2012-05-30 17:13 CDT by Melissa Linkert
Modified: 2012-06-11 14:19 CDT
0 users

See Also:

Description Melissa Linkert 2012-05-30 17:13:09 CDT
The following exception appears when attempting to open one of the sample images with Bio-Formats uninstalled:

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:146)
	at ij.Command.runCommand(Command.java:95)
	at ij.Executer.run(Executer.java:64)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ExceptionInInitializerError
	at ij.ImagePlus.<init>(ImagePlus.java:121)
	at ij.plugin.URLOpener.run(URLOpener.java:29)
	at fiji.SampleImageLoader.run(SampleImageLoader.java:42)
	at ij.IJ.runUserPlugIn(IJ.java:185)
	at ij.IJ.runPlugIn(IJ.java:152)
	... 8 more
Caused by: java.lang.ClassNotFoundException: loci.plugins.LociImporter
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at fiji.FijiClassLoader.loadClass(FijiClassLoader.java:266)
	at fiji.FijiClassLoader.loadClass(FijiClassLoader.java:217)
	at fiji.FijiClassLoader.loadClass(FijiClassLoader.java:212)
	at ij.io.Opener.<clinit>(Opener.java:48)
	... 13 more


Steps to reproduce:

0. Download and unpack http://fiji.sc/downloads/Madison/fiji-linux-20110307.tar.bz2

1. Start Fiji, run the updater, and restart Fiji.

2. Uninstall Bio-Formats (loci_tools.jar) via the updater and restart Fiji.

3. Select "File > Open Samples > Lena (68K)".
Comment 1 Johannes Schindelin 2012-06-11 14:19:29 CDT
Thank you for the report! I fixed this in the javassisted hacks:

http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=commitdiff;h=633fbb3ff762b059e702e5b5a585f8c20991cf73

and uploaded a new fiji-compat.jar. Now things work here.