10 Replies Latest reply on Oct 8, 2002 3:53 PM by panda007

    Hanging while calling create()

    isekh

      facing a strange problem in jboss 3.0 using CMP. i have an entity bean called GroupBean, when i call groupHome.create(...), it is hanging for ever no response coming at both ends.
      Any one explain me why this hanging problem is coming up?

        • 1. Re: Hanging while calling create()
          dsundstrom

          If you go get a cup of coffee/ pint of beer (10-25 minutes), does it time out? If so, what it the message? Are you using JBoss 3.0.2? If not, upgrade.

          If you can't make it go away, post a reproduceable test case in a bug report at sourceforge.

          • 2. Re: Hanging while calling create()
            panda007

            Im having the same problem. no exceptions are thrown. has anyone figured it out?

            • 3. Re: Hanging while calling create()
              aloubyansky

              what should I do to reproduce it?

              • 4. Re: Hanging while calling create()
                panda007

                heres what im doing.

                public static Context getHTTPClientInitialContext()
                throws javax.naming.NamingException {

                Properties p = new Properties();
                p.put(javax.naming.Context.PROVIDER_URL, "http://www.somesite.com:8080/invoker/JNDIFactory");
                p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
                return new javax.naming.InitialContext(p);
                }


                try {
                System.out.println("3");
                Context ctx = EJBHelper.getHTTPClientInitialContext();
                Object obj = ctx.lookup("ejb/RemoteHome");
                System.out.println("4");
                RemoteHome sHome =
                (RemoteHome)PortableRemoteObject.narrow(obj, RemoteHome.class);
                System.out.println("5");

                RemoteRemote remoteconv = sHome.create();<--freezes here
                System.out.println("6");
                } catch (catch exceptions) .........

                The server is running behind a firewall. The firewall opens/forwards port 8080. Everything is logged up to "6" where it just drops/hangs. Nothing is thrown. no messages. nothing is logged in server.log. stack trace is empty.

                • 5. Re: Hanging while calling create()
                  aloubyansky

                  Probably, the problem is with firewall.
                  If you specified 8080 in provider url it doesn't mean ejb calls will use this port. They will use port 4444 by default, AFAIK.
                  Consider using http-invoker instead of jrmp.

                  • 6. Re: Hanging while calling create()
                    panda007

                    Could you point me in the direction of http-invoker information and how to use it. Thanks.

                    • 7. Re: Hanging while calling create()
                      panda007

                      I thought i was using http-invoker. How do i implement http-invoker? can you point in the direction of some docs or examples. I had no idea i was using jrmp. thanks.

                      • 8. Re: Hanging while calling create()
                        panda007

                        i thought i was using http-invoker in the example i provided. can you point me in the direction of some good docs or examples on http-invoker. i had no idea i was using jrmp. thanks.

                        • 9. Re: Hanging while calling create()
                          panda007

                          i thought i was using http-invoker in the example i provided. can you point me in the direction of some good docs or examples on http-invoker. i had no idea i was using jrmp. thanks.

                          • 10. Re: Hanging while calling create()
                            panda007

                            i thought i was using http-invoker in the example in provided. can you show me where i can get some docs on implemente http-invoker and some examples. i had no idea i was using frmp. thanks.