Issue Details (XML | Word | Printable)

Key: JCR-109
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jukka Zitting
Reporter: angela
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jackrabbit Content Repository

Contrib RMI: NotSerializableException

Created: 14/Apr/05 07:54 PM   Updated: 13/Oct/06 04:05 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 0.9

Time Tracking:
Not Specified

Resolution Date: 01/Feb/06 05:18 PM


 Description  « Hide
org.apache.jackrabbit.rmi.client.RemoteRepositoryException:

error unmarshalling return; nested exception is:.java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: javax.jcr.NameValue



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jukka Zitting added a comment - 20/Apr/05 02:33 AM
I found and fixed one occasion in JCR-RMI where Values passed over the network are not decorated with the SerialValue serialization decorator. The missing decoration was in ServerRow.getValue() and the fix in revision 161928.

I'm assuming that this fix solves your problem. Please reopen the issue if the problem still appears.

Jukka Zitting added a comment - 01/Feb/06 05:13 PM
Reported by Rob Owen:

This problem occurs with ServerRow.getValues() too. I have attached a patch which makes the corresponding change to getValues() that was made to getValue(String).

Index: C:/jprojects/eclipse/jackrabbit/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRow.java
===================================================================
--- C:/jprojects/eclipse/jackrabbit/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRow.java (revision 367671)
+++ C:/jprojects/eclipse/jackrabbit/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRow.java (working copy)
@@ -55,7 +55,7 @@

    /** {@inheritDoc} */
    public Value[] getValues() throws RepositoryException, RemoteException {
- return row.getValues();
+ return SerialValueFactory.makeSerialValueArray(row.getValues());
    }

    /** {@inheritDoc} */

Jukka Zitting added a comment - 01/Feb/06 05:18 PM
Thanks, Rob! Fixed as suggested in revision 374017.

This is a serious (and simple) enough fix that I applied it also to the 0.9 branch in revision 374018.