0 Replies Latest reply on Dec 20, 2005 6:10 PM by maruthiravuri

    communication exception

    maruthiravuri

      It has abt web services .But just to give a background

      We have a ColdFusion Webservice which is trying to communicate a JAva web service .What this Java web service does-- is puts message onto the JBOSS queue and calls the session bean where there is lot of business logic.

      While communicating to the queue we get this error intermittently.
      This is not always.

      [com.dasg.cwp.acceptor.Cworderstatuspushimpl] The provider url is :jnp://localhost:1099

      Happens immediately after this line and the bean gets undeployed

      JNDI lookup failed: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
      java.io.EOFException]


      2005-11-22 10:24:22,833 DEBUG [com.dabg.cwp.acceptor.Cworderstatuspushimpl] Trying to send a message in the Cworderstatuspushimpl class:
      2005-11-22 10:24:22,833 DEBUG [com.dabg.cwp.acceptor.Cworderstatuspushimpl] Exception occurred in the CW Implementation web service class which actually drops a message into the queueu: java.lang.NullPointerException






      The code snippet is as follows for putting the message into the queue

      log.trace("The provider url is :" + providerurl);

      Hashtable env = new Hashtable();

      env.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      env.put(Context.URL_PKG_PREFIXES,
      "org.jboss.naming:org.jnp.interfaces");
      env.put(Context.PROVIDER_URL, providerurl);
      log.trace("Before trying to do an initial context in the CWorder status push implementation ");
      InitialContext ctx = new InitialContext(env);

      connectionFactory =
      (ConnectionFactory) ctx.lookup("ConnectionFactory");
      destination = (Queue) ctx.lookup("queue/messageQueue");
      log.trace("After trying to do an initial context in the CWorder status push implementation ");
      } catch (NamingException e) {
      log.trace("JNDI lookup failed in the CW order status push Implementation class: " + e.toString());
      }

      try {
      log.trace("Trying to send a message in the Cworderstatuspushimpl class:");
      connection = connectionFactory.createConnection();
      session = connection.createSession(false,
      Session.AUTO_ACKNOWLEDGE);
      messageProducer = session.createProducer(destination);
      message = session.createTextMessage();