Package com.ovea.jetty.session.serializer.jboss.serial.exception

Examples of com.ovea.jetty.session.serializer.jboss.serial.exception.SerializationException


            if (description == null) {
                description = cache.findObjectInCacheRead(reference);
            }

            if (description == null) {
                throw new SerializationException("Object reference " + reference + " was not found");
            }

            return description;
        } else {
            return cache.getObjectDescriptorStrategy().readObjectSpecialCase(input, cache, byteIdentify);
View Full Code Here


                };
            } else {
                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

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

                return this.getClazz().newInstance();
            } else {
                return localConstructor.newInstance(EMPTY_OBJECT_ARRAY);
            }
        } catch (InstantiationException e) {
            throw new SerializationException("Could not create instance of " + this.className + " - " + e.getMessage(), e);
        } catch (IllegalAccessException e) {
            throw new SerializationException("Could not create instance of " + this.className + " - " + e.getMessage(), e);
        } catch (InvocationTargetException e) {
            throw new SerializationException("Could not create instance of " + this.className + " - " + e.getMessage(), e);
        }
    }
View Full Code Here

                if (metaData.getReadResolveMethod() != null) {
                    value = metaData.getReadResolveMethod().invoke(value, new Object[]{});
                    cache.reassignObjectInCacheRead(reference, value);
                }
            } catch (IllegalAccessException e) {
                throw new SerializationException(e);
            } catch (InvocationTargetException e) {
                throw new SerializationException(e);
            }
        }

        return value;
    }
View Full Code Here

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

                }
            } else {
                return readObjectArray(metaData, referenceId, cache, length, input);
            }
        } catch (ClassNotFoundException ex) {
            throw new SerializationException(ex);
        }
    }
View Full Code Here

        bout.write(buf);
    }

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

            } else if (obj instanceof BooleanContainer || obj instanceof Boolean) {
                writeBoolean(output, obj);
            } else if (obj instanceof byte[]) {
                writeByteArray(output, obj);
            } else {
                throw new SerializationException("I don't know how to write type " + obj.getClass().getName() + " yet");
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.ovea.jetty.session.serializer.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.