7 Replies Latest reply on Jun 16, 2004 10:18 AM by jscalio

    Object not bound

    jscalio

      Our application is deployed at several customer sites using JBoss 3.2.0 running on Windows 2000 Advanced Server (mostly) and Windows Server 2003.

      Our problem is that many of our customers are experiencing a problem with our application, which is related to a failure in the JMS layer. The related exception is "object not bound" when trying to connect to a deployed JSM Queue.

      We have no problems initially after startup, but after the application runs for a while, the result is the "object not bound" exception (perhaps due to heavy load).

      So far, the only solution we can offer to the customer is to restart the service (wrapper) for our application. We have not yet been able to reproduce the problem in the lab perhaps because we are not able to reproduce the same load scenario of our customers.

      I have read the FAQ, but nothing seems related to our problem. I have also searched this forum, but had no luck in finding anything that directly addresses this issue.

      I greatly appreciate any/all feedback.

        • 1. Re: Object not bound
          nusa

          Hi,

          How can we help you, if all you have to say is just 'Object not found' ?
          At least please show the relevant stack trace ..

          Set a TRACE debug level in the appropriate modules, i.e.

           <category name="org.jboss.mq">
           <priority value="TRACE" class="org.jboss.logging.XLevel"/>
           </category>
          
           <category name="org.jboss.tm">
           <priority value="TRACE" class="org.jboss.logging.XLevel"/>
           </category>
          


          nusa

          • 2. Re: XAConnectionFactory not bound
            jscalio

            My apologies, I submitted the original post from another computer earlier today and didn't have a corresponding stack trace readily available. This reply includes an actual stack trace for the exception.

            I don't have TRACE level logging to provide because I have not been able to reproduce the problem in the lab and the customer is overly concerned about the volume of logging that would be produced as a result.

            As you can see from the timestamps in the following log output, this problem has existed for at least several months.

            Once again, we have no problems initially after startup, but after the application runs for a while, the result is the "XAConnectionFactory not bound" exception (perhaps due to heavy load).

            Thanks!

            2004-01-12 16:43:11,921 INFO [org.jboss.ejb.plugins.jms.DLQHandler] Creating
            2004-01-12 16:43:11,921 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed
            javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound
             at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
             at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:394)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:553)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1053)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:565)
            2004-01-12 16:43:11,921 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider
            2004-01-12 16:43:11,921 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
            javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound
             at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
             at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:394)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:553)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1053)
             at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:565)
            2004-01-12 16:43:11,921 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider



            • 3. Re: Object not bound
              theimmortal

              Which persistence manager are you using ? If I had to guess sounds like Hypersonic. The problem you are having may be related to hypersonic going bye bye when the DB reaches a certain size. We used to have a problem similar to this. Once the Hypersonic DB reached around 1GB or so the PM would stop responding. We switched to file-pm-service.xml and the problem went away. File-pm has it's own problems and I guess it is not *the best* thing to use either. From what I have read, using a DB for the PM is the way to go (EG: Oracle or Informix).

              See the [jboss root]/docs/examples/jms for other pm service configurations.

              • 4. Re: Object not bound
                genman


                Check the startup logs. The reason XAConnectionFactory it is not bound is because the JMS system did not startup.

                • 5. Re: Object not bound
                  jscalio

                  Yes, we are using the default (Hypersonic) persistence manager.

                  Once again, we have no problems initially after startup, but after the application runs for a while, the result is the "XAConnectionFactory not bound" exception (perhaps due to heavy load).

                  However, we have experienced problems at customer sites with the http://wrapper.tanukisoftware.org restarting JBoss, so perhaps the running instance has not fully shutdown before the attempt to restart is invoked.

                  Has anyone else experienced similar problems?

                  • 6. Re: Object not bound
                    theimmortal

                    Hypersonic is not rated for production or volume. Get ride of it and try another PM (Oracle, Informix, MySQL, or the file-pm-service).

                    So to reiterate:

                    Yes, it will work fine on initial startup, however once time has elapsed and a considerable amount of data is in the DB, it stops working. Switch Persistence Managers.

                    • 7. Re: Object not bound
                      jscalio

                      Thanks! I'll try your suggestion.