2 Replies Latest reply on Nov 6, 2007 8:15 AM by Raju Myadam

    Infinite loop inside SpyConnectionFactoryObjectFactory when

    Joshua Davis Expert

      A very simple JMS example I have made is going into infinite recursion when trying to look up ConnectionFactory in the InitialContext. Has anyone heard of this?

      The code is something like this:


      // ... get initial context ...
      QueueConnectionFactory factory = initialContext.lookup("ConnectionFactory");
      // ... do the usual stuff with JMS ...


      My classpath contains: jbossall-client.jar, log4j.jar, and jndi.properties along with my test classes.

      The log messages look like this:

      2004-03-20 21:45:35,015 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory -
      Extracting SpyConnectionFactory from reference
      2004-03-20 21:45:35,046 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory -
      The GenericConnectionFactory is: GenericConnectionFactory:
      [server=org.jboss.mq.il.oil.OILServerIL@f0c85e,connectionProperties={OIL_TCPNODELAY_KEY=yes, PingPeriod=60000, OIL_PORT_KEY=8090, ClientILService=org.jboss.mq.il.oil.OILClientILService, OIL_ADDRESS_KEY=192.168.0.5}]
      2004-03-20 21:45:35,062 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory -
      Extracting SpyConnectionFactory from reference
      2004-03-20 21:45:35,062 [main] DEBUG org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory -
      The GenericConnectionFactory is: GenericConnectionFactory:
      [server=org.jboss.mq.il.oil.OILServerIL@1581593,connectionProperties={OIL_TCPNODELAY_KEY=yes, PingPeriod=60000, OIL_PORT_KEY=8090, ClientILService=org.jboss.mq.il.oil.OILClientILService, OIL_ADDRESS_KEY=192.168.0.5}]


      These two messages repeat infinitely.