ststeiger / trust4

Automatically exported from code.google.com/p/trust4
0 stars 0 forks source link

Ping from another node causes ProtoBuf exception. #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Having another peer ping your node.

What is the exception log?
Delivering data caused exception ProtoBuf.ProtoException: Unexpected type found 
during serialization; types must be included with ProtoIncludeAttribute; found 
UdpContact passed as Contact
  at ProtoBuf.Serializer`1[DistributedServiceProvider.Contacts.Contact].Serialize (DistributedServiceProvider.Contacts.Contact instance, ProtoBuf.SerializationContext context) [0x00089] in /home/james/Desktop/Trust4/protobuf-net/SerializerT.cs:362 
  at ProtoBuf.Property.PropertyMessageString`4[DistributedServiceProvider.Contacts.Contact,DistributedServiceProvider.Contacts.Contact,DistributedServiceProvider.Contacts.Contact,DistributedServiceProvider.Contacts.Contact].ProtoBuf.Property.ILengthProperty<TEntityActual>.Serialize (DistributedServiceProvider.Contacts.Contact value, ProtoBuf.SerializationContext context) [0x00000] in /home/james/Desktop/Trust4/protobuf-net/Property/PropertyMessageString.cs:62 
  at ProtoBuf.SerializationContext.WriteLengthPrefixed[Contact] (DistributedServiceProvider.Contacts.Contact value, UInt32 underEstimatedLength, ILengthProperty`1 property) [0x0002a] in /home/james/Desktop/Trust4/protobuf-net/SerializationContext.Write.cs:102 
  at ProtoBuf.Property.PropertyMessageString`4[DistributedServiceProvider.Contacts.Contact,DistributedServiceProvider.Contacts.Contact,DistributedServiceProvider.Contacts.Contact,DistributedServiceProvider.Contacts.Contact].Serialize (DistributedServiceProvider.Contacts.Contact source, ProtoBuf.SerializationContext context) [0x0001f] in /home/james/Desktop/Trust4/protobuf-net/Property/PropertyMessageString.cs:43 
  at ProtoBuf.Property.PropertyList`3[DistributedServiceProvider.MessageConsumers.GetClosestNodes+ResponseMessage,System.Collections.Generic.List`1[DistributedServiceProvider.Contacts.Contact],DistributedServiceProvider.Contacts.Contact].Serialize (DistributedServiceProvider.MessageConsumers.ResponseMessage source, ProtoBuf.SerializationContext context) [0x00043] in /home/james/Desktop/Trust4/protobuf-net/Property/PropertyList.cs:42 
  at ProtoBuf.Serializer`1[DistributedServiceProvider.MessageConsumers.GetClosestNodes+ResponseMessage].Serialize (DistributedServiceProvider.MessageConsumers.ResponseMessage instance, ProtoBuf.SerializationContext context) [0x000c7] in /home/james/Desktop/Trust4/protobuf-net/SerializerT.cs:371 
  at ProtoBuf.Serializer`1[DistributedServiceProvider.MessageConsumers.GetClosestNodes+ResponseMessage].SerializeChecked (DistributedServiceProvider.MessageConsumers.ResponseMessage instance, ProtoBuf.SerializationContext destination) [0x00036] in /home/james/Desktop/Trust4/protobuf-net/SerializerT.cs:329 
  at ProtoBuf.SerializerItemProxy`2[DistributedServiceProvider.MessageConsumers.GetClosestNodes+ResponseMessage,DistributedServiceProvider.MessageConsumers.GetClosestNodes+ResponseMessage].Serialize (DistributedServiceProvider.MessageConsumers.ResponseMessage instance, ProtoBuf.SerializationContext destination) [0x00000] in /home/james/Desktop/Trust4/protobuf-net/SerializerProxy.cs:81 
  at ProtoBuf.SerializerProxy`1[DistributedServiceProvider.MessageConsumers.GetClosestNodes+ResponseMessage].Serialize (DistributedServiceProvider.MessageConsumers.ResponseMessage instance, System.IO.Stream destination) [0x00000] in /home/james/Desktop/Trust4/protobuf-net/SerializerProxy.cs:45 
  at ProtoBuf.Serializer.Serialize[ResponseMessage] (System.IO.Stream destination, DistributedServiceProvider.MessageConsumers.ResponseMessage instance) [0x00000] in /home/james/Desktop/Trust4/protobuf-net/Serializer.cs:667 

Original issue reported on code.google.com by jrho...@redpointsoftware.com.au on 7 Dec 2010 at 3:59

GoogleCodeExporter commented 9 years ago
According to Hellequin, this bug has been fixed (awaiting verification).

Original comment by jrho...@redpointsoftware.com.au on 7 Dec 2010 at 7:47