471,319 Members | 1,601 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 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 1122

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Steve | last post: by
1 post views Thread by Tim Anderson | last post: by
reply views Thread by stand__sure | last post: by
reply views Thread by Stephan Moeller | last post: by
6 posts views Thread by semedao | last post: by
reply views Thread by rosydwin | last post: by

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.