memcached session manager and liferay portal jboss bundled

217 views
Skip to first unread message

Mangesh

unread,
Apr 12, 2012, 10:43:38 AM4/12/12
to memcached-session-manager, ankita....@gmail.com
Hi,





I'm able to setup memcached on stand alone JBoss 5.1.0.

But when I am trying to setup memcache on liferay portal(6.0) bundled
with jboss(5.1.0) below is snapshot of error



10:01:00,011 INFO [MemcachedSessionService] MemcachedSessionService
starts initialization... (configured nodes definition
n1:10.255.240.118:11211 n2:10.255.240.118:11212, failover nodes n1)

10:01:00,058 ERROR [STDERR] 2012-04-12 10:01:00.058

10:01:00,058 ERROR [STDERR]

10:01:00,058 ERROR [STDERR] INFO

10:01:00,058 ERROR [STDERR]

10:01:00,058 ERROR [STDERR] net.spy.memcached.MemcachedConnection

10:01:00,058 ERROR [STDERR] :

10:01:00,058 ERROR [STDERR] Added {QA sa=/10.255.240.118:11211,
#Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0,
interested=0} to connect queue

10:01:00,073 ERROR [STDERR] 2012-04-12 10:01:00.073

10:01:00,073 ERROR [STDERR]

10:01:00,073 ERROR [STDERR] INFO

10:01:00,073 ERROR [STDERR]

10:01:00,073 ERROR [STDERR] net.spy.memcached.MemcachedConnection

10:01:00,089 ERROR [STDERR] :

10:01:00,089 ERROR [STDERR] Added {QA sa=/10.255.240.118:11212,
#Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0,
interested=0} to connect queue

10:01:00,089 INFO [SessionTrackerValve] Setting ignorePattern to .*\.
(png|gif|jpg|css|js|ico)$

10:01:00,105 INFO [MemcachedSessionService] Setting lockingMode to
null

10:01:00,105 INFO [MemcachedSessionService] Creating transcoder
factory de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory

10:01:00,105 ERROR [STDERR] 2012-04-12 10:01:00.105

10:01:00,120 ERROR [STDERR]

10:01:00,120 INFO [MemcachedSessionService] Found configured custom
converter classes, setting on transcoder factory:
de.javakaffee.web.msm.serializer.kryo.JodaDateTimeRegistration,de.javakaffee.web.msm.serializer.kryo.WicketSerializerFactory

10:01:00,136 ERROR [STDERR] INFO

10:01:00,136 ERROR [AbstractKernelController] Error installing to
Start: name=jboss.web.deployment:war=/invoker state=Create mode=Manual
requiredState=Installed

java.lang.AbstractMethodError:
de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory.createTranscoder(Lde/
javakaffee/web/msm/MemcachedSessionService$SessionManager;)Lde/
javakaffee/web/msm/SessionAttributesTranscoder;

at
de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(MemcachedSessionService.java:
428)

at
de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:
393)

at
de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:
124)

at
de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSessionManager.java:
607)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4402)

at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:
310)

at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:
142)

at
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:
461)

at
org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
157)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264)

at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

at
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:
206)

at $Proxy38.start(Unknown Source)

at
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:
42)

at
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:
37)

at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:
62)

at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
71)

at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:
51)

at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:
348)

at
org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:
286)

at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
1631)

at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:
934)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
1082)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
984)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
822)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
553)

at
org.jboss.system.ServiceController.doChange(ServiceController.java:
688)

at
org.jboss.system.ServiceController.start(ServiceController.java:460)

at
org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:
44)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:
59)

at
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:
150)

at
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:
66)

at
org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:
300)

at
org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:
286)

at
org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:
87)

at
org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:
1568)

at
org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:
1533)

at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:
943)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
1082)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
984)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
822)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
553)

at
org.jboss.system.ServiceController.doChange(ServiceController.java:
688)

at
org.jboss.system.ServiceController.start(ServiceController.java:460)

at
org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:
44)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:
59)

at
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:
150)

at
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:
66)

at
org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:
300)

at
org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:
286)

at
org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:
87)

at
org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:
1568)

at
org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:
1533)

at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:
943)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
1082)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
984)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
822)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
553)

at
org.jboss.system.ServiceController.doChange(ServiceController.java:
688)

at
org.jboss.system.ServiceController.start(ServiceController.java:460)

at
org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:
44)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:
59)

at
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:
150)

at
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:
66)

at
org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:
300)

at
org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:
286)

at
org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:
87)

at
org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:
1568)

at
org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:
1533)

at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:
943)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
1082)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
984)

at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
774)

at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
540)

at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:
121)

at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:
51)

at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:
62)

at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:
50)

at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:
171)

at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:
1439)

at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:
1157)

at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:
1178)

at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:
1098)

at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:
348)

at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
1631)

at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:
934)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
1082)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
984)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
822)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
553)

at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:
781)

at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:
702)

at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:
117)

at
org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:
70)

at
org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:
53)

at
org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
361)

at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:
348)

at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:
1631)

at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:
934)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
1082)

at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:
984)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
822)

at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:
553)

at
org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:
306)

at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:
271)

at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
461)

at org.jboss.Main.boot(Main.java:221)

at org.jboss.Main$1.run(Main.java:556)

at java.lang.Thread.run(Thread.java:619)



I'm really interested in memcached Please let me know resolution as
soon as possible.

Thanks in advanced.



Thanks & Regards,

Mangesh



https://community.jboss.org/thread/198261

Mangesh

unread,
Apr 13, 2012, 6:41:16 AM4/13/12
to memcached-session-manager
Hi Martin,

We have following jars in liferay portal(Jboss) server at below path:
$$\jboss-5.1.0\server\default\lib

Jars:
asm-3.3.1.jar
javolution-5.4.3.1.jar
kryo-1.03.jar
kryo-serializers-0.9.jar
memcached-2.4.jar
minlog-1.2.jar
msm-all-memcached-session-manager-1.5.0-SNAPSHOT.jar
msm-all-memcached-session-manager-jbossweb2-1.5.0-SNAPSHOT.jar
msm-javolution-serializer-1.3.0.jar
msm-kryo-serializer-1.6.0.jar
reflectasm-0.9.jar
tomcat-juli.jar
xom-1.2.3.jar
xpp3_min-1.1.3.4.O.jar
xstream-1.3.1.jar


We are getting below error in server log



10:22:26,272 INFO [KryoTranscoder] Starting with initialBufferSize
102400 and maxBufferSize 2048000
10:22:26,272 ERROR [STDERR]
10:22:26,287 ERROR [STDERR] INFO
10:22:26,287 ERROR [STDERR]
10:22:26,287 ERROR [STDERR] net.spy.memcached.MemcachedConnection
10:22:26,303 ERROR [STDERR] :
10:22:26,303 ERROR [STDERR] Connection state changed for
sun.nio.ch.SelectionKeyImpl@1d85a65
10:22:26,318 INFO [KryoTranscoder] Loading KryoCustomization
de.javakaffee.web.msm.serializer.kryo.JodaDateTimeRegistration
10:22:26,334 INFO [KryoTranscoder] Loading KryoCustomization
de.javakaffee.web.msm.serializer.kryo.WicketSerializerFactory
10:22:26,350 ERROR [KryoTranscoder] Could not instantiate
de.javakaffee.web.msm.serializer.kryo.WicketSerializerFactory,
omitting this KryoCustomizati
on/SerializerFactory.
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
513)
at
de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.createInstance(KryoTranscoder.java:
322)
at
de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.processElement(KryoTranscoder.java:
301)
at
de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.loadCustomConverter(KryoTranscoder.java:
282)
at
de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.createKryo(KryoTranscoder.java:
201)
at
de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.<init>(KryoTranscoder.java:
115)
at
de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory.getTranscoder(KryoTranscoderFactory.java:
61)
at
de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory.createTranscoder(KryoTranscoderFactory.java:
47)
org.jboss.system.ServiceController.doInstall(ServiceController.java:
670)
at
org.jboss.system.ServiceController.register(ServiceController.java:
373)
at
org.jboss.system.microcontainer.jmx.ServiceControllerRegistrationLifecycleCallback.install(ServiceControllerRegistrationLifecycleCallback.j
ava:104)
Caused by: java.lang.NoClassDefFoundError: org/apache/wicket/
MarkupContainer
at
de.javakaffee.web.msm.serializer.kryo.WicketChildListSerializerFactory.<clinit>(WicketChildListSerializerFactory.java:
33)
at
de.javakaffee.web.msm.serializer.kryo.WicketSerializerFactory.<init>(WicketSerializerFactory.java:
42)
... 160 more
10:22:26,725 INFO [MemcachedBackupSessionManager] Removing sessions
from local session map.
10:22:26,725 INFO [MemcachedSessionService] Stopping services.
10:22:26,725 ERROR [AbstractKernelController] Error installing to
Start: name=jboss.web.deployment:war=/invoker state=Create mode=Manual
requiredState
=Installed
java.lang.NullPointerException
at
de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionService.java:
354)


I appreciate your help.

Thanks & Regards,
Mangesh

Martin Grotzke

unread,
Apr 14, 2012, 3:08:15 PM4/14/12
to memcached-se...@googlegroups.com
Hi Mangesh,

I see two issues:
1) different version of msm and msm-serializers (the cause of
AbstractMethodError)
2) msm-*-serializer jars in server / tomcat lib dir instead of WEB-INF/lib

Regarding 1: you seem to be using kryo, therefore you should try the
msm-kryo-serializer-1.5.0.jar together with msm jars:
http://code.google.com/p/memcached-session-manager/downloads/detail?name=msm-kryo-serializer-1.5.0.jar

Regarding 2: msm-kryo-serializer jar and all dependencies it needs
(kryo-serializers, kryo, reflectasm, asm, minlog) must go into your
webapps WEB-INF/lib directory, otherwise you'll probably get some issues
later on.

Cheers,
Martin

signature.asc

Aaron Liu

unread,
Sep 5, 2016, 2:14:10 PM9/5/16
to memcached-session-manager, martin....@googlemail.com
Hi Martin,

We know that this thread is 4 years ago... but for some reason we have to use JBOSS 5.1.0-GA for compatibility purpose. We are trying to set up memcached session manager and facing an issue. When we configure 
session manager of memcached in JBOSS, the session expires really fast like within 30-60 seconds.

In the start log of jboss, we could see some problems but not sure if this is the reason. (There are several repetivie similar errors to the ones below. Only two are pasted here.)
17:45:53,464 INFO  [MemcachedSessionService] MemcachedSessionService starts initialization... (configured nodes definition n1:127.0.0.1:11211, failover nodes null)
17:45:53,543 ERROR [STDERR] 2016-09-05 17:45:53.542
17:45:53,543 ERROR [STDERR]  
17:45:53,543 ERROR [STDERR] INFO
17:45:53,543 ERROR [STDERR]  
17:45:53,543 ERROR [STDERR] net.spy.memcached.MemcachedConnection
17:45:53,543 ERROR [STDERR] :  
17:45:53,543 ERROR [STDERR] Added {QA sa=/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
17:45:53,554 ERROR [STDERR] 2016-09-05 17:45:53.552
17:45:53,558 ERROR [STDERR]  
17:45:53,558 ERROR [STDERR] INFO
17:45:53,558 ERROR [STDERR]  
17:45:53,558 ERROR [STDERR] net.spy.memcached.MemcachedConnection
17:45:53,558 ERROR [STDERR] :  
17:45:53,558 ERROR [STDERR] Connection state changed for sun.nio.ch.SelectionKeyImpl@7d0baedc
17:45:53,558 INFO  [SessionTrackerValve] Setting ignorePattern to .*\.(ico|png|gif|jpg|css|js)$
17:45:53,566 INFO  [MemcachedSessionService] Setting lockingMode to ALL
17:45:53,569 INFO  [MemcachedSessionService] Creating transcoder factory de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
17:45:53,588 INFO  [KryoTranscoder] Starting with initialBufferSize 102400 and maxBufferSize 2048000
17:45:53,636 INFO  [MemcachedSessionService] MemcachedSessionService finished initialization, have node ids [n1] and failover node ids []
17:45:53,693 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
17:45:53,719 INFO  [MemcachedSessionService] MemcachedSessionService starts initialization... (configured nodes definition n1:127.0.0.1:11211, failover nodes null)
17:45:53,720 ERROR [STDERR] 2016-09-05 17:45:53.720
17:45:53,720 ERROR [STDERR]  
17:45:53,720 ERROR [STDERR] INFO
17:45:53,720 ERROR [STDERR]  
17:45:53,720 ERROR [STDERR] net.spy.memcached.MemcachedConnection
17:45:53,720 ERROR [STDERR] :  
17:45:53,720 ERROR [STDERR] Added {QA sa=/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
17:45:53,720 INFO  [SessionTrackerValve] Setting ignorePattern to .*\.(ico|png|gif|jpg|css|js)$
17:45:53,722 INFO  [MemcachedSessionService] Setting lockingMode to ALL
17:45:53,722 ERROR [STDERR] 2016-09-05 17:45:53.722
17:45:53,722 ERROR [STDERR]  
17:45:53,722 INFO  [MemcachedSessionService] Creating transcoder factory de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
17:45:53,722 ERROR [STDERR] INFO
17:45:53,722 ERROR [STDERR]  
17:45:53,722 ERROR [STDERR] net.spy.memcached.MemcachedConnection
17:45:53,722 ERROR [STDERR] :  
17:45:53,722 ERROR [STDERR] Connection state changed for sun.nio.ch.SelectionKeyImpl@26aca3
17:45:53,723 INFO  [KryoTranscoder] Starting with initialBufferSize 102400 and maxBufferSize 2048000
17:45:53,723 INFO  [MemcachedSessionService] MemcachedSessionService finished initialization, have node ids [n1] and failover node ids []

Also some warnings, for example:
2016-09-05 17:46:03,143 WARN  [de.javakaffee.web.msm.LockingStrategyAll] (http-0.0.0.0-8380-2) Found no validity info for session id 385F1D244E55F8E700B63D4A7E98E92D-n1
2016-09-05 17:46:03,389 WARN  [de.javakaffee.web.msm.LockingStrategyAll] (http-0.0.0.0-8380-7) Found no validity info for session id 385F1D244E55F8E700B63D4A7E98E92D-n1

2016-09-05 17:46:14,699 WARN  [de.javakaffee.web.msm.LockingStrategyAll] (http-0.0.0.0-8380-5) Reached timeout when trying to aquire lock for session E18A843B60862B7F019E4D117909FABC-n1. Will use this session without this lock.

We suspect that maybe the versions of jar files are not correct. To set this up, we have already solved a lot of other version issues. But still, because there's no official guide about JBOSS 5.1.0's memcached session manager and some too old versions cannot be found in maven repository, we can't figure out the package dependency between these jar files. Now we have the jar files in ...../server/default/lib as below:
asm-5.0.3.jar  kryo-serializers-0.10.jar  msm-all-memcached-session-manager-1.5.0-SNAPSHOT.jar            msm-kryo-serializer-1.5.0.jar  reflectasm-1.11.3.jar
kryo-1.04.jar  minlog-1.3.0.jar           msm-all-memcached-session-manager-jbossweb2-1.5.0-SNAPSHOT.jar  objenesis-2.1.jar              spymemcached-2.11.1.jar

And the context configuration:
<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="n1:127.0.0.1:11211"
sticky="false"
sessionBackupAsync="false"
lockingMode="auto"
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
/>

If possible, could you please help find out the reason? Thanks very much!



在 2012年4月15日星期日 UTC+8上午3:08:15,Martin Grotzke写道:
Reply all
Reply to author
Forward
0 new messages