Sunny
6/14/2004 2:31:00 PM
Hi Nitin,
where do you receive the error - at serialization or at deserialization?
Try to use SOAP formatter to see the output of the serialization, and if
succeeds. And also, try to serialize the collection not for remoting,
but just with XML serializer, to see if it succeeds.
If it does not fail, then most probably the problem is with remoting
formatter, and then maybe you should go to implement ISerializable
interface and make your own serialization.
If you wish, you may post some sample runnable code, which demonstrates
the problem.
Sunny
In article <#yozKyfUEHA.1172@TK2MSFTNGP10.phx.gbl>,
nitin@nospamplease.com says...
> Hi Sunny,
>
> I cross checked everything. All objects that are being added to the
> ArrayList and NameValueCollection have been marked as [Serializable]. Is
> this some known issue with the NameValueCollection class?
>
> Thanks
> Nitin
>
>
> "Sunny" <sunnyask@icebergwireless.com> wrote in message
> news:OkH39U8TEHA.2580@TK2MSFTNGP12.phx.gbl...
> > Hi Nitin,
> >
> > it seems OK, but you have to examine all the objects you put in the
> > arraylist and in the namevalue collection. If some of the objects in the
> > value field of the namevalue collection or in the arraylist is not
> > [Serializable], the whole serialization process will fail.
> >
> > Sunny
> >
> >
> > In article <OXgx1Q3TEHA.760@TK2MSFTNGP12.phx.gbl>,
> > nitin@nospamplease.com says...
> > > Hi Sunny,
> > >
> > > Thanks a lot for responding. Given below is the definition of the class
> that
> > > is being sent as a return parameter.
> > >
> > > [Serializable]
> > >
> > > public class BizObjectInformation
> > >
> > > {
> > >
> > > public NameValueCollection AttributeTable;
> > >
> > > public ArrayList Keys;
> > >
> > > }
> > >
> > > ~Nitin
> > >
> > >
> > > "Sunny" <sunnyask@icebergwireless.com> wrote in message
> > > news:#7dLi0wTEHA.2704@TK2MSFTNGP10.phx.gbl...
> > > > Hi,
> > > > and what about the objects which are in the Value field? Are all they
> > > > serializable as well?
> > > >
> > > > Can you post a short sample, which reproduces the problem?
> > > >
> > > > Sunny
> > > >
> > > > In article <uR3G70uTEHA.3528@TK2MSFTNGP12.phx.gbl>,
> > > > nitin@nospamplease.com says...
> > > > > Hi,
> > > > >
> > > > > I am passing a user defined class, that has a NameValueCollection as
> one
> > > of
> > > > > the members, as a return value from a remote object method. It does
> not
> > > > > work. I have marked the user defined class as Serializable. I am
> getting
> > > a
> > > > > serialization error. The NameValueCollection is serializable
> however.
> > > > >
> > > > > The remote object is hosted in a NT service.
> > > > >
> > > > > Can anyone please explain this?
> > > > >
> > > > > Thanks a lot,
> > > > > Nitin
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>