value = serializer.readObject(buffer, property.setMethodType);
else
value = kryo.readClassAndObject(buffer);
property.set(object, value);
} catch (IllegalAccessException ex) {
throw new SerializationException("Error accessing setter method: " + property + " (" + type.getName() + ")", ex);
} catch (InvocationTargetException ex) {
throw new SerializationException("Error invoking setter method: " + property + " (" + type.getName() + ")", ex);
} catch (SerializationException ex) {
ex.addTrace(property + " (" + type.getName() + ")");
throw ex;
} catch (RuntimeException runtimeEx) {
SerializationException ex = new SerializationException(runtimeEx);
ex.addTrace(property + " (" + type.getName() + ")");
throw ex;
}
}
if (TRACE) trace("kryo", "Read bean: " + object);
return object;