0 Replies Latest reply on Dec 6, 2001 9:38 PM by garyg

    SpyJMSException: Cannot get a client ID

    garyg Novice

      I'm running 2.4.3 w/ catalina and when I start up the server, I get the following error:

      [Container factory] Serious error in init: org.jboss.mq.SpyJMSException: Cannot get a client ID

      I'm not sure what 'Cannot get a client ID' here means.

      The full exception is at the bottom. I beleive my deployment descriptors are also fine as well as the jboss.jcml, etc... and I have not even started the client yet so no need in listing it.

      I've listed my MDB which is basically empty.

      Any help much appreciated.

      --- my MDB class ---------------------

      package com.neuroquest.cais.ejb.message.reporter;

      import java.util.*;
      import javax.ejb.*;
      import javax.jms.*;
      import javax.rmi.*;
      import javax.naming.*;

      import com.neuroquest.cais.log.*;

      public class Reporter implements MessageDrivenBean, MessageListener {

      private String message = null;
      private MessageDrivenContext context = null;

      private static Logger log = new Logger();

      public Reporter() {

      }

      public void ejbCreate() throws CreateException {}

      public void ejbRemove() {
      this.context = null;
      }

      public void setMessageDrivenContext(MessageDrivenContext ctx) {
      this.context = ctx;
      }

      public void onMessage(Message msg) {
      log.info(Reporter.class, "Reporter got message " + message.toString());
      }
      }

      ---- ./run_with_catalina.sh ----------

      [Container factory] Serious error in init: org.jboss.mq.SpyJMSException: Cannot get a client ID
      [Container factory] java.lang.Exception: org.jboss.mq.SpyJMSException: Cannot get a client ID
      [Container factory] at org.jboss.ejb.MessageDrivenContainer.init(MessageDrivenContainer.java:173)
      [Container factory] at org.jboss.ejb.Application.init(Application.java:202)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Container factory] at $Proxy0.start(Unknown Source)
      [Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.Main.(Main.java:221)
      [Container factory] at org.jboss.Main$1.run(Main.java:127)
      [Container factory] at java.security.AccessController.doPrivileged(Native Method)
      [Container factory] at org.jboss.Main.main(Main.java:123)
      [J2EE Deployer Default] Starting acais-1.0.ear failed!