@Override protected final void writeObjectOverride(final Object obj) throws IOException { try { oos.writeObject(obj); } catch (NotSerializableException nsx) { if (SerializableChecker.isAvailable()) { // trigger serialization again, but this time gather // some more info new SerializableChecker(nsx).writeObject(obj); // if we get here, we didn't fail, while we // should; throw nsx; } throw nsx; } catch (Exception e) { log.error("error writing object " + obj + ": " + e.getMessage(), e); throw new WicketRuntimeException(e); } }
/** * @see java.io.ObjectOutputStream#writeObjectOverride(java.lang.Object) */ protected final void writeObjectOverride(Object obj) throws IOException { if (!available) { return; } root = obj; if (fieldDescription == null) { fieldDescription = (root instanceof Component) ? ((Component)root).getPath() : ""; } check(root); } }
toPrettyPrintedStack(obj.getClass().getName()), exception); simpleName = arrayPos; fieldDescription += arrayPos; check(objs[i]); currentPath()); currentPath()); checkFields(obj, slotDesc);
outputStream.writeObject(object); } catch (IOException e) { if (isAvailable()) {
toPrettyPrintedStack(obj.getClass().getName()), exception); simpleName = arrayPos; fieldDescription += arrayPos; check(objs[i]); currentPath()); currentPath()); checkFields(obj, slotDesc);
@Override protected final void writeObjectOverride(Object obj) throws IOException { try { if (PreSerializeChecker.isAvailable()) { new PreSerializeChecker(serializableCheck).writeObject(obj); } oos.writeObject(obj); } catch (NotSerializableException nsx) { if (SerializableChecker.isAvailable()) { // trigger serialization again, but this time gather // some more info new SerializableChecker(nsx).writeObject(obj); // if we get here, we didn't fail, while we // should; throw nsx; } throw nsx; } catch (Exception e) { log.error("error writing object " + obj + ": " + e.getMessage(), e); throw new WicketRuntimeException(e); } }
/** * @see java.io.ObjectOutputStream#writeObjectOverride(java.lang.Object) */ @Override protected final void writeObjectOverride(Object obj) throws IOException { if (!available) { return; } root = obj; if (fieldDescription == null) { fieldDescription = (root instanceof Component) ? ((Component)root).getPath() : ""; } check(root); } }
simpleName = field.getName(); fieldDescription = field.toString(); check(objVals[i]);
simpleName = field.getName(); fieldDescription = field.toString(); check(objVals[i]);