Serialization is the process by which an object is converted into a format that can be stored and later retrieved.
0
votes
0answers
21 views
Codeigniter - PHP - unserialize(): Error at offset 185 of 411 bytes
Hi i got a strange error on Codeigniter + nginx server.
I get a log Error which is :
ERROR - 2013-07-17 15:01:22 --> Severity: Notice --> unserialize(): Error at offset 185 of 411 bytes ...
0
votes
0answers
76 views
How should C++ objects be serialized?
We are doing a project on high performance computing, which using MPI as parallel computing framework. There are just a few algorithms already implemented on legacy platform. What we do is rewriten ...
1
vote
1answer
28 views
Polymorphic Serialization w/ Boost
I'm trying to (de)serialize a polymorphic vector, but have different issues with different attempts. The entire order of events are:
Serialize a Polymorphic Vector on Server Side
Send the serialized ...
0
votes
0answers
15 views
How to serialize a multidimensional array, a class member using boost?
http://robot.kaist.ac.kr/haptics/chai3d-2.0.0_Doc/resources/html/structc_matrix3d.html
cMatrix3d has a class data member double m [3][3];
Now correct me if I am wrong : to serialise an instance of ...
0
votes
1answer
23 views
multiple deserializatin of same object should or not create new istances?
In my schenario i've a MVC on iis serializing objects from entity framework where i've overridden GetHashCode and Equal methods since the Id of those objects is immutable once committed to the ...
0
votes
1answer
15 views
How to edit a already inserted value in boost text_orachive?
std::ostringstream oss;
boost::archive::text_oarchive oa(oss);
I add a int with value 0 at the start of the archive. This will act as a placeholder.
int number_of_objects= 0;
oa & ...
1
vote
1answer
31 views
Jackson Default Typing for object containing a field of Map<String, Object>
So I've been trying to get Jackson to serialize/deserialize one object I have which is esentially of the structure:
MyObject {
String a;
Map<String, Object> map;
}
where map can hold ...
0
votes
1answer
15 views
How to insert in middle of stringstream during serialisation?
std::ostringstream oss;
boost::archive::text_oarchive oa(oss);
I add variable number of content to this oa, like this
oa & int1;
oa &int2;
--------------------> insert number of ...
0
votes
1answer
35 views
serialize to C# MVC model class from knockout Model
-----knock out js code------------
var User = function () {
this.UserName = ko.observable();
this.Password = ko.observable();
};
var LoginViewModel = function () {
var self = this;
...
0
votes
0answers
6 views
How to use Java serialization proxy with MongoDB & BasicBSONEncoder?
I have a complex Java class hierarchy where the top level class happens to be called Console; the hierarchy includes some tricky bits including JNI classes, and serialization is largely by way of ...
0
votes
1answer
7 views
“Best practice” for HBase data “serialization”
Hi I am new to HBase and I wonder what is the best approach to serialize and store the data to HBase. Is there any convenient way how to transform "business objects" at application level to HBase ...
1
vote
0answers
24 views
ServiceStack.Text: JsConfig changes done after serializing some objects not picked up
I'm using ServiceStack.Text as the default serializer within my services.
Today I came across an unexpected issue where:
after one of the services did some JsConfig configuration of the
serializer
...
0
votes
2answers
18 views
Reuse Previous Serialization in File with System.Xml.Serialization
I have a class that needs to be constantly serialized, because the info is read from a file outside of my app. My info classes can be represented by something like this:
[XmlRoot("log")]
public class ...
1
vote
1answer
34 views
Why did not I get NotSerializableException?
class NotSerializable {}
class MyClass implements Serializable {
private NotSerializable field; // class NotSerializable does not implement Serializable!!
}
public class Runner {
public static ...
-1
votes
1answer
18 views
Serialize inner class with GSON in JAVA
I want to serialize a class which contains an inner class with GSON. I have already checked it is important the inner class be static. I have made it static, but my code does not serialize it.
The ...
0
votes
0answers
12 views
How to do Java serialization with ObjectInputStream when using NIO Selector?
How can you read an object directly from a SocketChannel that is non-blocking? It's being accessed with a Selector. The following code is broken (it throws an IllegalBlockingModeException) and I don't ...
0
votes
3answers
108 views
what kind of delimiter to use for serialisation?
I am building a ostringstream.
I was writing ints to this stream.
I am using stream<<" "; between 2 numbers.
I convert this stream to a string and UDP send it.
On the receiver side I am using ...
1
vote
1answer
28 views
ASP.NET MVC 3 - custom Profile and persisting in State Server
We have a custom profile class inheriting from ProfileBase.
We'd like to pop this object into Session to remove the need to keep retrieving it per request.
We're using ASP.NET State Server and we're ...
0
votes
2answers
24 views
Serializing transient field (field has String)
2 classes DOG and Collar
Dog HAS A Collar which is not serializable
Collar has String and int
QUES: HOW to serialize DOG object?
tried overriding writeObject and readObject but stuck when writing ...
2
votes
1answer
36 views
Why isn't javafx.scene.text.Font Serializable?
The old java.awt.Font is conveniently Serializable - however somewhat annoyingly, the JavaFX font class isn't. Even more annoyingly, it's awkward to serialize manually since the FontPosture and ...
0
votes
2answers
64 views
Where is the serialization going wrong?
void insert_into_stream(std::ostream& stream, int number)
{
int length = sizeof(int);
char insert_buffer[sizeof(int)];
memcpy(insert_buffer, &number, length);
...
0
votes
1answer
14 views
Serializable on abstract base classes intended for JSF/CDI beans
I have created a few base classes to generalize functionality. These classes are inherited by concrete CDI beans like:
@Named
@WhateverCdiScoped
public class PseudoEntityManager extends ...
-1
votes
1answer
29 views
Serializing object with java [on hold]
I am trying to serialize an object with ObjectOutputStream and FileOutputStream, however an error with the class name is being shown.
JFileChooser fc = new JFileChooser();
NewClientClass AddClient = ...
0
votes
0answers
27 views
Boost mpl::list variant serialization check_const_loading() compile error
The following uses mpl::list to initialize a boost variant. Then it serialize the variant. It compiles and work fine on save but not load. The compile even failed for load. Does anyone know what ...
0
votes
1answer
17 views
TypeError in cause of cycle when using JSON.stringify()
I have an JavaScript Object I want to serialize as a String:
key {...} Object
mandant "00001" String
personalNummer 600235 Number
First I ...
3
votes
1answer
25 views
Conversion between JSON with wrapped structure and pojo with flattended structure
I have a JSON structure that incorporates a wrapping level that I don't have in my POJOs. Like so:
JSON:
{
"category1": {
"cat1Prop1": "c1p1",
"cat1Prop2": "c1p2",
...
0
votes
2answers
14 views
PHP curl response unserialize issue
I am getting "Notice: unserialize(): Error at offset 0 of 1081 bytes" error while unserializing curl response.
Curl request page - ping1.php :
<?php
$ch = curl_init();
$curlConfig = array(
...
0
votes
1answer
12 views
Can't serialize form
Was just trying to make serialization results be visible in some 'results' div. Used the code like this from JQUERy learning center for the contact form:
function showValues() {
var str = ...
0
votes
1answer
13 views
Serialize column not working on `rails c` restart?
I'm banging my head on this one. I have a model with a serialize column with target type Measurement, like so:
class Foo
serialize :quantity, Measurement
end
This column works encodes/decodes ...
0
votes
0answers
20 views
DataContractSerializer, Ordering inconsistency between .Net and Mono
For DataContractSerializer, items in XML must be ordered.
It is by "Order" attribute. Or in alphabetical order for .NET
For a Mono, it is ignored, so order is as data members mentioned in the ...