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

Bug introduced in v2.5.3 when running jetty or docker #561

Open
olanowak opened this issue Nov 10, 2022 · 8 comments
Open

Bug introduced in v2.5.3 when running jetty or docker #561

olanowak opened this issue Nov 10, 2022 · 8 comments

Comments

@olanowak
Copy link

When I run mvn jetty:run I get this exception

[INFO] Started @4818ms
[INFO] Started Jetty Server
WARN [2022-11-10 15:14:35,073] (Reflections->scan->220): could not scan file /home/anowak/.m2/repository/edu/isi/karma-semanticlabeling/0.0.1-SNAPSHOT/karma-semanticlabeling-0.0.1-SNAPSHOT.jar!/edu/isi/karma/semanticlabeling/app/App.class with scanner TypeAnnotationsScanner
org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:30)
	at org.reflections.Reflections.scan(Reflections.java:217)
	at org.reflections.Reflections.scan(Reflections.java:166)
	at org.reflections.Reflections.<init>(Reflections.java:94)
	at org.reflections.Reflections.<init>(Reflections.java:135)
	at org.reflections.Reflections.<init>(Reflections.java:108)
	at edu.isi.karma.controller.history.CommandHistory.<clinit>(CommandHistory.java:91)
	at edu.isi.karma.rep.Workspace.<init>(Workspace.java:58)
	at edu.isi.karma.rep.WorkspaceManager.createWorkspaceWithPreferencesId(WorkspaceManager.java:66)
	at edu.isi.karma.webserver.KarmaServlet.doGet(KarmaServlet.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
	at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:516)
	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:128)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:118)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:26)
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:27)
	... 50 more
Caused by: java.io.IOException: invalid constant type: 18
	at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
	at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
	at javassist.bytecode.ConstPool.<init>(ConstPool.java:149)
	at javassist.bytecode.ClassFile.read(ClassFile.java:737)
	at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:126)
	... 53 more
WARN [2022-11-10 15:14:35,080] (Reflections->scan->220): could not scan file /home/anowak/.m2/repository/edu/isi/karma-semanticlabeling/0.0.1-SNAPSHOT/karma-semanticlabeling-0.0.1-SNAPSHOT.jar!/edu/isi/karma/semanticlabeling/app/App.class with scanner SubTypesScanner
org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:30)
	at org.reflections.Reflections.scan(Reflections.java:217)
	at org.reflections.Reflections.scan(Reflections.java:166)
	at org.reflections.Reflections.<init>(Reflections.java:94)
	at org.reflections.Reflections.<init>(Reflections.java:135)
	at org.reflections.Reflections.<init>(Reflections.java:108)
	at edu.isi.karma.controller.history.CommandHistory.<clinit>(CommandHistory.java:91)
	at edu.isi.karma.rep.Workspace.<init>(Workspace.java:58)
	at edu.isi.karma.rep.WorkspaceManager.createWorkspaceWithPreferencesId(WorkspaceManager.java:66)
	at edu.isi.karma.webserver.KarmaServlet.doGet(KarmaServlet.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
	at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:516)
	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:128)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:118)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:26)
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:27)
	... 50 more
Caused by: java.io.IOException: invalid constant type: 18
	at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
	at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
	at javassist.bytecode.ConstPool.<init>(ConstPool.java:149)
	at javassist.bytecode.ClassFile.read(ClassFile.java:737)
	at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:126)
	... 53 more
WARN [2022-11-10 15:14:35,225] (Reflections->scan->220): could not scan file /home/anowak/.m2/repository/edu/isi/karma-semanticlabeling/0.0.1-SNAPSHOT/karma-semanticlabeling-0.0.1-SNAPSHOT.jar!/edu/isi/karma/semanticlabeling/app/App.class with scanner TypeAnnotationsScanner
org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:30)
	at org.reflections.Reflections.scan(Reflections.java:217)
	at org.reflections.Reflections.scan(Reflections.java:166)
	at org.reflections.Reflections.<init>(Reflections.java:94)
	at org.reflections.Reflections.<init>(Reflections.java:135)
	at org.reflections.Reflections.<init>(Reflections.java:108)
	at edu.isi.karma.webserver.ExecutionController.dynamicallyBuildCommandFactoryMap(ExecutionController.java:64)
	at edu.isi.karma.webserver.ExecutionController.<clinit>(ExecutionController.java:54)
	at edu.isi.karma.webserver.KarmaServlet.doGet(KarmaServlet.java:133)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
	at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:516)
	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:128)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:118)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:26)
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:27)
	... 49 more
Caused by: java.io.IOException: invalid constant type: 18
	at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
	at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
	at javassist.bytecode.ConstPool.<init>(ConstPool.java:149)
	at javassist.bytecode.ClassFile.read(ClassFile.java:737)
	at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:126)
	... 52 more
WARN [2022-11-10 15:14:35,226] (Reflections->scan->220): could not scan file /home/anowak/.m2/repository/edu/isi/karma-semanticlabeling/0.0.1-SNAPSHOT/karma-semanticlabeling-0.0.1-SNAPSHOT.jar!/edu/isi/karma/semanticlabeling/app/App.class with scanner SubTypesScanner
org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:30)
	at org.reflections.Reflections.scan(Reflections.java:217)
	at org.reflections.Reflections.scan(Reflections.java:166)
	at org.reflections.Reflections.<init>(Reflections.java:94)
	at org.reflections.Reflections.<init>(Reflections.java:135)
	at org.reflections.Reflections.<init>(Reflections.java:108)
	at edu.isi.karma.webserver.ExecutionController.dynamicallyBuildCommandFactoryMap(ExecutionController.java:64)
	at edu.isi.karma.webserver.ExecutionController.<clinit>(ExecutionController.java:54)
	at edu.isi.karma.webserver.KarmaServlet.doGet(KarmaServlet.java:133)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
	at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:516)
	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.reflections.ReflectionsException: could not create class file from App.class
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:128)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:118)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:26)
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:27)
	... 49 more
Caused by: java.io.IOException: invalid constant type: 18
	at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
	at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
	at javassist.bytecode.ConstPool.<init>(ConstPool.java:149)
	at javassist.bytecode.ClassFile.read(ClassFile.java:737)
	at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
	at org.reflections.adapters.JavassistAdapter.createClassObject(JavassistAdapter.java:126)
	... 52 more

The same happens when running docker container.
I believe it was introduced in v2.5.3 as running the same commands in earlier tags works fine.

@Bidisha010496
Copy link
Collaborator

This issue is fixed now. Kindly reopen this if you still see it.

@olanowak
Copy link
Author

olanowak commented Nov 16, 2022

Thanks. It works when I run it locally.
But when trying to build the image the build gets stuck on downloading maven artifacts from repositories.

[WARNING] Failure to transfer edu.isi:commands-python:0.0.1-SNAPSHOT/maven-metadata.xml from http://repo.karma.isi.edu/artifactory/libs-release-local was cached in the local repository, resolution will not be reattempted until the update interval of KarmaRepo has elapsed or updates are forced. Original error: Could not transfer metadata edu.isi:commands-python:0.0.1-SNAPSHOT/maven-metadata.xml from/to KarmaRepo (http://repo.karma.isi.edu/artifactory/libs-release-local): Transfer failed for http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/commands-python/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from central: https://repo1.maven.org/maven2/edu/isi/commands-publish/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from cloudera-repo: https://repository.cloudera.com/artifactory/cloudera-repos/edu/isi/commands-publish/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from maven2.maven.org: https://repo1.maven.org/maven2/edu/isi/commands-publish/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from osgeo: https://repo.osgeo.org/repository/release/edu/isi/commands-publish/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from KarmaRepo: http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/commands-publish/0.0.1-SNAPSHOT/maven-metadata.xml

after printing it the process is stuck
It looks like the last repo is broken.

@Bidisha010496
Copy link
Collaborator

Fixed it. Please try the build.

@olanowak
Copy link
Author

I'm afraid it still doesn't work

curl http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-util/0.0.1-SNAPSHOT/maven-metadata.xml
curl: (28) Failed to connect to repo.karma.isi.edu port 80 after 131075 ms: timeout

@Bidisha010496 Bidisha010496 reopened this Nov 29, 2022
@Bidisha010496
Copy link
Collaborator

Hi,

Are you trying to build from any particular branch other than the master?

@olanowak
Copy link
Author

Yes. I use master and I have pulled all the changes. Local build e.g. mvn install works for me (probably I have all dependencies already in my .m2) but running docker container fails.

  1. First I built docker image with docker build -t karma .
  2. Then I'm trying to run it with docker run karma. This one fails every time:
➜  Dariah-karma git:(master) ✗ docker run -p 8080:8080 -v /home/anowak/repo/dariah/karma/karma_home:/karma_home  --env KARMA_USER_HOME=/karma_home 79454bb027a2            
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/gmaven/gmaven-plugin/1.3/gmaven-plugin-1.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/gmaven/gmaven-plugin/1.3/gmaven-plugin-1.3.pom (11 kB at 21 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/gmaven/gmaven/1.3/gmaven-1.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/gmaven/gmaven/1.3/gmaven-1.3.pom (43 kB at 135 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/gmaven/gmaven-plugin/1.3/gmaven-plugin-1.3.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/gmaven/gmaven-plugin/1.3/gmaven-plugin-1.3.jar (73 kB at 597 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.4.43.v20210629/jetty-maven-plugin-9.4.43.v20210629.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.4.43.v20210629/jetty-maven-plugin-9.4.43.v20210629.pom (13 kB at 171 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.4.43.v20210629/jetty-maven-plugin-9.4.43.v20210629.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.4.43.v20210629/jetty-maven-plugin-9.4.43.v20210629.jar (127 kB at 1.1 MB/s)
[INFO] 
[INFO] -------------------------< edu.isi:karma-web >--------------------------
[INFO] Building karma-web 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:9.4.43.v20210629:run (default-cli) > test-compile @ karma-web >>>
Downloading from central: https://repo1.maven.org/maven2/edu/isi/karma-common/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from maven2.maven.org: https://repo1.maven.org/maven2/edu/isi/karma-common/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from osgeo: https://repo.osgeo.org/repository/release/edu/isi/karma-common/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from cloudera-repo: https://repository.cloudera.com/artifactory/cloudera-repos/edu/isi/karma-common/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from KarmaRepo: http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-common/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata edu.isi:karma-common:0.0.1-SNAPSHOT/maven-metadata.xml from/to KarmaRepo (http://repo.karma.isi.edu/artifactory/libs-release-local): Transfer failed for http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-common/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Failure to transfer edu.isi:karma-common:0.0.1-SNAPSHOT/maven-metadata.xml from http://repo.karma.isi.edu/artifactory/libs-release-local was cached in the local repository, resolution will not be reattempted until the update interval of KarmaRepo has elapsed or updates are forced. Original error: Could not transfer metadata edu.isi:karma-common:0.0.1-SNAPSHOT/maven-metadata.xml from/to KarmaRepo (http://repo.karma.isi.edu/artifactory/libs-release-local): Transfer failed for http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-common/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from osgeo: https://repo.osgeo.org/repository/release/edu/isi/webkarma/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from central: https://repo1.maven.org/maven2/edu/isi/webkarma/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from cloudera-repo: https://repository.cloudera.com/artifactory/cloudera-repos/edu/isi/webkarma/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from maven2.maven.org: https://repo1.maven.org/maven2/edu/isi/webkarma/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from KarmaRepo: http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/webkarma/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata edu.isi:webkarma:0.0.1-SNAPSHOT/maven-metadata.xml from/to KarmaRepo (http://repo.karma.isi.edu/artifactory/libs-release-local): Transfer failed for http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/webkarma/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from cloudera-repo: https://repository.cloudera.com/artifactory/cloudera-repos/edu/isi/karma-typer/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from maven2.maven.org: https://repo1.maven.org/maven2/edu/isi/karma-typer/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from central: https://repo1.maven.org/maven2/edu/isi/karma-typer/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from osgeo: https://repo.osgeo.org/repository/release/edu/isi/karma-typer/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from KarmaRepo: http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-typer/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata edu.isi:karma-typer:0.0.1-SNAPSHOT/maven-metadata.xml from/to KarmaRepo (http://repo.karma.isi.edu/artifactory/libs-release-local): Transfer failed for http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-typer/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Failure to transfer edu.isi:karma-typer:0.0.1-SNAPSHOT/maven-metadata.xml from http://repo.karma.isi.edu/artifactory/libs-release-local was cached in the local repository, resolution will not be reattempted until the update interval of KarmaRepo has elapsed or updates are forced. Original error: Could not transfer metadata edu.isi:karma-typer:0.0.1-SNAPSHOT/maven-metadata.xml from/to KarmaRepo (http://repo.karma.isi.edu/artifactory/libs-release-local): Transfer failed for http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-typer/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from central: https://repo1.maven.org/maven2/edu/isi/karma-util/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from maven2.maven.org: https://repo1.maven.org/maven2/edu/isi/karma-util/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from osgeo: https://repo.osgeo.org/repository/release/edu/isi/karma-util/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from cloudera-repo: https://repository.cloudera.com/artifactory/cloudera-repos/edu/isi/karma-util/0.0.1-SNAPSHOT/maven-metadata.xml
Downloading from KarmaRepo: http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-util/0.0.1-SNAPSHOT/maven-metadata.xml

And if I just try to curl this repo http://repo.karma.isi.edu/artifactory/libs-release-local/edu/isi/karma-util/0.0.1-SNAPSHOT/maven-metadata.xml it ends with timeout

I converted Dockerfile so it would just run jetty and use the war I built outside of Docker. Karma works fine in this scenario but openrdf-sesame does not... (I get Unknown repository: karma_models when trying to access http://localhost:8080/openrdf-sesame/repositories/karma_models. Moreover I can see in Karma logs that the SPARQL query run against this endpoint fails) . This is my altered Dockerfile:

FROM jetty:9.4-jdk11

USER jetty
ENV TZ=Europe/Warsaw
COPY target/karma-web-*-SNAPSHOT.war  /var/lib/jetty/webapps/root.war
COPY external_webapps/cleaningService.war  /var/lib/jetty/webapps/cleaningService.war
COPY external_webapps/cluster-1.0.war  /var/lib/jetty/webapps/clusterService.war
COPY external_webapps/openrdf-sesame.war  /var/lib/jetty/webapps/openrdf-sesame.war
COPY external_webapps/openrdf-workbench.war /var/lib/jetty/webapps/openrdf-workbench.war

USER root
RUN apt-get update && apt-get install -y telnet wget iputils-ping
RUN chgrp -R 0 / 2> /dev/null || true && \
    chmod -R g=u / 2> /dev/null || true
USER jetty

EXPOSE 8080

@olanowak
Copy link
Author

olanowak commented Dec 2, 2022

The issue with repo.karma.isi.edu remains.
But I was able to resolve all other problems by using dockerized tomcat and config from karma-app/conf

@Bidisha010496
Copy link
Collaborator

I have already removed dependency on repo.karma.isi.edu from the repo. It should not be attempting to download the dependencies remotely.

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