0 Replies Latest reply on Oct 21, 2010 1:13 PM by ingedeut

    problem when trying to acces the management console using Java Code

    ingedeut

      Hello,

       

      when trying to test the Class JMXAttributeFinder to get the attribute of an Object (service...) the following error are occured:

       

       

      javax.naming.NamingException: Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JNDIFactory [Root exception is java.net.ProtocolException: Server redirected too many  times (20)]
           at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:84)
           at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
           at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
           at javax.naming.InitialContext.init(Unknown Source)
           at javax.naming.InitialContext.<init>(Unknown Source)
           at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.query(JMXAttributeFinderOrig.java:74)
           at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.main(JMXAttributeFinderOrig.java:99)
      Caused by: java.net.ProtocolException: Server redirected too many  times (20)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
           at java.lang.reflect.Constructor.newInstance(Unknown Source)
           at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
           at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
           at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:133)
           at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:80)
           ... 6 more
      Caused by: java.net.ProtocolException: Server redirected too many  times (20)
           at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
           at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
           at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
           at java.net.URLConnection.getContentLength(Unknown Source)
           at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:128)
           ... 7 more
      java.lang.NullPointerException
           at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.query(JMXAttributeFinderOrig.java:80)
           at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.main(JMXAttributeFinderOrig.java:99)
      
       
      

       

       

      can someone please help me?

       

      it's urgent please!!

       

      i will appreciate any form of help.

       

       

      thanks

       

      younes

       

       

      javax.naming.NamingException: Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JNDIFactory [Root exception is java.net.ProtocolException: Server redirected too many  times (20)]
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:84)
      at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.init(Unknown Source)
      at javax.naming.InitialContext.<init>(Unknown Source)
      at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.query(JMXAttributeFinderOrig.java:74)
      at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.main(JMXAttributeFinderOrig.java:99)
      Caused by: java.net.ProtocolException: Server redirected too many  times (20)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:133)
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:80)
      ... 6 more
      Caused by: java.net.ProtocolException: Server redirected too many  times (20)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
      at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
      at java.net.URLConnection.getContentLength(Unknown Source)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:128)
      ... 7 more
      java.lang.NullPointerException
      at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.query(JMXAttributeFinderOrig.java:80)
      at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinderOrig.main(JMXAttributeFinderOrig.java:99)