Errors from org.springframework.security

34 views
Skip to first unread message

Sorin Dudui

unread,
May 8, 2015, 12:08:09 PM5/8/15
to memcached-se...@googlegroups.com
Hi,


I have tried to use the memcached-session-manager with our web application. I have set 2 Tomcats on the same Centos machine and I have updated the context files as:


<!--<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="192.168.254.128:11211"  requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" transcoderFactoryClass="de.javakaffee.web.msm.serializer.javolution.JavolutionTranscoderFactory"/> -->

<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"  memcachedNodes="192.168.254.128:11211"  
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" transcoderFactoryClass="de.javakaffee.web.msm.serializer.xstream.XStreamTranscoderFactory"/>


I have tried all the strategies unless the "java serialization" one. I know that the attribute classes do not implement the java.io.Serializable. Unfortunately I receive errors like those bellow. I am wondering if someone could help.

Thank you,
Sorin




SEVERE: Could not set field value for field private final java.util.Set org.springframework.security.core.userdetails.User.authorities

javolution.xml.stream.XMLStreamException: Incomplete element reading (at line 1, column 1438)

               at javolution.xml.XMLFormat$InputElement.readInstanceOf(XMLFormat.java:509)

               at javolution.xml.XMLFormat$InputElement.get(XMLFormat.java:403)

               at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.readElements(ReflectionFormat.java:231)

               at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.read(ReflectionFormat.java:210)

               at javolution.xml.XMLFormat$InputElement.readInstanceOf(XMLFormat.java:507)

               at javolution.xml.XMLFormat$InputElement.get(XMLFormat.java:403)

               at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.readElements(ReflectionFormat.java:231)

               at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.read(ReflectionFormat.java:210)

               at javolution.xml.XMLFormat$InputElement.readInstanceOf(XMLFormat.java:507)

               at javolution.xml.XMLFormat$InputElement.get(XMLFormat.java:403)

               at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.readElements(ReflectionFormat.java:231)

               at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.read(ReflectionFormat.java:210)

               at javolution.xml.XMLFormat$InputElement.readInstanceOf(XMLFormat.java:507)

               at javolution.xml.XMLFormat$InputElement.get(XMLFormat.java:403)

 

 

O: Server startup in 86160 ms

May 07, 2015 1:51:53 PM de.javakaffee.web.msm.serializer.xstream.XStreamTranscoder deserializeAttributes

WARNING: Caught Exception decoding 5210 bytes of data

com.thoughtworks.xstream.converters.ConversionException: null : null

---- Debugging information ----

cause-exception     : java.lang.RuntimeException

cause-message       : null

class               : java.util.concurrent.ConcurrentHashMap

required-type       : java.util.concurrent.ConcurrentHashMap

converter-type      : com.thoughtworks.xstream.converters.collections.MapConverter

path                : /attributes/k

line number         : 1

version             : 1.4.8

-------------------------------

               at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)

               at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)

               at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)

               at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)

               at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)




 

Martin Grotzke

unread,
May 9, 2015, 5:31:11 AM5/9/15
to memcached-session-manager

Hi,

you have to configure the same transcoderFactoryClass for all tomcats. As I read it, they're different.

Cheers,
Martin

--

---
You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages