11 Replies Latest reply on Dec 4, 2007 8:51 PM by mcjava1967

    HELP!  Can't connect to 1099?

    mcjava1967

      Hi folks. When my new JBoss 4.2 Eclipse plugin starts, I'm getting this in the event log:

      JMXException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

      I've tried switching the port to something like 1234, to be sure it wasn't in use, but I get the same error. The server itself does come up, but it seems I can't use JNDI for this reason.

      I'm a newbie at JBoss, so there's a good chance I missed something obvious. If anyone could point me in the right direction on this, I'd really appreciate it. I've been trying to get started here for a couple weeks!


      Thanks!

        • 1. Re: HELP!  Can't connect to 1099?
          jaikiran

          What does the following command output:

          telnet localhost 1099


          Do you have any firewalls installed? The firewall application might be blocking the requests.



          • 2. Re: HELP!  Can't connect to 1099?
            mcjava1967

            It shows this:

            Connecting To localhost...Could not open a connection to host on port 1099 : Connect failed

            I have Norton installed. Trying to shut it off an retry...

            Will let you know in a minute. THANKS FOR RESPONDING !

            • 3. Re: HELP!  Can't connect to 1099?
              mcjava1967

              OK. Turned off Norton. Now I get this a message that interspersed with a lot of unprintable characters, which I can't copy and paste. This is the message with "..." in place of all the unprintables:

              ...java.rmi.MarshalledObject...hashlocBytest...BobjBytesq...Kur...sr org.jnp.server.NamingServer_Stub...xrjava.rmi.server.RemoteStub...java.rmi.server.RemoteObject...pw4...UnicastRef2 127.0.0.1

              Connection to host lost.



              Are we getting warm?

              • 4. Re: HELP!  Can't connect to 1099?
                jaikiran

                Yup, looks good now. Now try out your application. It should get past that Receive timed out error.

                • 5. Re: HELP!  Can't connect to 1099?
                  mcjava1967

                  I hate to say it, but I'm getting the same message. I have Norton turned off--both internet and anti-virus. To be sure, I shut down the JBoss server within Eclipse, shut down Eclipse, ended all java tasks in Task Manager, and restarted. But still get same message.

                  I am very grateful you're helping me out. Could you suggest a next step?

                  Thanks again...

                  • 6. Re: HELP!  Can't connect to 1099?
                    mcjava1967

                    I should mention in my previous post, I didn't highlight the last line:

                    connection to host lost


                    Is that normal?

                    • 7. Re: HELP!  Can't connect to 1099?
                      jaikiran

                       

                      connection to host lost

                      Is that normal?


                      Yes, that should not be a problem. It's normal.

                      I have Norton turned off--both internet and anti-virus.


                      There was a similar post earlier where the user had run into a similar issue. Even after stopping the firewall, the ports were being blocked. Finally, he uninstalled the firewall and got it working. Here's that thread:

                      http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097524#4097524

                      See if uninstalling your anti-virus/firewall software does the trick.


                      • 8. Re: HELP!  Can't connect to 1099?
                        mcjava1967

                        I'll give it a try. It's sunny and I'm officially on vacation today, so it may be tomorrow before I respond again. But again, thanks...

                        • 9. Re: HELP!  Can't connect to 1099?
                          mcjava1967

                          Well, if you're still listening on my port...

                          I did not uninstall Norton (too scary), but I'm now getting the "successful" response to your command:

                          telnet localhost 1099

                          This is with Norton actually on, doing all it's regular things.

                          However, I'm still getting the original response when I try to run my "Hello World" application.

                          Would you have another suggestion for that?

                          Again, I'm very much a newbie. I'm not even sure I should be running the "Client" using "Run as...Java Application".


                          I really hope you're still listening. Any more help you could give me would be greatly appreciated !

                          • 10. Re: HELP!  Can't connect to 1099?
                            jaikiran

                             

                            However, I'm still getting the original response when I try to run my "Hello World" application.


                            I believe, you have a standalone Java client from which you are doing a JNDI lookup. Can you post the code where you doing the lookup? Let's see if everything is correct, there. And please post the entire exception stacktrace.

                            • 11. Re: HELP!  Can't connect to 1099?
                              mcjava1967

                              Will try to respond tomorrow. Am getting some success now, which is very encouraging. But I'm not sure I've got it right...

                              Thanks!