Open GoogleCodeExporter opened 8 years ago
I see the "java.io.StreamCorruptedException: invalid type code: 00" - perhaps
there's an issue with memcached? To be honest, I have no clue what could be the
issue on the side of msm.
Original comment by martin.grotzke
on 21 Oct 2014 at 12:56
Hi Martin,
Thank's for your quick reponse. I change the serialization strategy, i use now
kyro
<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="n1:192.168.56.101:11126"
sticky="false"
lockingMode="auto"
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
sessionBackupAsync="false"
sessionBackupTimeout="2000"
transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
/>
Now, I get a nother Exception described in the following stack trace :
AVERTISSEMENT: Could not deserialize session with id
BDC4DBBDF7F906A315F7A53CF38CEF43-n1 from memcached, session will be purged from
storage.
de.javakaffee.web.msm.TranscoderDeserializationException:
com.esotericsoftware.kryo.SerializationException: Unable to deserialize object
of type: java.util.concurrent.ConcurrentHashMap
at de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.deserializeAttributes(KryoTranscoder.java:291)
at de.javakaffee.web.msm.TranscoderService.deserializeAttributes(TranscoderService.java:171)
at de.javakaffee.web.msm.TranscoderService.deserialize(TranscoderService.java:128)
at de.javakaffee.web.msm.MemcachedSessionService.loadFromMemcached(MemcachedSessionService.java:1100)
at de.javakaffee.web.msm.MemcachedSessionService.findSession(MemcachedSessionService.java:585)
at de.javakaffee.web.msm.MemcachedBackupSessionManager.findSession(MemcachedBackupSessionManager.java:216)
at org.apache.catalina.connector.Request.doGetSession(Request.java:2865)
at org.apache.catalina.connector.Request.getSession(Request.java:2316)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)
at com.liferay.portal.kernel.servlet.SanitizedServletResponse.setXXSSProtection(SanitizedServletResponse.java:167)
at com.liferay.portal.kernel.servlet.SanitizedServletResponse.getSanitizedServletResponse(SanitizedServletResponse.java:81)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.secureResponseHeaders(InvokerFilter.java:275)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at de.javakaffee.web.msm.RequestTrackingContextValve.invoke(RequestTrackingContextValve.java:99)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:156)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.esotericsoftware.kryo.SerializationException: Unable to
deserialize object of type: java.util.concurrent.ConcurrentHashMap
at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:593)
at com.esotericsoftware.kryo.ObjectBuffer.readObject(ObjectBuffer.java:213)
at de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.deserializeAttributes(KryoTranscoder.java:289)
... 40 more
Caused by: com.esotericsoftware.kryo.SerializationException: Unable to find
class: com.liferay.portal.model.impl.LayoutImpl
at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:449)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:561)
at com.esotericsoftware.kryo.serialize.MapSerializer.readObjectData(MapSerializer.java:129)
at com.esotericsoftware.kryo.Serializer.readObject(Serializer.java:61)
at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:589)
... 42 more
Caused by: java.lang.ClassNotFoundException:
com.liferay.portal.model.impl.LayoutImpl
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:340)
at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:447)
... 46 more
Can you help to resolve this issue, i attached the log file of tomcat liferay.
Thank's in advance.
Original comment by sofiane....@serli.com
on 21 Oct 2014 at 1:27
According to the "java.lang.ClassNotFoundException:
com.liferay.portal.model.impl.LayoutImpl" it seems that there's a classloader
issue. Kryo should be loaded by the same classloader as your app and liferay,
typically this would be web-inf/lib, but I'm not sure how it should look like
for liferay.
Original comment by martin.grotzke
on 21 Oct 2014 at 6:49
Original issue reported on code.google.com by
sofiane....@serli.com
on 21 Oct 2014 at 9:11