473,221 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

Exception while serialization

Hi NG,

I serialize the following class over .net remoting:

using System;
using System.Collections;

namespace JobServerLib
{

[Serializable]
public class ParkTree
{

public System.Collections.Queue m_Tree;

public ParkTree()
{
m_Tree = new Queue(1024);
}
}
}

The remoting normaly works fine over 1000 requests, but sometimes
I got this exception from the framework:

Log: 26.01.2005 21:42:53 Msg: System.NullReferenceException: Der
Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Server stack trace:
at
System.Data.DataTable.System.Runtime.Serialization .ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
at
System.Runtime.Serialization.Formatters.Soap.Write ObjectInfo.InitSerialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter,
SoapAttributeInfo attributeInfo)
at
System.Runtime.Serialization.Formatters.Soap.Write ObjectInfo.Serialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter,
SoapAttributeInfo attributeInfo)
at
System.Runtime.Serialization.Formatters.Soap.Objec tWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at
System.Runtime.Serialization.Formatters.Soap.Objec tWriter.Serialize(Object
graph, Header[] inHeaders, SoapWriter serWriter)
at
System.Runtime.Serialization.Formatters.Soap.SoapF ormatter.Serialize(Stream
serializationStream, Object graph, Header[] headers)
at
System.Runtime.Remoting.Channels.CoreChannel.Seria lizeSoapMessage(IMessage
msg, Stream outputStream, Boolean includeVersions)
at
System.Runtime.Remoting.Channels.SoapClientFormatt erSink.SerializeMessage(IMethodCallMessage mcm, ITransportHeaders& headers, Stream& stream)
at
System.Runtime.Remoting.Channels.SoapClientFormatt erSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData&
msgData, Int32 type)
at ClientAPI.ClientAPI.msgToClient(String msg, Int32 code, Object obj)

I serialize a Queue, but I get erros with a DataTable.
I don´t understand this exception.

Thanx
Stephan
Jul 21 '05 #1
0 1193

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Don McNamara | last post by:
Hi, I've hit quite a strange problem with XmlSerializer on my W2K3 server. When I serialize/deserialize using an exe on my local computer (XP), everything works fine. When I put the code out on...
3
by: Steve | last post by:
I've been following a couple remoting tutorials on the web, they are all pretty much the same. I've got my different applications built(client, server and remote object (dll)) The client is...
1
by: Tim Anderson | last post by:
I have an app that uses the SOAP serializer to serialize and deserialize a object of a certain class to a file. The class implements ISerializable. From time to time it is necessary to add or...
0
by: stand__sure | last post by:
in re-reading something on .NET remoting I realized that I had done nothing with lease sponsorship and renewal. so, I dug around in msdn2 and found this topic...
0
by: Stephan Moeller | last post by:
Hi NG, I serialize the following class over .net remoting: using System; using System.Collections; namespace JobServerLib {
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
6
by: semedao | last post by:
Hi All, I had working code that made custom serialization on objects that inherit from queue in the inherited queue I create my own GetObjectData: public void GetObjectData(SerializationInfo info,...
1
by: SP | last post by:
I have a web service application which uses 3rd party assemblies. I recently upgraded my solution to use .NET Framework 2.0 instead of .NET Framework 1.1. The 3rd party assemblies that I refer are...
0
by: harshal.borade | last post by:
I am using XmlSerializer with XmlAttributeOverrides. The XmlAttributeOverrides are used for properties which hold element/s derived from "AbstractMessage" type. ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.