Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError: StopWatch #75

Closed
haesleinhuepf opened this issue Jun 27, 2020 · 9 comments
Closed

NoClassDefFoundError: StopWatch #75

haesleinhuepf opened this issue Jun 27, 2020 · 9 comments

Comments

@haesleinhuepf
Copy link

Hi @StephanPreibisch, @hoerldavid et al.,

I was just playing with BigStitcher for teaching purposes. While resaving the Grid3D example from the wiki page, I retrieved an error message (see below). I'm running in a freshly downloaded Fiji, where only clij,clij2 and BigStitcher update sites are activated.

I can continue working with the raw data, so no hurry. Let me know if I can help tracing down this bug.

Cheers,
Robert

(Fiji Is Just) ImageJ 2.0.0-rc-72/1.52p; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 80MB of 12033MB (<1%)
 
java.lang.NoClassDefFoundError: org/perf4j/StopWatch
	at net.preibisch.mvrecon.fiji.spimdata.imgloaders.LegacyFileMapImgLoaderLOCI.openImg(LegacyFileMapImgLoaderLOCI.java:205)
	at net.preibisch.mvrecon.fiji.spimdata.imgloaders.LegacyFileMapImgLoaderLOCI.getImage(LegacyFileMapImgLoaderLOCI.java:158)
	at mpicbg.spim.data.legacy.LegacyImgLoaderWrapper$SetupImgLoaderWrapper.getImage(LegacyImgLoaderWrapper.java:79)
	at bdv.export.WriteSequenceToHdf5.writeHdf5PartitionFile(WriteSequenceToHdf5.java:446)
	at bdv.export.WriteSequenceToHdf5.writeHdf5File(WriteSequenceToHdf5.java:153)
	at net.preibisch.mvrecon.fiji.plugin.resave.Generic_Resave_HDF5.writeHDF5(Generic_Resave_HDF5.java:261)
	at net.preibisch.mvrecon.fiji.datasetmanager.FileListDatasetDefinition.createDataset(FileListDatasetDefinition.java:1147)
	at net.preibisch.mvrecon.fiji.plugin.Define_Multi_View_Dataset.defineDataset(Define_Multi_View_Dataset.java:142)
	at net.preibisch.mvrecon.fiji.plugin.Define_Multi_View_Dataset.run(Define_Multi_View_Dataset.java:80)
	at ij.IJ.runUserPlugIn(IJ.java:230)
	at ij.IJ.runPlugIn(IJ.java:193)
	at ij.Executer.runCommand(Executer.java:137)
	at ij.Executer.run(Executer.java:66)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.perf4j.StopWatch
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 14 more
@haesleinhuepf
Copy link
Author

Addendum: Similar error pops up later when trying to view something in the BigDataViewer:

WARNING:
Opening <SpimData> dataset that is not suited for interactive browsing.
Consider resaving as HDF5 for better performance.
Exception in thread "PainterThread" java.lang.NoClassDefFoundError: org/perf4j/StopWatch
	at net.preibisch.mvrecon.fiji.spimdata.imgloaders.LegacyFileMapImgLoaderLOCI.openImg(LegacyFileMapImgLoaderLOCI.java:205)
	at net.preibisch.mvrecon.fiji.spimdata.imgloaders.LegacyFileMapImgLoaderLOCI.getImage(LegacyFileMapImgLoaderLOCI.java:158)
	at mpicbg.spim.data.legacy.LegacyImgLoaderWrapper$SetupImgLoaderWrapper.getImage(LegacyImgLoaderWrapper.java:79)
	at bdv.spimdata.WrapBasicImgLoader$WrapSetupImgLoader.getImage(WrapBasicImgLoader.java:144)
	at bdv.SpimSource.getImage(SpimSource.java:60)
	at bdv.AbstractSpimSource.lambda$new$0(AbstractSpimSource.java:164)
	at net.imglib2.cache.ref.WeakRefLoaderCache.get(WeakRefLoaderCache.java:102)
	at net.imglib2.cache.ref.BoundedSoftRefLoaderCache.get(BoundedSoftRefLoaderCache.java:54)
	at net.imglib2.cache.util.LoaderCacheAsCacheAdapter.get(LoaderCacheAsCacheAdapter.java:43)
	at net.imglib2.cache.util.CacheAsUncheckedCacheAdapter.get(CacheAsUncheckedCacheAdapter.java:41)
	at bdv.AbstractSpimSource.getSource(AbstractSpimSource.java:231)
	at bdv.AbstractSpimSource.getSource(AbstractSpimSource.java:223)
	at bdv.tools.transformation.TransformedSource.getSource(TransformedSource.java:219)
	at bdv.viewer.render.MultiResolutionRenderer.getTransformedSource(MultiResolutionRenderer.java:788)
	at bdv.viewer.render.MultiResolutionRenderer.createSingleSourceProjector(MultiResolutionRenderer.java:732)
	at bdv.viewer.render.MultiResolutionRenderer.createProjector(MultiResolutionRenderer.java:652)
	at bdv.viewer.render.MultiResolutionRenderer.paint(MultiResolutionRenderer.java:511)
	at bdv.viewer.ViewerPanel.paint(ViewerPanel.java:483)
	at net.imglib2.ui.PainterThread.run(PainterThread.java:86)
Caused by: java.lang.ClassNotFoundException: org.perf4j.StopWatch
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 19 more
Exception in thread "Thread-7" java.lang.NoClassDefFoundError: org/perf4j/StopWatch
	at net.preibisch.mvrecon.fiji.spimdata.imgloaders.LegacyFileMapImgLoaderLOCI.openImg(LegacyFileMapImgLoaderLOCI.java:205)
	at net.preibisch.mvrecon.fiji.spimdata.imgloaders.LegacyFileMapImgLoaderLOCI.getImage(LegacyFileMapImgLoaderLOCI.java:158)
	at mpicbg.spim.data.legacy.LegacyImgLoaderWrapper$SetupImgLoaderWrapper.getImage(LegacyImgLoaderWrapper.java:79)
	at bdv.spimdata.WrapBasicImgLoader$WrapSetupImgLoader.getImage(WrapBasicImgLoader.java:144)
	at bdv.SpimSource.getImage(SpimSource.java:60)
	at bdv.AbstractSpimSource.lambda$new$0(AbstractSpimSource.java:164)
	at net.imglib2.cache.ref.WeakRefLoaderCache.get(WeakRefLoaderCache.java:102)
	at net.imglib2.cache.ref.BoundedSoftRefLoaderCache.get(BoundedSoftRefLoaderCache.java:54)
	at net.imglib2.cache.util.LoaderCacheAsCacheAdapter.get(LoaderCacheAsCacheAdapter.java:43)
	at net.imglib2.cache.util.CacheAsUncheckedCacheAdapter.get(CacheAsUncheckedCacheAdapter.java:41)
	at bdv.AbstractSpimSource.getSource(AbstractSpimSource.java:231)
	at bdv.AbstractSpimSource.getSource(AbstractSpimSource.java:223)
	at bdv.tools.transformation.TransformedSource.getSource(TransformedSource.java:219)
	at bdv.tools.InitializeViewerState.initTransform(InitializeViewerState.java:119)
	at bdv.tools.InitializeViewerState.initTransform(InitializeViewerState.java:80)
	at bdv.BigDataViewer.open(BigDataViewer.java:496)
	at net.preibisch.mvrecon.fiji.spimdata.explorer.popup.BDVPopup.createBDV(BDVPopup.java:295)
	at net.preibisch.mvrecon.fiji.spimdata.explorer.popup.BDVPopup.createBDV(BDVPopup.java:270)
	at net.preibisch.mvrecon.fiji.spimdata.explorer.popup.BDVPopup$MyActionListener$1.run(BDVPopup.java:112)
	at java.lang.Thread.run(Thread.java:748)

@haesleinhuepf
Copy link
Author

Was able to make it run by downloading this jar and putting it in Fiji:

https://mvnrepository.com/artifact/org.perf4j/perf4j/0.9.16

I assume it's just missing on the update site?!

Cheers,
Robert

@StephanPreibisch
Copy link
Member

Hi, I cannot reproduce that error. When exactly do you get it?

@StephanPreibisch
Copy link
Member

Also, I have the perf4f jar in my Fiji. Did you maybe remove it on your update site?
-rw-r--r--@ 1 spreibi admin 110019 Oct 11 2017 perf4j-0.9.13.jar

@StephanPreibisch
Copy link
Member

StephanPreibisch commented Jun 28, 2020

Oh, this is worse, I just clicked Update and it is being uninstalled from the ImageJ update site. @ctrueden do you know anything about it? Seems that BigDataViewer is using it. Also calling @tpietzsch here ...

Screen Shot 2020-06-28 at 2 26 12 PM

@StephanPreibisch
Copy link
Member

In BigStitcher we have it as a transitive dependency from formats-bsd ...
Screen Shot 2020-06-28 at 2 28 49 PM

@haesleinhuepf
Copy link
Author

Maybe it's related to the (currently) broken Fiji update site? See details:
https://forum.image.sc/t/error-could-not-update-from-site-fiji/39611

Btw. you can reproduce the bug by installing bigstitcher to a freshly downloaded Fiji and then converting your Grid 3D Example data set in HDF5 like shown in this video:
bigstitcher_crash-28-06-2020-20-27-24

@haesleinhuepf
Copy link
Author

Ok, the problem is solved. I assume it was related to the broken Fiji update site. I just tried again with a freshly downloaded Fiji and it's fine now.
Thanks for listening! ;-)

@StephanPreibisch
Copy link
Member

Thanks so much for reporting it! Was simply bad timing I guess :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants