Mantis - Resin
Viewing Issue Advanced Details
2273 crash always 12-26-07 01:15 12-31-07 11:52
kitepad  
ferg  
normal  
closed 3.1.5  
fixed  
none    
none 3.1.5  
0002273: StackTraceElementDeserializer is not correct in Hessian2Input
When deserialize any subclass of Throwable, a exception is reported by Hessian.

You can reproduce this problem using following code:
 Exception e = new Exception("Hessian");
 ByteArrayOutputStream baos = new ByteArrayOutputStream();
 Hessian2Output hout = new Hessian2Output(baos);
 hout.writeObject(e);
 hout.close();
 Hessian2Input hin = new Hessian2Input(new ByteArrayInputStream(baos.toByteArray()));
 hin.readObject();
I have checked StackTraceElementDeserializer class, if removed statement - "in.readMapEnd();", it's work correct.

Notes
(0002601)
ferg   
12-31-07 11:52   
hessian/3bb5