protected void increaseNestCollectionLevel() { nestCollectionLevel++; if (nestCollectionLevel > context.maxCollectionNestLevel) { SerializationException se = new SerializationException(); se.setMessage(10316, new Object[] {context.maxCollectionNestLevel}); throw se; } }
protected void increaseNestObjectLevel() { nestObjectLevel++; if (nestObjectLevel > context.maxObjectNestLevel) { SerializationException se = new SerializationException(); se.setMessage(10315, new Object[] {context.maxObjectNestLevel}); throw se; } }
protected void increaseNestObjectLevel() { nestObjectLevel++; if (nestObjectLevel > context.maxObjectNestLevel) { SerializationException se = new SerializationException(); se.setMessage(10315, new Object[] {context.maxObjectNestLevel}); throw se; } }
protected void increaseNestCollectionLevel() { nestCollectionLevel++; if (nestCollectionLevel > context.maxCollectionNestLevel) { SerializationException se = new SerializationException(); se.setMessage(10316, new Object[] {context.maxCollectionNestLevel}); throw se; } }
/** * A utility method that is used by subclasses to perform max-string-bytes * checks. By default, max-string-bytes is limited to 25MB for security * but this can be changed via JVM option called max-string-bytes. * * @param utflen The UTF string length to check. * @throws <tt>SerializationException</tt> if max-string-bytes has been exceeded. */ protected void checkUTFLength(int utflen) { if (utflen > maxStringBytes) { // Error deserializing the string with length ''{0}'', it exceeds the max-string-bytes limit of ''{1}''. SerializationException ex = new SerializationException(); ex.setMessage(10314, new Object[] {utflen, maxStringBytes}); throw ex; } }
/** * A utility method that is used by subclasses to perform max-string-bytes * checks. By default, max-string-bytes is limited to 25MB for security * but this can be changed via JVM option called max-string-bytes. * * @param utflen The UTF string length to check. * @throws <tt>SerializationException</tt> if max-string-bytes has been exceeded. */ protected void checkUTFLength(int utflen) { if (utflen > maxStringBytes) { // Error deserializing the string with length ''{0}'', it exceeds the max-string-bytes limit of ''{1}''. SerializationException ex = new SerializationException(); ex.setMessage(10314, new Object[] {utflen, maxStringBytes}); throw ex; } }
/** * */ protected void readExternalizable(String className, Object object) throws ClassNotFoundException, IOException { if (object instanceof Externalizable) { if (isDebug) trace.startExternalizableObject(className, objectTable.size() - 1); ((Externalizable)object).readExternal(this); } else { //Class '{className}' must implement java.io.Externalizable to receive client IExternalizable instances. SerializationException ex = new SerializationException(); ex.setMessage(10305, new Object[] {object.getClass().getName()}); throw ex; } }
/** * */ protected void readExternalizable(String className, Object object) throws ClassNotFoundException, IOException { if (object instanceof Externalizable) { if (isDebug) trace.startExternalizableObject(className, objectTable.size() - 1); ((Externalizable)object).readExternal(this); } else { //Class '{className}' must implement java.io.Externalizable to receive client IExternalizable instances. SerializationException ex = new SerializationException(); ex.setMessage(10305, new Object[] {object.getClass().getName()}); throw ex; } }
/** * @exclude */ protected void readExternalizable(String className, Object object) throws ClassNotFoundException, IOException { if (object instanceof Externalizable) { if (isDebug) { trace.startExternalizableObject(className, objectTable.size() - 1); } ((Externalizable)object).readExternal(this); } else { //Class '{className}' must implement java.io.Externalizable to receive client IExternalizable instances. SerializationException ex = new SerializationException(); ex.setMessage(10305, new Object[] {object.getClass().getName()}); throw ex; } }
ex.setMessage(10305, new Object[] {obj.getClass().getName()}); throw ex;
se.setMessage(10313, new Object[]{obj == null? NULL : obj.getClass().getName(), index}); se.setRootCause(e); throw se; se.setMessage(10313, new Object[]{obj == null? NULL : obj.getClass().getName(), index}); throw se;
se.setMessage(10313, new Object[]{obj == null? NULL : obj.getClass().getName(), index}); se.setRootCause(e); throw se; se.setMessage(10313, new Object[]{obj == null? NULL : obj.getClass().getName(), index}); throw se;
se.setMessage(10312, new Object[]{obj == null? NULL : obj.getClass().getName(), propName}); se.setRootCause(e); throw se; se.setMessage(10312, new Object[]{obj == null? NULL : obj.getClass().getName(), propName}); throw se;
ex.setMessage(10305, new Object[] {obj.getClass().getName()}); throw ex;
ex.setMessage(10305, new Object[] {obj.getClass().getName()}); throw ex;
se.setMessage(10312, new Object[]{obj == null? NULL : obj.getClass().getName(), propName}); se.setRootCause(e); throw se; se.setMessage(10312, new Object[]{obj == null? NULL : obj.getClass().getName(), propName}); throw se;
se.setMessage(10311, new Object[]{cls == null? NULL : cls.getName()}); se.setRootCause(e); throw se; se.setMessage(10311, new Object[]{cls == null? NULL : cls.getName()}); throw se;
se.setMessage(10311, new Object[]{cls == null? NULL : cls.getName()}); se.setRootCause(e); throw se; se.setMessage(10311, new Object[]{cls == null? NULL : cls.getName()}); throw se;