java.io.StreamCorruptedException: Type code out of range, is 0
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sandhya_Sree
Posted On:   Friday, August 23, 2002 05:16 AM

Hi, I tried to run the following code from the command line using "java" on the same machine on which the weblogic is running. But, I got the following Exception. Does anyone have a solution for this?? CODE : import java.util.*; import javax.naming.*; import javax.naming.directory.*; import javax.sql.*; import java.sql.*; public class WlcTest { public static void main(String[] args) { try { Hashtable properties = new Hashtable(); properties.put(Context.INITIAL_CONTEXT_FACTORY, weblogic.jndi.WLInitialContextFactory.class.getName()); properties.put(Context.PROVIDER_URL   More>>

Hi,
I tried to run the following code from the command line using "java" on the same machine on which the weblogic is running. But, I got the following Exception.



Does anyone have a solution for this??

CODE :


import java.util.*;

import javax.naming.*;

import javax.naming.directory.*;

import javax.sql.*;

import java.sql.*;


public class WlcTest

{

public static void main(String[] args)

{


try {


Hashtable properties = new Hashtable();


properties.put(Context.INITIAL_CONTEXT_FACTORY,
weblogic.jndi.WLInitialContextFactory.class.getName());


properties.put(Context.PROVIDER_URL, "t3://servername:7001");

Context context = new InitialContext(properties);

}catch(Exception e) {


}


}

}


Exception :


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. (Compiled Code)
at java.lang.Exception. (Exception.java:42)
at java.io.IOException. (IOException.java:47)
at java.io.ObjectStreamException. (ObjectStreamException.java:29)
at java.io.StreamCorruptedException. (StreamCorruptedException.java
:30)
at java.io.ObjectInputStream.peekCode(Compiled Code)
at java.io.ObjectInputStream.SkipToEndOfBlockData(Compiled Code)
at java.io.ObjectInputStream.inputClassDescriptor(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
bjectInputStream.java:110)
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
bjectInputStream.java:123)
at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:6
83)
at weblogic.rjvm.ConnectionManagerClient.handleIdentifyResponse(Connecti
onManagerClient.java:140)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:624)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(Compiled Code)
at weblogic.socket.JavaSocketMuxer.processSockets2(Compiled Code)
at weblogic.socket.JavaSocketMuxer.processSockets(Compiled Code)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested except
ion:
[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. (Compiled Code)
at java.lang.Error. (Error.java:50)
at weblogic.utils.NestedError. (NestedError.java:24)
at weblogic.utils.AssertionError. (AssertionError.java:56)
at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:6
85)
at weblogic.rjvm.ConnectionManagerClient.handleIdentifyResponse(Connecti
onManagerClient.java:140)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:624)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(Compiled Code)
at weblogic.socket.JavaSocketMuxer.processSockets2(Compiled Code)
at weblogic.socket.JavaSocketMuxer.processSockets(Compiled Code)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(Compiled Code)






thanks Rgds

Sandhya    <<Less

Re: java.io.StreamCorruptedException: Type code out of range, is 0

Posted By:   Gautam_Marwaha  
Posted On:   Friday, August 23, 2002 05:26 AM

Do you have multiple versions on weblogic installed? Are you running this client with the correct version of weblogic classes?
About | Sitemap | Contact