0 Replies Latest reply on Jul 8, 2005 9:00 AM by madhav_devarapalli

    java.lang.reflect.UndeclaredThrowableException

    madhav_devarapalli

      Hi,
      I am using Jboss 3.2
      I installed Jboss on two different machines and I deployed web component on one machine and ejb compoent on another machine
      From web component I am using the following code to get references of home and then remote interfaces.



      Properties env = new Properties();
      env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      env.setProperty(Context.PROVIDER_URL,"jnp://IPaddress:2020");
      env.setProperty(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
      Context ctx = new InitialContext(env);

      home = ()ctx.lookup("");
      remote = home.create();

      With this code , I am able to get references of home and remote interfaces
      but while I am invoking a method on remote interface I am getting "java.lang.reflect.UndeclaredThrowableException" exception

      Please give me the reason if anybody knows

      Thanking you,

      Best Regards
      Kulkarni