Hello All, 

I am working on JBOSS clustering. My JBOSS is configured fine, but client side it's 
generating following error. 

error is javax.naming.CommunicationException: Failed to retrieve stub from server 
199.77.206.6:1100 [Root exception is java.io.StreamCorruptedExcepti 
on: unexpected block data] 



My client side code is: 

Properties properties = new Properties(); 
properties.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory"); 

properties.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces"); 
properties.put(Context.PROVIDER_URL, "jnp://localhost:1100"); 


InitialContext jndiContext; 
Object ref; // Get a reference to a PropsHome Bean 
jndiContext = new InitialContext( properties ); 

PropsHome home = null; 

try { 

ref = jndiContext.lookup("Props"); 
home = (PropsHome) PortableRemoteObject.narrow (ref, PropsHome.class); 
} 
catch( Exception errE ) 
{ 
System.out.println(" error is " + errE ); 
} 

..... 




It's look like error is in searlization, I don't have any idea because EJB is supposed 
to do that thing by itself. 


I greatly appreciate your help. 

Best Regards, 
Chintan

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827075#3827075";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827075>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to