I've got the same bug:

Setup = yesterdays binary, PII, win 2000, Suns JDK 1.3.

I am firing up container with only the MandelBrot example from Zola.
The Mandel Client then breaks @ line 204  (ctx = new InitialContext(prop);)
and giving the following:

javax.naming.CommunicationException.  Root exception is
java.io.StreamCorruptedException: Type code out of range, is 125
        at java.io.ObjectInputStream.peekCode(ObjectInputStream.java,
Compiled Code)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:282)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
        at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:978)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
        at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java,
Compiled Code)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:152)
        at javax.naming.InitialContext.lookup(InitialContext.java:354)
        at
org.jboss.zol.mandelbrot.client.MandelClient.connect(MandelClient.java:216)
        at
org.jboss.zol.mandelbrot.client.MandelClient.access$28(MandelClient.java:197
)
        at
org.jboss.zol.mandelbrot.client.MandelClient$7.actionPerformed(MandelClient.
java:177)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1101)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:3
78)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:226)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
MenuItemUI.java:754)
        at java.awt.Component.processMouseEvent(Component.java:3160)
        at java.awt.Component.processEvent(Component.java:2999)
        at java.awt.Container.processEvent(Container.java:990)
        at java.awt.Component.dispatchEventImpl(Component.java, Compiled
Code)
        at java.awt.Container.dispatchEventImpl(Container.java, Compiled
Code)
        at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java,
Compiled Code)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:1827)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1730)
        at java.awt.Container.dispatchEventImpl(Container.java, Compiled
Code)
        at java.awt.Window.dispatchEventImpl(Window.java:749)
        at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:101)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

I wonder if this helps shed any light...

Andy

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim Archer
Sent: Wednesday, May 31, 2000 3:52 PM
To: [EMAIL PROTECTED]
Subject: [jBoss-User] java.io.StreamCorruptedException on context lookup

Hi All...

I was running this code snippit this morning at about 3:00AM Eastern time
adn it worked great. That build was based upon a jBoss module chackout of
about 10:00PM last night.

I got to my office at about 10:00AM Eastern, did a full chackout of jBoss,
built it fine and rane the exact same code with the very same beans. This
time, when I call lookup(), I get this exception:

javax.naming.CommunicationException

with a root exception of:

java.io.StreamCorruptedException


The only difference between the two machines is that one is a Pentium 2
running Win 98 and the other is a Pentium 3 running Wondows 2000.
Otherwise, they are both running Suns JDK 1.3. I was using the same
development tools in both places. I have not yet been able to find a
problem on the Pentium 3 system yet.

So, did something change to introduce a bug, or is it more likely I should
keep looking for a problem on my system?

Thanks...

Jim



--------------------------------------------------------
        UserHome userHome = null;

        Properties prop = getEJBossProps();
        try {
            // Get context
            Context ctx = new InitialContext(prop);
            System.out.println("Got context");

            // Get home object
            System.out.println("Looking up the UserHome object...");
            userHome = (UserHome) ctx.lookup("User");

            if (userHome != null )
               System.out.println("got home interface");

        } catch (Exception e) {
           System.out.println("Exception caught");
           System.out.println(e.getMessage());
           System.out.println(e.toString());
        }



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to