Package org.jboss.serial.exception

Examples of org.jboss.serial.exception.SerializationException


            try {
                return ((LongContainer)currentObject).getValue();
            }
            catch (ClassCastException e)
            {
                throw new SerializationException("Excepted to be long",e);
            }
        }
View Full Code Here


            try {
                return ((FloatContainer)currentObject).getValue();
            }
            catch (ClassCastException e)
            {
                throw new SerializationException("Excepted to be float",e);
            }
        }
View Full Code Here

            try {
                return ((DoubleContainer)currentObject).getValue();
            }
            catch (ClassCastException e)
            {
                throw new SerializationException("Excepted to be double",e);
            }
        }
View Full Code Here

            try {
                return (String)currentObject;
            }
            catch (ClassCastException e)
            {
                throw new SerializationException("Excepted to be String",e);
            }
        }
View Full Code Here

        try
        {
            ((Externalizable)obj).readExternal(input);
        }
        catch (ClassNotFoundException e){
            throw new SerializationException(e);
        }

        return obj;
    }
View Full Code Here

            return obj;
        }
        catch (ClassNotFoundException e)
        {
            throw new SerializationException("Error reading " + obj.getClass().getName(),e);
        }
        /*catch (IllegalAccessException e)
        {
            throw new SerializationException("Error reading " + field.getField().getDeclaringClass().getName() + " field=" + field.getFieldName(),e);
        } */
 
View Full Code Here

            cache.putObjectInCacheRead(referenceId,obj);
            return obj;
        }
        catch (ClassNotFoundException e)
        {
            throw new SerializationException(e);
        }
        catch (NoSuchMethodException e)
        {
            throw new SerializationException(e);
        }
        catch (IllegalAccessException e)
        {
            throw new SerializationException(e);
        }
        catch (InstantiationException e)
        {
            throw new SerializationException(e);
        }
        catch (InvocationTargetException e)
        {
            throw new SerializationException(e);
        }
    }
View Full Code Here

                return null;
            }
        }
        catch (IllegalAccessException ex)
        {
            throw new SerializationException(ex.getMessage(),ex);
        }
    }
View Full Code Here

        dataOutput.write(buf);
    }

    public void write(byte[] buf, int off, int len) throws IOException {
    if (buf == null) {
        throw new SerializationException("buf parameter can't be null");
    }
        dataOutput.write(buf, off, len);
    }
View Full Code Here

        {
            return input.readObject();
        }
        catch (ClassNotFoundException e)
        {
            throw new SerializationException (e.getMessage(),e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.serial.exception.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.