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

Error with latest Fiji + imagej-server update site #41

Open
Tracked by #199
kephale opened this issue Aug 9, 2020 · 7 comments
Open
Tracked by #199

Error with latest Fiji + imagej-server update site #41

kephale opened this issue Aug 9, 2020 · 7 comments
Assignees

Comments

@kephale
Copy link

kephale commented Aug 9, 2020

I am getting this error when trying to use imagej-server from the Server update site on the latest Fiji

# ./ImageJ-linux64 --server
INFO  [2020-08-09 21:20:29,931] org.eclipse.jetty.util.log: Logging initialized @3484ms to org.eclipse.jetty.util.log.Slf4jLog
INFO  [2020-08-09 21:20:29,998] io.dropwizard.server.DefaultServerFactory: Registering jersey handler with root path prefix: /
INFO  [2020-08-09 21:20:29,999] io.dropwizard.server.DefaultServerFactory: Registering admin handler with root path prefix: /
INFO  [2020-08-09 21:20:30,008] io.dropwizard.server.ServerFactory: Starting ImageJ
INFO  [2020-08-09 21:20:30,081] org.eclipse.jetty.setuid.SetUIDListener: Opened application@30fa8a6b{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
INFO  [2020-08-09 21:20:30,081] org.eclipse.jetty.setuid.SetUIDListener: Opened admin@6f112f70{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
INFO  [2020-08-09 21:20:30,083] org.eclipse.jetty.server.Server: jetty-9.4.4.v20170414
INFO  [2020-08-09 21:20:30,352] org.eclipse.jetty.server.AbstractConnector: Started application@30fa8a6b{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
INFO  [2020-08-09 21:20:30,352] org.eclipse.jetty.server.AbstractConnector: Started admin@6f112f70{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
java.lang.NoClassDefFoundError: io/scif/io/IRandomAccess
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
	at java.lang.Class.getDeclaredMethods(Class.java:1975)
	at org.glassfish.jersey.server.model.IntrospectionModeller$2.run(IntrospectionModeller.java:253)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.glassfish.jersey.server.model.IntrospectionModeller.getAllDeclaredMethods(IntrospectionModeller.java:247)
	at org.glassfish.jersey.server.model.IntrospectionModeller.checkForNonPublicMethodIssues(IntrospectionModeller.java:172)
	at org.glassfish.jersey.server.model.IntrospectionModeller.doCreateResourceBuilder(IntrospectionModeller.java:119)
	at org.glassfish.jersey.server.model.IntrospectionModeller.access$000(IntrospectionModeller.java:80)
	at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:112)
	at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:109)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
	at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
	at org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:109)
	at org.glassfish.jersey.server.model.Resource.from(Resource.java:797)
	at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:465)
	at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184)
	at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350)
	at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
	at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
	at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:347)
	at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392)
	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177)
	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369)
	at javax.servlet.GenericServlet.init(GenericServlet.java:244)
	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:637)
	at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:421)
	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:348)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at com.codahale.metrics.jetty9.InstrumentedHandler.doStart(InstrumentedHandler.java:103)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:272)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.handler.StatisticsHandler.doStart(StatisticsHandler.java:252)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
	at org.eclipse.jetty.server.Server.start(Server.java:452)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.Server.doStart(Server.java:419)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:53)
	at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:44)
	at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
	at io.dropwizard.cli.Cli.run(Cli.java:75)
	at io.dropwizard.Application.run(Application.java:93)
	at net.imagej.server.DefaultImageJServerService.start(DefaultImageJServerService.java:74)
	at net.imagej.server.console.ServerArgument.handle(ServerArgument.java:76)
	at org.scijava.console.DefaultConsoleService.processArgs(DefaultConsoleService.java:99)
	at org.scijava.AbstractGateway.launch(AbstractGateway.java:103)
	at net.imagej.Main.main(Main.java:55)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.imagej.launcher.ClassLauncher.launch(ClassLauncher.java:291)
	at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:198)
	at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:89)
Caused by: java.lang.ClassNotFoundException: io.scif.io.IRandomAccess
	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)
	... 81 more
@ctrueden
Copy link
Member

ctrueden commented Aug 10, 2020

@kephale ImageJ Server has not yet been updated for pom-scijava 29, sorry.

scijava/pom-scijava#133

@kephale
Copy link
Author

kephale commented Aug 11, 2020

Aha, thank you kindly @ctrueden .

@frauzufall frauzufall self-assigned this Aug 11, 2020
@frauzufall
Copy link
Member

@kephale I will try to take care of this.

frauzufall added a commit that referenced this issue Aug 13, 2020
- upgrade pom-scijava to 29.2.1
- upgrade dropwizard from 1.2.0 to 2.0.9
- upgrade jersey-media-multipart from 2.23.2 to 2.31
- use jackson version 2.11.2
- delete DefaultTableIOPlugin, use TableIOService instead
- make TableIOPluginTest use new options API for reading and writing
tables
- use BytesHandle instead of ByteArrayHandle
frauzufall added a commit that referenced this issue Aug 13, 2020
- upgrade pom-scijava to 29.2.1
- upgrade dropwizard from 1.2.0 to 2.0.9
- upgrade jersey-media-multipart from 2.23.2 to 2.31
- use jackson version 2.11.2
- delete DefaultTableIOPlugin, use TableIOService instead
- make TableIOPluginTest use new options API for reading and writing
tables
- use BytesHandle instead of ByteArrayHandle
frauzufall pushed a commit that referenced this issue Aug 14, 2020
- upgrade pom-scijava to 29.2.1
- upgrade dropwizard from 1.2.0 to 2.0.9
- upgrade jersey-media-multipart from 2.23.2 to 2.31
- use jackson version 2.11.2
- delete DefaultTableIOPlugin, use TableIOService instead
- make TableIOPluginTest use new options API for reading and writing
tables
- use BytesHandle instead of ByteArrayHandle
@ctrueden
Copy link
Member

@kephale Thanks to @frauzufall and @imagejan, the imagej-server master branch is now built on pom-scijava 29. So it should work with current Fiji. Please test at your convenience (mvn -Pexec in an imagej-server working copy is an easy way). If it works for you, I'll release imagej-server 0.2.0 and upload to the Server update site; let me know!

@kephale
Copy link
Author

kephale commented Aug 16, 2020

Thank you @frauzufall, @imagejan, @ctrueden. I just tested and this works for me (specifically atom-imagej-mode).

@ctrueden ctrueden assigned ctrueden and hinerm and unassigned frauzufall Oct 28, 2020
@kephale
Copy link
Author

kephale commented Nov 22, 2020

Hi, just bumping this. It looks like this never got uploaded to the Server update site.

Thank you!
Kyle

@maximemoreillon
Copy link

Having the same issue here

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

5 participants