3 Replies Latest reply on May 8, 2004 5:22 AM by Joachim Van der Auwera

    Many problems, few answers

    Curt Raddatz Newbie

      I am trying to get JBoss running on a legacy system (non-Windows, non-Unix) which is running Java 1.3.1. To verify the proper operation on our system, I am running the test suite that comes with JBoss. The overwheling majority of the failures I encounter have the following error.

      java.lang.reflect.InvocationTargetException: javax.naming.CommunicationException: Receive timed out. Root exception is java.io.InterruptedIOException: Receive timed out at java.net.PlainDatagramSocketImpl.receive(Native Method)
      at java.net.DatagramSocket.receive(DatagramSocket.java:392)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1093)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at org.jboss.test.JBossTestServices.init(JBossTestServices.java:406)
      at org.jboss.test.JBossTestSetup.(JBossTestSetup.java:57)
      at org.jboss.test.JBossTestCase$1.(JBossTestCase.java:231)
      at org.jboss.test.JBossTestCase.getDeploySetup(JBossTestCase.java:211)
      at org.jboss.test.JBossTestCase.getDeploySetup(JBossTestCase.java:247)
      at org.jboss.test.bank.test.BankEJB20StressTestCase.suite(BankEJB20StressTestCase.java:11)
      at java.math.BigInteger.(BigInteger.java:0)


      The receive timeout seems to be on a multicast message that is being sent out that the legacy system doesn't support. There is a way to disable this using an option called jnp.disableDiscovery but only found one reference in all the documentation so I cannot determine how this gets set. I then changed the code in the NamingContext class to work as if this option was set and I get the following error:

      java.lang.reflect.InvocationTargetException: javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1194)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at org.jboss.test.JBossTestServices.init(JBossTestServices.java:406)
      at org.jboss.test.JBossTestSetup.(JBossTestSetup.java:57)
      at org.jboss.test.JBossTestCase$1.(JBossTestCase.java:231)
      at org.jboss.test.JBossTestCase.getDeploySetup(JBossTestCase.java:211)
      at org.jboss.test.JBossTestCase.getDeploySetup(JBossTestCase.java:247)
      at org.jboss.test.bmp.test.BmpUnitTestCase.suite(BmpUnitTestCase.java:130)
      at java.math.BigInteger.(BigInteger.java:0)


      It says it can't find this URL but if I go to a browser and enter the URL, I get a response. I changed it from localhost to the actual hostname but that made no difference.

      In that section of code there is a log method that is referenced called isTraceEnabled(). There is no documentation that I can find on how to set this option to true so it will log more information and hopefully help me with my problems.

      I would appreciate any help that anyone can offer.