Package de.javakaffee.web.msm

Examples of de.javakaffee.web.msm.TranscoderDeserializationException


    @Override
    public Map<String, Object> deserializeAttributes( final byte[] data ) {
        try {
            return new ObjectBuffer( _kryo ).readObject( data, ConcurrentHashMap.class );
        } catch ( final SerializationException e ) {
            throw new TranscoderDeserializationException( e );
        }
    }
View Full Code Here


            @SuppressWarnings( "unchecked" )
            final Map<String, Object> result = (Map<String, Object>) _xstream.fromXML( bis );
            return result;
        } catch ( final RuntimeException e ) {
            LOG.warn( "Caught Exception decoding "+ in.length +" bytes of data", e );
            throw new TranscoderDeserializationException(e);
        } finally {
            closeSilently( bis );
        }
    }
View Full Code Here

                throw new IllegalStateException( "reader has no input" );
            }
            return reader.<T> read( name );
        } catch ( final RuntimeException e ) {
            LOG.warn( "Caught Exception decoding "+ in.length +" bytes of data", e );
            throw new TranscoderDeserializationException(e);
        } catch ( final XMLStreamException e ) {
            LOG.warn( "Caught Exception decoding "+ in.length +" bytes of data", e );
            throw new TranscoderDeserializationException( e );
        } finally {
            closeSilently( reader );
        }
    }
View Full Code Here

    try {
      final Map<String, Object> result = new JSONDeserializer<Map<String, Object>>().deserialize(inputStream);
      return result;
    } catch( final RuntimeException e) {
      LOG.warn("Caught Exception deserializing JSON "+e);
      throw new TranscoderDeserializationException(e);
    }
  }
View Full Code Here

TOP

Related Classes of de.javakaffee.web.msm.TranscoderDeserializationException

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.