Adeniran,

Weblogic uses their own rmi implementation. You might have more success posting
this query to one of the weblogic specific newsgroups mentioned at:

http://www.beasys.com/support/newsgroup.html

All I can suggest is that you may be missing some required weblogic classes on
the client side.

--Victor Langelo


Adeniran Fajemisin wrote:

> Hi all --
> I'm not sure if this is the right forum for this
> question but I'll give it a shot anyway.(BTW, pointers
> to the right forum will also be appreciated)
>
> Here it goes; I'm serializing an object from an EJB
> running onWebLogic's Server (v4.5.1) on Unix.The
> object that I'm expecting on the other end hasother
> serializable objects within it. All the objects
> implement Externalizable and I provide the
> implementation for the readExternal() and
> writeExternal() methods. On return (i.e. on the client
> machine), it fails in the readExternal() method of the
> object.The read failed on the first object coming
> through the stream. Both VMs are running JDK1.2.1_004
> on a SunOS 5.6box.
>
> The problem only seems to occur when the client
> program runs on a Unix environment.I've tried running
> the client from and NT box, hitting the server on a
> Unix box and this works just fine.
>
> This problem is posted several times on Sun's JDC and
> no one seems to know what the solution is. I'm
> particularly interested in knowing how to interprete
> the "Type code out of range, is 0" part of the
> exception below. What exactly does the number signify?
> From looking at the method peekCode() in class
> ObjectInputStream it appears that the number indicates
> the byte that was read from the stream. Classpath
> issues perhaps?
>
> Here's the stacktrace I get:
> ----------------------------------------
> [java.io.StreamCorruptedException: Type code out of
> range, is 0]
> java.io.StreamCorruptedException: Type code out of
> range, is 0
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Exception.java:42)
> at java.io.IOException.<init>(IOException.java:47)
> at
> java.io.ObjectStreamException.<init>(ObjectStreamException.java:29)
> at
> java.io.StreamCorruptedException.<init>(StreamCorruptedException.java:30)
>
> at java.io.ObjectInputStream.peekCode(Compiled Code)
> at
> java.io.ObjectInputStream.SkipToEndOfBlockData(CompiledCode)
> at java.io.ObjectInputStream.inputObject(CompiledCode)
> at java.io.ObjectInputStream.readObject(Compiled Code)
> at java.io.ObjectInputStream.readObject(Compiled Code)
>
> ------------------------------------------
> Any input on this issue will be greatly appreciated.
>
> Thanks,
> Niran
>
> __________________________________________________
> Do You Yahoo!?
> Send online invitations with Yahoo! Invites.
> http://invites.yahoo.com
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to