Re: Deserialization Problem with Castor

From: Mike Haller <Mike.Haller@Innovations.de>
Date: Thu Jul 21 2005 - 06:50:53 PDT

Problem solved.

Burlap/Hessian deserializer depends on ContextClassLoader, which is not
set under Eclipse 3.0.x

Set it via

Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

to get it working. Hard to find since ClassNotFound exceptions are
ignored by Burlap (it uses an empty catch block, which is not very helpful).

Mike Haller wrote:
> Hey,
>
> anybody an idea why deserialisation of Castor-generated Java objects
> fails with Burlap and Hessian if used within an Eclipse plugin?
>
> The first object is okay, but childs of it are serialized as hashmap and
> deserialization doesn't work any more.
>
> kind regards
> Mike
>
Received on Thu 21 Jul 2005 06:50:53 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT