Can't start message brokers - Forum - Technology Partner - Progress Community
 Forum

Can't start message brokers

  • Hi,

    I'm trying to setup an evaluation copy of MQ and I just can't start the message broker. I've tried both a typical install and a specific broker install. I can get the directory node to start fine, and can connect using the management tools fine, but when trying to start the message container (startmsgcontainer.sh on typical install and startcontainer.sh on broker install), I get some weird errors:

    langfords@langfords3:~/SonicEval/MsgBroker/MQ7.6$ bin/startcontainer.sh
    CompilerOracle: exclude progress/message/broker/AgentQueueDispatcher$DispatchThread.threadMain
    [10/02/10 15:42:07] (info) Open container boot file "/home/langfords/SonicEval/MsgBroker/MQ7.6/container.xml"
    [10/02/10 15:42:07] (info) Fetching the resources of container "Domain1.langfords3"
    [10/02/10 15:42:07] (info) Cache opened in directory "/home/langfords/SonicEval/MsgBroker/MQ7.6/Domain1.langfords3.cache"
    [10/02/10 15:42:07] (info) Connecting with a connection timeout of 10 seconds
    [10/02/10 15:42:09] (warning) Failed to refresh resources, trace follows...
    java.lang.ClassNotFoundException: [Ljava.lang.String;
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at com.sonicsw.mf.framework.agent.ClassLoaderFactory$DelegatingLoader.loadClass(Unknown Source)
        at com.sonicsw.mf.framework.agent.ClassLoaderFactory$DelegatingLoader.loadClass(Unknown Source)
        at com.sonicsw.mf.framework.agent.AbstractMBean.internalInvoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.ComponentMBean.internalInvoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl$InternalRequestHandler.internalInvoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl$InternalRequestHandler.invoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.JMSConnectorServer$RequestHandlerDelegate.onMessage(Unknown Source)
        at com.sonicsw.mf.framework.agent.JMSConnectorServer$2.run(Unknown Source)
        at com.sonicsw.mf.framework.agent.TaskScheduler$ExecutionThread.run(Unknown Source)

    [10/02/10 15:42:09] (info) CompilerOracle: exclude progress/message/broker/AgentQueueDispatcher$DispatchThread.threadMain

    [10/02/10 15:42:09] (info) The container working directory is "/home/langfords/SonicEval/MsgBroker/MQ7.6"
    CompilerOracle: exclude progress/message/broker/AgentQueueDispatcher$DispatchThread.threadMain
    [10/02/10 15:42:11] (config)

        Sonic Management
        Release 7.6.0 Build Number 351
        Copyright (c) 1999-2008 Progress Software Corporation.
        All rights reserved.

        Local host: langfords3 (Linux - 2.6.24-26-generic)

        Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
        Sun Microsystems Inc. (home /usr/java/jdk1.6.0_13/jre, version 1.6.0_13)
        Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)

        Configured Arguments : -Xms32m -Xmx256m
        Configured Properties: <none>

    [10/02/10 15:42:11] (info) "Domain1.langfords3" starting...
    [10/02/10 15:42:11] (info) Management connection (re)established (Socket[addr=hamdev560.aws.dev.ham.uk.betfair/10.160.146.160,port=2506,localport=60389])
    [10/02/10 15:42:11] (info) Loaded ID=AGENT
    [10/02/10 15:42:12] (severe) Trace follows...
    com.sonicsw.mf.common.MFRuntimeException: Failed to get configuration of updated/new elements.
        at com.sonicsw.mf.framework.agent.ContainerDS.convertException(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerDS.reconcileCache(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl.reconcileCacheWithDS(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl.reconcileCache(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl.bootFramework(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.sonicsw.mf.framework.agent.ci.Agent.<init>(Unknown Source)
        at com.sonicsw.mf.framework.agent.ci.Agent$1.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: [Ljava.lang.Short;
        at com.sonicsw.mf.common.MFRuntimeException.setLinkedException(Unknown Source)
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: [Ljava.lang.Short;
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at com.sonicsw.mf.framework.agent.ClassLoaderFactory$DelegatingLoader.loadClass(Unknown Source)
        at com.sonicsw.mf.framework.agent.ClassLoaderFactory$DelegatingLoader.loadClass(Unknown Source)
        at com.sonicsw.mf.framework.agent.AbstractMBean.internalInvoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.ComponentMBean.internalInvoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl$InternalRequestHandler.internalInvoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl$InternalRequestHandler.invoke(Unknown Source)
        at com.sonicsw.mf.framework.agent.JMSConnectorServer$RequestHandlerDelegate.onMessage(Unknown Source)
        at com.sonicsw.mf.framework.agent.JMSConnectorServer$2.run(Unknown Source)
        at com.sonicsw.mf.framework.agent.TaskScheduler$ExecutionThread.run(Unknown Source)

    java.lang.Error: com.sonicsw.mf.common.MFRuntimeException: Failed to get configuration of updated/new elements.
        at com.sonicsw.mf.framework.agent.ContainerImpl.reconcileCache(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl.bootFramework(Unknown Source)
        at com.sonicsw.mf.framework.agent.ContainerImpl.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.sonicsw.mf.framework.agent.ci.Agent.<init>(Unknown Source)
        at com.sonicsw.mf.framework.agent.ci.Agent$1.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
    [10/02/10 15:42:12] (warning) Shutdown initiated (exit code=1)
    [10/02/10 15:42:16] (info) Unloaded ID=AGENT
    [10/02/10 15:42:16] (info) Exiting...

    My container.xml is as follows:

    langfords@langfords3:~/SonicEval/MsgBroker/MQ7.6$ cat container.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Domain name="Domain1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sonicsw.com/mf" xsi:schemaLocation="http://www.sonicsw.com/mf MFConfigurationElements.xsd">
      <ConfigElement>
        <ElementID name="/containers/1265816495003_9" creationTimestamp="0" type="MF_CONTAINER" releaseVersion="103" version="0" />
        <AttributeSet>
          <AttributeSet>
            <AttributeName name="CONNECTION" />
            <Attribute name="ConnectionURLs" value="tcp://hamdev560.aws.dev.ham.uk.betfair:2506" type="string" />
            <Attribute name="DefaultUser" value="Administrator" type="string" />
            <Attribute name="DefaultPassword" value="Administrator" type="string" />
          </AttributeSet>
          <Attribute name="CONTAINER_NAME" value="langfords3" type="string" />
          <AttributeSet>
            <AttributeName name="CACHE" />
          </AttributeSet>
          <Attribute name="CLASSNAME" value="com.sonicsw.mf.framework.agent.Agent" type="string" />
        </AttributeSet>
      </ConfigElement>

    I can successfully connect to hamdev560.aws.dev.ham.uk.betfair:2506 using the management tools, and did so successfully during the install. I also suspect that since this occurs on the custom install there's something else going on.

    Thanks

    Simon

  • If you want to use Java 6 with Sonic 7.6 then apply Service Pack 2 first. The problem should go away afterwards.

  • Do you know where I can obtain SP2? What I have is what the try it link gave me a couple of weeks ago.

  • Afaik, there is not public download of the service pack (for non-customers). Since you evaluating please ask your account manager to provide a download to you.

  • Alternately, you should evaluate 7.6 on the platform and jvm supported by 7.6.0.   (As Thomas points out, Java 6 was not certified until Sonic 7.6.2.)