The server at my old employer was rooted this past weekend and apparently the server provider made changes to the server which is affecting the PHP code.
The issue that has arisen is related to serializing objects. The objects being serialized, and other objects not being serialized, are being converted to strings thus breaking the code...
Hi, I have the following requirement: Based on some user input, I need to generate a HTML form that the user can embed on a separate Web application. I thought on doing this with GWT since I'm familiar with it.
I'm clear on the input parsing and widget generation part. What I don't know how to do is how to export the root widget's (most...
I'm making an Android Java app game (although this question applies to all languages really) and hope to release the first version soon. I'm nervous about how I save data in my game. My problem is that, if in a later update, I decide to store more data or store the same data in a different way, I need to be careful I don't lose or corrup...
Hi
when i am trying to serialize a dictionary, everything worked fine. but when i am deserializing it is showing count as 0. But, it works fine with a list. What is goingon exactly when we are deserializing a list and a dictionary?
...
we have some problems with serializing an empty list.
here some code in .NET using CF 2.0
//Generating the protobuf-msg
ProtoBufMessage msg = new ProtoBufMessage();
msg.list = new List<AnotherProtobufMessage>();
// Serializing and sending throw HTTP-POST
MemoryStream stream = new MemoryStream();
Serializer.Serialize(stream, msg);
byte[]...
I am serializing an object, which has several sub-objects(which are also serializable). Can i check the size of the stream in between the serialization process? ( I just want to limit the size of the stream to which i am serializing )
...
I've got a Stream containing xml in the following format that I want to deserialize into C# objects
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<OrganisationMetaData xmlns="urn:organisationMetaDataSchema">
<Organisations>
<Organisation>
<Code>XXX</Code>
<Name>Yyyyyy</Name>...
I've done this loads of t...
I have two different applications and I am using GroupLab Networking to communicate between them. The idea is there is a shared dictionary and when something changes in this shared dictionary, the other application gets a notification. The notification part works. Here is the problem. I have the following code in the first application.
...
By default, jaxb 2 lists all (all possible required) namespaces in root element during marshalling:
Is there a way to describe namespace in each element instead of root element ?:
It also solves the problem of "unnecessary namespaces", which is also important in my case.
Any suggestions appreciated.
...
Hi,
Given two app domain :
in the first, Library1 and CommonLibrary are loaded. In the second Library2 and CommonLibrary are loaded.
Library2 defines a Library2Exception that inherit from CommonException (defined in CommonLibrary).
When I call, in the first AppDomain, a method on a MarshallByRef of the second AppDomain that throws a Li...
Hello,
I have few .cs files generated by xsd.exe by a XSD schema.
My problem is that when i try to serialize those classes to xml, the attributes whose values match the default values defined in the xsd schema are not being serialized.
I found out that my problem is solved when i remove [System.ComponentModel.DefaultValueAttribute(t...
Am using following code to deserialize an object,
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
XmlWriterSettings writerSettings1 = new XmlWriterSettings();
writerSettings1.CloseOutput = false;
writerSettings1.Encoding = System.Text...
I have a flattened JSON:
{
"CaseName" : "John Doe v. State",
"CaseDate" : "<some date>",
"Client.FirstName" : "John",
"Client.LastName" : "Doe",
"Client.Email" : "[email protected]"
etc...
}
I want to deserialize it back to this entity:
public class Case()
{
public string CaseName { get; set; }
public ...
The Effective Java says that readResolve works only if all fields are transient.
Isn't this a bug? Why would the Java creators do a such thing?
-- update
Sorry, I mean the More Effective Java, see slide 30.
...
Hi!
So I'm trying to deserialize an object that has properties: $ref and $id. I have tried going between Dictionary as well as an object where I have specified namingconventions via JsonPropertyAttribute. Serialization works, but deserialization doesn't. The error I keep getting is:
Additional text found in JSON string
after fini...
I am using jsonpickle to serialize an object to json. The object has certain fields that point to other objects. I'd like to selectively not include those in the serialization, so that the resulting json file is essentially pure human-readable text without any funny representations of objects. Is there a way to make jsonpickle ignore cer...
I am suddenly experiencing an intermittent error using the Google Checkout ASP.NET control "GCheckout."
It is on the first line of code shown below:
XmlSerializer Ser = new XmlSerializer(ObjectToSerialize.GetType()); //ObjectToSerialize is a CheckoutShoppingCart object
What puzzles me is why it seemed to work all the time before an...
I have the following simple methods for writing a python object to a file using jsonpickle:
def json_serialize(obj, filename, use_jsonpickle=True):
f = open(filename, 'w')
if use_jsonpickle:
import jsonpickle
json_obj = jsonpickle.encode(obj)
f.write(json_obj)
else:
simplejson.dump(obj, f)
...
Hi there,
So, I would like to get a sound file and convert it in packets, and send it to another computer. I would like that the other computer be able to play the packets as they arrive.
I am using AVAudioPlayer to try to play this packets, but I couldn't find a proper way to serialize the data on the peer1 that the peer2 can play.
T...
I have a class Bar which contains a List<Foo>, with both Foo and Bar implementing ISerializable.
When deserializing a Bar, the List<Foo> is initially filled with (the correct number of) nulls; then on exiting the Bar deserialization ctor, each Foo's deserialization ctor is called, filling the List<Foo> with the (correctly deserialized)...