Error launching Trainable Weka Segmentation

@iarganda

I tried launching the Trainable Weka Segmentation today and got below error. Do you think it is an issue with my Fiji or something general?

Refreshing GOE props...
---Registering Weka Editors---
Problem registering ShowGlobalInfoToolTip/true: java.lang.ClassNotFoundException: ShowGlobalInfoToolTip
[ERROR] Module threw error
java.lang.ExceptionInInitializerError
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at weka.core.ClassDiscovery.find(ClassDiscovery.java:343)
	at weka.gui.GenericPropertiesCreator.generateOutputProperties(GenericPropertiesCreator.java:514)
	at weka.gui.GenericPropertiesCreator.execute(GenericPropertiesCreator.java:606)
	at weka.gui.GenericPropertiesCreator.<clinit>(GenericPropertiesCreator.java:149)
	at weka.core.WekaPackageManager.refreshGOEProperties(WekaPackageManager.java:748)
	at weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:742)
	at weka.core.WekaPackageManager.loadPackages(WekaPackageManager.java:677)
	at weka.gui.GenericObjectEditor.determineClasses(GenericObjectEditor.java:166)
	at weka.gui.GenericObjectEditor.<clinit>(GenericObjectEditor.java:245)
	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:156)
	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088)
	at java.lang.reflect.Field.getFieldAccessor(Field.java:1069)
	at java.lang.reflect.Field.get(Field.java:393)
	at trainableSegmentation.Weka_Segmentation.<clinit>(Weka_Segmentation.java:2457)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at ij.IJ.runUserPlugIn(IJ.java:227)
	at ij.IJ.runPlugIn(IJ.java:193)
	at ij.IJ.runPlugIn(IJ.java:182)
	at net.imagej.legacy.command.LegacyCommand.run(LegacyCommand.java:59)
	at org.scijava.command.CommandModule.run(CommandModule.java:199)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:168)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:127)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:66)
	at org.scijava.thread.DefaultThreadService$3.call(DefaultThreadService.java:238)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at weka.gui.GenericObjectEditor.getClassnames(GenericObjectEditor.java:1761)
	at weka.core.converters.ConverterUtils.initialize(ConverterUtils.java:758)
	at weka.core.converters.ConverterUtils.<clinit>(ConverterUtils.java:711)
	... 36 more

I do not get that error, weird! Are you up to date? Are you using any special version of it?

Could my Fiji then…I will check!

Hi Christian,
Did you resolve this error. Because I am also facing the same issue.
Regards,
Lakshmi

Interesting! No I did not, because i assumed it is something to do with my personally messed up Fiji…
Can you check which update sites you have enabled and post a list of them here?

Hi,
These are the Fiji update sites. In fact, I tried uninstalling Fiji & reinstalled the latest version. But still not successful.
ImageJ
Fiji
Java-8
3D ImageJ Suite
BAR
Bio-formats
BioVoxxel
ClearVolume
CMCI-EMBL
EMBL-CBA
FFMPEG
IJPB-plugins
ImageJ-ITK
ImageScience
OMERO 5.4
ScientiFig

Regards,
Lakshmi

@iarganda
Could you maybe try with a fresh installation of Fiji?
@lakshmi seems to get the error as well…

Hi
I tried fresh installation with Fiji. But still has the same problem. Here is the screenshot what happens when I try opening “Trainable Weka Segmentation”. But it never loads the plugin.

Regards,
Lakshmi

Hi Christian,

Fixed it!!!Its working!!!
I just had a version of Fiji in the Downloads folder. In that it worked, so I replaced the Applications/Fiji with the version from Downloads. Its working!!!
Let me know in case this works for if you could try…

Regards,
Lakshmi

1 Like