dcsimg
when will we get this " java.io.StreamCorruptedException: Type code out of range, is 0 " exception.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sandhya_Sree
Posted On:   Friday, August 23, 2002 04:01 AM

Iam using IntialContext in my program the following is the code... Hashtable env = new Hashtable(); InitialContext ic = null; try { //fileProperty.load(new FileInputStream(DataDict.propertyFile)); String url = "t3://localhost:7001/"; env.putContext.INITIAL_CONTEXT_FACTORY,JNDI_FACTORY); env.put(Context.PROVIDER_URL,url); ic = new InitialContext(); iam getting the exeption in the above line of code.. the exception is java.io.StreamCorruptedException: Type code out of range, is 0 Rgds, Sandhya    More>>

Iam using IntialContext in my program the following is the code...



Hashtable env = new Hashtable();

InitialContext ic = null;

try

{

//fileProperty.load(new FileInputStream(DataDict.propertyFile));

String url = "t3://localhost:7001/";

env.putContext.INITIAL_CONTEXT_FACTORY,JNDI_FACTORY);

env.put(Context.PROVIDER_URL,url);

ic = new InitialContext();

iam getting the exeption in the above line of code..

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




Rgds,

Sandhya

   <<Less

Re: when will we get this " java.io.StreamCorruptedException: Type code out of range, is 0 " exception.

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

Shouldn't you be using
ic = new InitialContext(env);
instead of
ic = new InitialContext();
About | Sitemap | Contact