Package org.axonframework.serializer

Examples of org.axonframework.serializer.SerializationException


            T serializedContent = converterFactory.getConverter(byte[].class, expectedRepresentation)
                                                  .convert(serializedBytes);
            return new SimpleSerializedObject<T>(serializedContent, expectedRepresentation,
                                                 typeForClass(object.getClass()));
        } catch (JsonProcessingException e) {
            throw new SerializationException("Unable to serialize object", e);
        }
    }
View Full Code Here


            SerializedObject<byte[]> byteSerialized = converterFactory.getConverter(serializedObject.getContentType(),
                                                                                    byte[].class)
                                                                      .convert(serializedObject);
            return getReader(classForType(serializedObject.getType())).readValue(byteSerialized.getData());
        } catch (IOException e) {
            throw new SerializationException("Error while deserializing object", e);
        }
    }
View Full Code Here

    @Override
    public T deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
        try {
            return constructor.newInstance(jp.readValueAs(String.class));
        } catch (Exception e) {
            throw new SerializationException("Unable to read instant from JSON document", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.axonframework.serializer.SerializationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.