Package com.netflix.astyanax.connectionpool.exceptions

Examples of com.netflix.astyanax.connectionpool.exceptions.SerializationException


        if (compareByteArrays(prefixBytes.array(),
                prefixBytes.arrayOffset() + prefixBytes.position(),
                prefixBytes.remaining(), dup.array(), dup.arrayOffset()
                        + dup.position(), prefixBytes.remaining()) != 0) {
            log.error("Unprefixed value received, throwing exception...");
            throw new SerializationException("Unexpected prefix value");
        }
        dup.position(prefixBytes.remaining());
        S s = suffixSerializer.fromByteBuffer(dup);
        return s;
     }
View Full Code Here


            marshaller.get().marshal(obj, writer);
            writer.flush();
            writer.close();
        }
        catch (JAXBException e) {
            throw new SerializationException("Object to serialize " + obj
                    + " does not seem compatible with the configured JaxbContext;"
                    + " note this Serializer works only with JAXBable objects.", e);
        }
        catch (XMLStreamException e) {
            throw new SerializationException("Exception occurred writing XML stream.", e);
        }
        return ByteBuffer.wrap(buffer.toByteArray());
    }
View Full Code Here

            Object ret = unmarshaller.get().unmarshal(reader);
            reader.close();
            return ret;
        }
        catch (JAXBException e) {
            throw new SerializationException("Jaxb exception occurred during deserialization.", e);
        }
        catch (XMLStreamException e) {
            throw new SerializationException("Exception reading XML stream.", e);
        }
    }
View Full Code Here

            Object obj = ois.readObject();
            dup.position(dup.position() + (l - ois.available()));
            ois.close();
            return obj;
        } catch (Exception ex) {
            throw new SerializationException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.connectionpool.exceptions.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.