bossadvisors / memcached-session-manager

Automatically exported from code.google.com/p/memcached-session-manager
0 stars 0 forks source link

msm-javolution-serializer: add xmlformat implementations for more jdk types #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now the msm-javolution-serializer provides some special xmlformat 
implementations for specific java types. Others are handled by the 
ReflectionFormat.

It should be checked if for some types (e.g. Locale, Currency, Pattern) 
specific xmlformat implementations would be useful.

A good idea of type candidates gives the xstream converters overview: 
http://xstream.codehaus.org/converters.html

Original issue reported on code.google.com by martin.grotzke on 29 Dec 2009 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by martin.grotzke on 30 Dec 2009 at 12:18

GoogleCodeExporter commented 9 years ago
Hi Martin,

After unsuccessful using msm + kryo/jav + springmvc(leagcy application), tried 
with JavolutionSerializer, it works fine in my simple mvc application but again 
failing in our legacy spring MVC application with following error stack.

Is this enhancement available in the latest release ??

Thanks
Yoga

Apr 2, 2014 2:28:10 PM 
de.javakaffee.web.msm.serializer.javolution.ReflectionFormat writeElements
SEVERE: Could not write element for field.
java.lang.IllegalArgumentException: No suitable constructor found for class 
java.math.BigInteger.
Available constructors: [public java.math.BigInteger(byte[]), public 
java.math.BigInteger(int,byte[]), public 
java.math.BigInteger(java.lang.String,int), public 
java.math.BigInteger(java.lang.String), public 
java.math.BigInteger(int,java.util.Random), public 
java.math.BigInteger(int,int,java.util.Random)]
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.createNumberFormat(ReflectionFormat.java:584)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.getNumberFormat(ReflectionFormat.java:561)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionBinding.getFormat(ReflectionBinding.java:198)
    at javolution.xml.XMLFormat$OutputElement.add(XMLFormat.java:815)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.writeElements(ReflectionFormat.java:263)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.write(ReflectionFormat.java:245)
    at javolution.xml.XMLFormat$OutputElement.add(XMLFormat.java:819)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.writeElements(ReflectionFormat.java:263)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.write(ReflectionFormat.java:245)
    at javolution.xml.XMLFormat$OutputElement.add(XMLFormat.java:819)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.writeElements(ReflectionFormat.java:263)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.write(ReflectionFormat.java:245)
    at javolution.xml.XMLFormat$OutputElement.add(XMLFormat.java:819)
    at de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.w

Original comment by yoga.und...@gmail.com on 2 Apr 2014 at 9:41

GoogleCodeExporter commented 9 years ago
No, afaics this is not yet implemented. This should be easy to accomplish, I'm 
open for pull requests (my time is very limited right now).

Cheers,
Martin

Original comment by martin.grotzke on 2 Apr 2014 at 10:30