3
votes
0answers
359 views
Serializing with Messagepack
I like to serialize my java class object using Messagepack. My class structure is such that
public class A
{
private InnerClass obj;
//Some other variables with getters and setters.
// ...
2
votes
0answers
106 views
About Deep Copy and Serialization
I have read a lot about deep copying and serialization in Java List, Map, etc, but I did not find good answers to a some questions. I care for time and performance, so I am looking for a compromise. I ...
2
votes
0answers
125 views
Serializing and Deserializing Object Arrays in Kryo
I've been testing Kryo for serialization and deserialization recently and have generally been happy with it, however it is not clear to be how to handle the (de)serialization of a class which contains ...
2
votes
0answers
77 views
change field from within function
Okay, this should be my last question for now :) Anyway, I have a String called mode and ArrayLists called lines and components that get edited in my program by various functions. Everything works ...
2
votes
0answers
168 views
How can I XML serialize a synchronized ArrayList?
When I try to serialize and deserialize an ArrayList wrapped in Collections.synchronizedList using beans.XMLEncoder and beans.XMLDecoder, I get the following error:
...
2
votes
0answers
280 views
Is there a ready-made component to transform java *.properties file into corresponding json?
I suppose it's not hard to write one, but I'm just wondering is there something ready-made, that could fix this task in one line and with no additional coding?
It's especially helpful if you want to ...
2
votes
0answers
190 views
Hessian deserializes java.lang.Character as a String
I've used Hessian for a while but just noticed the following behavior. If you serialize a java.lang.Character in Hessian, it deserializes as a String.
public class TestHessianChar {
public ...
2
votes
0answers
411 views
Serializing Map<String, List<Something>> SimpleXML (Sourceforge)
I'm using the sourceforge SimpleXML framework to serialize and deserialize some objects into XML. I tried serializing a Map<String, List<String>> like this:
@ElementMap(attribute = true, ...
1
vote
0answers
76 views
Dynamically enable/disable he UNWRAP_ROOT_VALUE and WRAP_ROOT_VALUE in Jackson's ObjectMapper?
Is there a way to enable/disable the UNWRAP_ROOT_VALUE and WRAP_ROOT_VALUE in Jackson's ObjectMapper dynamically. I have to enable/disable these properties depending on what service is called, some ...
1
vote
0answers
26 views
Is there a way to avoid jboss-serialization in JBoss5?
I have 2 apps running in JBoss5.
They send data to each other. I added a field to one of the Serializable classes without changing serialVersionUID. This class is still backward compatible according ...
1
vote
0answers
100 views
Serialize JSON Subclasses Information in Java
I need some help with one JSON serialization Problem.
I have one class like this:
@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorFormula("type")
@JsonSubTypes({ ...
1
vote
0answers
95 views
Hessian: C++ server
I am going to write a client-server application using Hessian protocol for binary serialization.
Do you know if there is a way to do it with C++ server and Java client?
I have found only vice versa ...
1
vote
0answers
200 views
Java pretty print XML version=1.0 with no quote
I've a xml string code. This string could be well formatted or not, and I should return a well format xml string.
I used this code and it was working great:
try {
final Document document ...
1
vote
0answers
102 views
MsgPack third-party objects serialization
I'm trying to serialize object with MsgPack (Java). This object (among other things) contains JodaTime's LocalDate for representing - well - date. MsgPack is not able to deserialize my message, coming ...
1
vote
0answers
180 views
Deserialize an enum with flexjson that is received as integer value
we are creating a JSON REST client application that has to communicate with a service written in C#.
Most things like difference in dates etc are solved pretty easily with the FlexJson library.
But ...