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 647 - [ERROR] Cannot create plugin
[ERROR] Cannot create plugin
Status: RESOLVED WONTFIX
Product: Fiji
Classification: Unclassified
Component: ImageJ2
unspecified
Other Linux
: P5 enhancement
Assigned To: ImageJ Developers Mailing List
Depends on:
Blocks:
 
Reported: 2013-08-01 13:43 CDT by Olex
Modified: 2013-10-23 13:18 CDT
1 user (show)

See Also:


Attachments
macros used to produce an error above (444 bytes, text/plain)
2013-08-01 14:00 CDT, Olex

Description Olex 2013-08-01 13:43:22 CDT
I get error message (see below) when I try to run "Analyse Particles" plugin. 

[ERROR] Cannot create plugin: label='Default Overlay Settings', menu='Image > Overlay > Overlay Options...', priority=0.0, enabled=true, pluginType=Command
java.lang.NoClassDefFoundError: Could not initialize class java.util.prefs.FileSystemPreferences
        at java.util.prefs.FileSystemPreferencesFactory.userRoot(FileSystemPreferencesFactory.java:41)
        at java.util.prefs.Preferences.userRoot(Preferences.java:451)
        at java.util.prefs.Preferences.userNodeForPackage(Preferences.java:365)
        at imagej.util.Prefs.prefs(Prefs.java:366)
        at imagej.util.Prefs.get(Prefs.java:131)
        at imagej.util.Prefs.get(Prefs.java:125)
        at imagej.module.AbstractModuleItem.loadValue(AbstractModuleItem.java:144)
        at imagej.options.OptionsPlugin.loadInput(OptionsPlugin.java:119)
        at imagej.options.OptionsPlugin.load(OptionsPlugin.java:89)
        at imagej.options.OptionsPlugin.setContext(OptionsPlugin.java:113)
        at org.scijava.Context.inject(Context.java:209)
        at org.scijava.plugin.DefaultPluginService.createInstance(DefaultPluginService.java:241)
        at imagej.options.DefaultOptionsService.createInstance(DefaultOptionsService.java:183)
        at imagej.options.DefaultOptionsService.getOptions(DefaultOptionsService.java:97)
        at imagej.data.display.DefaultOverlayService.initialize(DefaultOverlayService.java:332)
        at org.scijava.service.ServiceHelper.createService(ServiceHelper.java:224)
        at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:176)
        at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:155)
        at org.scijava.service.ServiceHelper.createService(ServiceHelper.java:219)
        at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:176)
        at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:155)
        at org.scijava.service.ServiceHelper.loadServices(ServiceHelper.java:126)
        at org.scijava.Context.<init>(Context.java:162)
        at org.scijava.Context.<init>(Context.java:120)
        at org.scijava.Context.<init>(Context.java:81)
        at org.scijava.Context.<init>(Context.java:71)
        at imagej.ImageJ.<init>(ImageJ.java:97)
        at fiji.Main$1.run(Main.java:115)
Comment 1 Olex 2013-08-01 14:00:00 CDT
Created attachment 113
macros used to produce an error above
Comment 2 Curtis Rueden 2013-08-01 16:45:47 CDT
Thanks for the report. It looks like a bug in Java. What version of Java are you running ("java -version"), and on which operating system?
Comment 3 Olex 2013-08-01 17:56:16 CDT
Thank you for your prompt response. I am using
 java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.9) (rhel-1.57.1.11.9.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

I tried to test macros on a cluster (linux 64-bit) in a headless mode.
Comment 4 Curtis Rueden 2013-10-23 13:18:29 CDT
Very sorry for the long delay in reply.

On my Ubuntu 12.04.2 LTS 64-bit system, I have:

> $ java -version
> java version "1.7.0_21"
> OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

And I am able to run Analyze Particles successfully in ImageJ2.

Is there any way you can upgrade the Java on your cluster? Unfortunately, OpenJDK is not being developed at all for Java6 anymore, but only for Java7.