Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002028 [Resin] minor always 09-25-07 09:16 09-28-07 13:36
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.2
Summary 0002028: Hessian: Unsupported operation exception
Description (rep by Jerome Landreau)

I am using Hessian version 3.1.2 and I have an exception when I try to deserialize my object:


This is the code that I am using to deserialize my object is:

ByteArrayInputStream bais = new ByteArrayInputStream(data);
Hessian2Input in = new Hessian2Input(bais);
Object o = in.readObject();

After some debugging, I have found that the problem is in this part of the method "Hessian2Input.readObject()":

case 'v': {
      int ref = readInt();
      String type = (String) _types.get(ref);
      int length = readInt();
      Deserializer reader;
      reader = findSerializerFactory().getObjectDeserializer(type);
      return reader.readLengthList(this, length);

The type is a custom class which implements java.util.List and the reader is an instance of CollectionDeserializer wich extends the class AbstractDeserializer.
The problem is that CollectionDeserializer doesnt't override the readLengthList method of the class AbstractDeserializer which throws an UnsuportedException.
Additional Information
Attached Files

- Relationships

- Notes
09-28-07 13:36


- Issue History
Date Modified Username Field Change
09-25-07 09:16 ferg New Issue
09-28-07 13:36 ferg Note Added: 0002315
09-28-07 13:36 ferg Assigned To  => ferg
09-28-07 13:36 ferg Status new => closed
09-28-07 13:36 ferg Resolution open => fixed
09-28-07 13:36 ferg Fixed in Version  => 3.1.3

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker