Re: Help: UnmarshalException running Jini
SamsonLim <[email protected]> Fri, 11 Apr 2008 20:31:44 -0700
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Apart from a few primitive types, I have a Vector in the Entry which holds String[]. I do run JDBC heavily in the tasks assigned for the entries. The error seems to happen only when the number of RMI calls gets large. Will using Externalization on certain classes help? I read on another forum someone recommending doing a server-side tracing using: java.rmi.server.logCalls sun.rmi.server.exceptionTrace sun.rmi.transport.logLevel sun.rmi.transport.tcp.logLevel Will this help? Thx. -Samson Gregg Wonderly-2 wrote: > > daphantomica wrote: >> Hi, >> >> I'm using Jini for a large scale simulation research and when writing and >> taking Entries, I keep bumping into this EOFException error. I'm using >> functions with null Transactions which looks like such: >> space.write(tripTask, null, Lease.FOREVER); >> TaskEntry thistask = (TaskEntry)space.takeIfExists(tmplt_tsk, null, >> JavaSpace.NO_WAIT); >> >> Any help would be deeply appreciated! > > The answer should be visible on the other end of this connection. An EOF > in a > readObject() call indicates that the other end could not send the data. > As Bill > suggested, this can almost always be attributed to the other end trying to > write > out a serialized stream of something that is not serializable. Sometimes, > I've > found this to be odd Exception class implementations from oracle and other > JDBC > stacks, as well as various other problems. If this always happens, then > most > likely you have a data value serialization problem (including the same > Exception > is happening every time). > > Gregg Wonderly > > -------------------------------------------------------------------------- > Getting Started: http://www.jini.org/wiki/Category:Getting_Started > Community Web Site: http://jini.org > jini-users Archive: http://archives.java.sun.com/archives/jini-users.html > Unsubscribing: email "signoff JINI-USERS" to [email protected] > > -- View this message in context: http://www.nabble.com/Help%3A-UnmarshalException-running-Jini-tp16625246p16645150.html Sent from the Sun - Jini-Users mailing list archive at Nabble.com. -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]