dblevins 2004/09/24 18:21:14
Modified: modules/core/src/java/org/openejb/client JNDIRequest.java
Log:
I forgot that writeUTF can't handle null values. You have to use
writeObject which will handle the null or call writeUTF if the string
isn't null. Stupid serialization logic.
Revision Changes Path
1.4 +3 -3
openejb/modules/core/src/java/org/openejb/client/JNDIRequest.java
Index: JNDIRequest.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/client/JNDIRequest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- JNDIRequest.java 24 Sep 2004 07:18:55 -0000 1.3
+++ JNDIRequest.java 24 Sep 2004 22:21:14 -0000 1.4
@@ -99,7 +99,7 @@
*/
public void readExternal(ObjectInput in) throws
IOException,ClassNotFoundException {
requestMethod = in.readByte();
- clientModuleID = in.readUTF();
+ clientModuleID = (String) in.readObject();
requestString = in.readUTF();
}
/**
@@ -119,7 +119,7 @@
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte((byte)requestMethod);
- out.writeUTF(clientModuleID);
+ out.writeObject(clientModuleID);
out.writeUTF (requestString);
}