Author: mriou Date: Wed Jan 31 15:58:13 2007 New Revision: 502052 URL: http://svn.apache.org/viewvc?view=rev&rev=502052 Log: The writeUTF method has a 64k limitation that can be annoying for BIG literals.
Modified: incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OAssign.java Modified: incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OAssign.java URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OAssign.java?view=diff&rev=502052&r1=502051&r2=502052 ============================================================================== --- incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OAssign.java (original) +++ incubator/ode/trunk/bpel-obj/src/main/java/org/apache/ode/bpel/o/OAssign.java Wed Jan 31 15:58:13 2007 @@ -82,13 +82,18 @@ private void writeObject(java.io.ObjectOutputStream out) throws IOException { - out.writeUTF(DOMUtils.domToString(xmlLiteral)); + out.writeObject(DOMUtils.domToString(xmlLiteral)); } private void readObject(java.io.ObjectInputStream in) throws IOException { - String domStr = in.readUTF(); + String domStr = null; + try { + domStr = (String) in.readObject(); + } catch (ClassNotFoundException e) { + throw (IOException)(new IOException("XML de-serialization error.")).initCause(e); + } try { xmlLiteral = DOMUtils.stringToDOM(domStr).getOwnerDocument(); } catch (Exception ex) {