Anonymous | Login | Signup for a new account | 12-17-2024 14:55 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000070 | [Resin] | minor | always | 03-31-05 00:00 | 02-03-06 09:43 | ||||
Reporter | user102 | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0000070: hessian ThrowableSerializer does not serialize fields of subclasses of Throwable | ||||||||
Description |
RSN-61 The hessian ThrowableSerializer does not serialize fields in subclasses of Throwable. this results in all data in the fields of the Exception being lost. for example if i make a subclass of Exception with a new field "int code", this will never be serialized, leaving it always to its default of null; The reason for this is that throwable serializer extends JavaSerializer, and passes java.lang.Throwable.class as an argument to the super() constructor. since the JavaSerializer gets the fields of this value, none of the actual instances class fields are serialized. The problem is solve if the following code is modified: public class ThrowableSerializer extends JavaSerializer { public ThrowableSerializer() { super(Throwable.class); } ......... to public class ThrowableSerializer extends JavaSerializer { public ThrowableSerializer(Class clazz) { super(clazz); } and the Method Constructing the ThrowableSerializer passes the actual class of the Exception object to the constructor. |
||||||||
Additional Information | linux | ||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
33 total queries executed. 26 unique queries executed. |