0 Replies Latest reply on Jun 29, 2010 1:52 AM by Rajyalakshmi Domathoti

    Filenotfound exception at lookup

    Rajyalakshmi Domathoti Newbie

      javax.naming.CommunicationException: Operation failed [Root exception is java.rmi.ServerException: IOE; nested exception is:
          java.io.FileNotFoundException: http://localhost.localdomain:8080/invoker/JMXInvokerServlet]
          at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:65)
          at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
          at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
          at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
          at $Proxy0.lookup(Unknown Source)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
          at javax.naming.InitialContext.lookup(InitialContext.java:351)
          at com.wipro.ccp.nagios.plugins.JBOSSQuery.main(JBOSSQuery.java:81)
      Caused by: java.rmi.ServerException: IOE; nested exception is:
          java.io.FileNotFoundException: http://localhost.localdomain:8080/invoker/JMXInvokerServlet
          at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:133)
          at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
          at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
          at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:57)
          ... 8 more
      Caused by: java.io.FileNotFoundException: http://localhost.localdomain:8080/invoker/JMXInvokerServlet
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1168)
          at org.jboss.invocation.http.interfaces.Util.invoke(Util.java:178)
          at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:118)
          ... 11 more

       

       

      Could any one help me ?

      I am getting this exception at line ,

       

                    Properties env = new Properties();
                  env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
                      "org.jboss.naming.HttpNamingContextFactory");
                  env.setProperty(Context.PROVIDER_URL,"http://"+ipAddr+":8080/invoker/JNDIFactory");
                
                  Context ctx = new InitialContext(env);

                  RMIAdaptor server = (RMIAdaptor)ctx.lookup("jmx/invoker/RMIAdaptor"); //Here exception is thown