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

I'm facing "Not ClassLoadingObjectInputStream" in jetty clustered environment while trying to config session in centralised one #1

Open
santhoshrenga opened this issue Dec 26, 2019 · 0 comments

Comments

@santhoshrenga
Copy link

santhoshrenga commented Dec 26, 2019

Deserialization having an issue with the following. Suggestions are welcomed and thanks in advance.

jettyredis2_1  | java.io.IOException: Not ClassLoadingObjectInputStream
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionData.deserializeAttributes(SessionData.java:143)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionData.readObject(SessionData.java:470)
jettyredis2_1  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jettyredis2_1  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jettyredis2_1  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jettyredis2_1  | 	at java.lang.reflect.Method.invoke(Method.java:498)
jettyredis2_1  | 	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
jettyredis2_1  | 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
jettyredis2_1  | 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
jettyredis2_1  | 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
jettyredis2_1  | 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
jettyredis2_1  | 	at com.paltalk.jetty.session.redis.RedisSessionDataStore.lambda$load$0(RedisSessionDataStore.java:110)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1418)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1456)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionContext.run(SessionContext.java:96)
jettyredis2_1  | 	at com.paltalk.jetty.session.redis.RedisSessionDataStore.load(RedisSessionDataStore.java:123)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.AbstractSessionCache.loadSession(AbstractSessionCache.java:464)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.AbstractSessionCache.get(AbstractSessionCache.java:365)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionHandler.getSession(SessionHandler.java:999)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionHandler.getHttpSession(SessionHandler.java:609)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionHandler.checkRequestedSessionId(SessionHandler.java:1747)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1649)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
jettyredis2_1  | 	at org.eclipse.jetty.server.Server.handle(Server.java:505)
jettyredis2_1  | 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
jettyredis2_1  | 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
jettyredis2_1  | 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
jettyredis2_1  | 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
jettyredis2_1  | 	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
jettyredis2_1  | 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
jettyredis2_1  | 	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
jettyredis2_1  | 	at java.lang.Thread.run(Thread.java:748)
jettyredis2_1  | 2019-12-26 13:16:26.504:DBUG:oejs.session:qtp254413710-16: sessionHandler=org.eclipse.jetty.server.session.SessionHandler2110756088==dftMaxIdleSec=1800 session=null
jettyredis2_1  | 2019-12-26 13:16:26.537:DBUG:oejs.session:qtp254413710-16: FinalSession=null, old_session_handler=null, this=org.eclipse.jetty.server.session.SessionHandler2110756088==dftMaxIdleSec=1800, calling complete=true
jettyredis2_1  | 2019-12-26 13:16:26.538:DBUG:oejs.session:qtp254413710-16: Complete called with session null
jettyredis2_1  | 2019-12-26 13:16:26.539:WARN:oejs.HttpChannel:qtp254413710-16: /testredisjetty
jettyredis2_1  | java.lang.NullPointerException
jettyredis2_1  | 	at main.java.JettyRedisTest.doGet(JettyRedisTest.java:21)
jettyredis2_1  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
jettyredis2_1  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
jettyredis2_1  | 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
jettyredis2_1  | 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
jettyredis2_1  | 	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:214)
jettyredis2_1  | 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
jettyredis2_1  | 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
jettyredis2_1  | 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
jettyredis2_1  | 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
jettyredis2_1  | 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)
jettyredis2_1  | 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
jettyredis2_1  | 	at org.eclipse.jetty.server.Server.handle(Server.java:505)
jettyredis2_1  | 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
jettyredis2_1  | 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
jettyredis2_1  | 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
jettyredis2_1  | 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
jettyredis2_1  | 	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
jettyredis2_1  | 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
jettyredis2_1  | 	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
jettyredis2_1  | 	at java.lang.Thread.run(Thread.java:748)
jettyredis2_1  | 2019-12-26 13:16:26.544:DBUG:oejs.session:qtp254413710-16: SessionHandler.doScope```
@santhoshrenga santhoshrenga changed the title I'm facing "Not ClassLoadingObjectInputStream" in jetty clustered environment while trying to config session in centralised environment I'm facing "Not ClassLoadingObjectInputStream" in jetty clustered environment while trying to config session in centralised one Dec 26, 2019
@santhoshrenga santhoshrenga reopened this Dec 26, 2019
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

1 participant