[kaffe] Bug [CVS Version]: RMI/Object serialization

Dalibor Topic robilad at yahoo.com
Tue Apr 15 03:13:01 PDT 2003


--- Dalibor Topic <robilad at yahoo.com> wrote:
> Salut Hervé,
> 
> --- Hervé_Roussain <Herve.Roussain at univ-ubs.fr> wrote:
> 
> > There's a 'java.io.StreamCorruptedException: failed to read 
> > endblockdata' when I'm using RMI.
> > 
> > It seems that the bug comes from objects serialization. I've tried to 
> > replace Kaffe's RMI implementation with Classpath's one: there's no 
> > change (i.e. the bug remains the same).

> > The attached zipfile contains code from Sun's RMI tutorial (compiled 
> > with JDK 1.4) (if you want more info about the files, look at 
> > http://java.sun.com/docs/books/tutorial/rmi/index.html)
> 
> thanks, I'll have a look at it.

I did. In doing so I found a small bug in kaffe's rmic ;)

Here's what apperantly happens:
the TC_ENDBLOCKDATA byte comes in a single byte too late, resulting in the
exceptions being thrown.

Pat, could you take a look at it?

cheers,
dalibor topic

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com




More information about the kaffe mailing list