jeckep / simple-sparkjava-redis-session-manager

Simple redis session manager for spark (sparkjava)
Apache License 2.0
3 stars 0 forks source link

Update to SparkJava 2.6.0 #1

Open Ribesg opened 7 years ago

Ribesg commented 7 years ago

When upgrading from SparkJava 2.5.5 to 2.6.0, I get the folowing error:

java.lang.NoClassDefFoundError: org/eclipse/jetty/server/session/AbstractSession
    at com.github.jeckep.spark.PSF.addListenersIfItIsFirstRequest(PSF.java:169)
    at com.github.jeckep.spark.PSF.lambda$new$0(PSF.java:38)
    at spark.FilterImpl$1.handle(FilterImpl.java:73)
    at spark.http.matching.BeforeFilters.execute(BeforeFilters.java:48)
    at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:129)
    at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1568)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
    at org.eclipse.jetty.server.Server.handle(Server.java:564)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
    at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
    at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
    at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:126)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.session.AbstractSession
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 22 more

http://sparkjava.com/news#spark-26-released

Ribesg commented 6 years ago

@jeckep Up