search mail archives, please :)

Simon

> -----Original Message-----
> From: Jason Mawdsley [mailto:[EMAIL PROTECTED]]
> Sent: mercoledì 14 marzo 2001 19:40
> To: JBoss-User
> Subject: [jBoss-User] Some weird NamingException
> 
> 
> I get the following message when trying to lookup the home
> 
> javax.naming.CommunicationException[Root exception is
> java.io.StreamCurruptedException: Type Code out of range, is 125]
> 
> Thanks
> ----------------
> Jason Mawdsley
> Software Designer
> Macadamian Technologies.
> 
> --------------------------------------------------------------------
> class InterestClient {
>   public static void main(String[] args) {
> 
>     System.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
>     System.setProperty("java.naming.provider.url", "localhost:1099" );
> 
> 
>     try {
> 
>       // Get a naming context
>       InitialContext jndiContext = new InitialContext();
>       System.out.println("Got context");
> 
>       // Get a reference to the Interest Bean
>       Object ref  =
> jndiContext.lookup("Syndeo.myserver.DatabaseInitializerHome");
> 
>       System.out.println("Got reference");
> 
>       // Get a reference from this to the Bean's Home interface
>       DatabaseInitializerHome home =
> (DatabaseInitializerHome)PortableRemoteObject.narrow (ref,
>                         DatabaseInitializerHome.class);
> 
> 
>       DatabaseInitializer dbIniter = home.create();
>       }
> 
>     catch(Exception e) {
> 
>       System.out.println(e.toString());
>     }
>   }
> }
> 
> 
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> 


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

Reply via email to