Quantcast

Run qpid 0.6 broker error in Linux

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Run qpid 0.6 broker error in Linux

zhaoyi0113@gmail.com
I downloaded qpid-java-0.6 broker and run it on Linux system. I got below error. Does anyone know this issue?

thanks

Starting : SSL RMI ConnectorServer : Listening on port 9099
Error initialising message broker: java.net.MalformedURLException: Bad URL path: _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
main 2010-09-09 18:24:17,180 ERROR [Qpid.Broker] Error initialising message broker: java.net.MalformedURLException: Bad URL path: _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
java.net.MalformedURLException: Bad URL path: _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
        at javax.management.remote.JMXServiceURL.validate(JMXServiceURL.java:348)
        at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:208)
        at org.apache.qpid.server.management.JMXManagedObjectRegistry.start(JMXManagedObjectRegistry.java:251)
        at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:78)
        at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:105)
        at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:93)
        at org.apache.qpid.server.Main.startup(Main.java:310)
        at org.apache.qpid.server.Main.execute(Main.java:233)
        at org.apache.qpid.server.Main.<init>(Main.java:104)
        at org.apache.qpid.server.Main.main(Main.java:541)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Run qpid 0.6 broker error in Linux

Marnie McCormack
Looks like a misconfiguration in your config.xml for the JMX properties -
can you share your config here ?

Marnie

On Fri, Sep 10, 2010 at 4:31 AM, [hidden email]
<[hidden email]>wrote:

>
> I downloaded qpid-java-0.6 broker and run it on Linux system. I got below
> error. Does anyone know this issue?
>
> thanks
>
> Starting : SSL RMI ConnectorServer : Listening on port 9099
> Error initialising message broker: java.net.MalformedURLException: Bad URL
> path: _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
> main 2010-09-09 18:24:17,180 ERROR [Qpid.Broker] Error initialising message
> broker: java.net.MalformedURLException: Bad URL path:
> _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
> java.net.MalformedURLException: Bad URL path:
> _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
>        at
> javax.management.remote.JMXServiceURL.validate(JMXServiceURL.java:348)
>        at
> javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:208)
>        at
>
> org.apache.qpid.server.management.JMXManagedObjectRegistry.start(JMXManagedObjectRegistry.java:251)
>        at
>
> org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:78)
>        at
>
> org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:105)
>        at
>
> org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:93)
>        at org.apache.qpid.server.Main.startup(Main.java:310)
>        at org.apache.qpid.server.Main.execute(Main.java:233)
>        at org.apache.qpid.server.Main.<init>(Main.java:104)
>        at org.apache.qpid.server.Main.main(Main.java:541)
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Run qpid 0.6 broker error in Linux

zhaoyi0113@gmail.com
This is my config.xml file. It works fine in Window XP but failed on Linux.

<broker>
    <prefix>${QPID_HOME}</prefix>
    <work>${QPID_WORK}</work>
    <conf>${prefix}/etc</conf>
    <connector>
       
        <ssl>
            <enabled>false</enabled>
            <sslOnly>false</sslOnly>
            <keystorePath>/path/to/keystore.ks</keystorePath>
            <keystorePassword>keystorepass</keystorePassword>
        </ssl>
        <qpidnio>false</qpidnio>
        <protectio>
            <enabled>false</enabled>
            <readBufferLimitSize>262144</readBufferLimitSize>
            <writeBufferLimitSize>262144</writeBufferLimitSize>           
        </protectio>
        <transport>nio</transport>
        <port>5673</port>
        <sslport>8672</sslport>
        <socketReceiveBuffer>32768</socketReceiveBuffer>
        <socketSendBuffer>32768</socketSendBuffer>
    </connector>
    <management>
        <enabled>true</enabled>
        <jmxport>8999</jmxport>
        <ssl>
            <enabled>true</enabled>
           
            <keyStorePath>${prefix}/etc/keystore.jks</keyStorePath>
            <keyStorePassword>password</keyStorePassword>
        </ssl>
    </management>
    <advanced>
        <filterchain enableExecutorPool="true"/>
        <enablePooledAllocator>false</enablePooledAllocator>
        <enableDirectBuffers>false</enableDirectBuffers>
        <framesize>65535</framesize>
        <compressBufferOnQueue>false</compressBufferOnQueue>
        <enableJMSXUserID>false</enableJMSXUserID>
        <locale>en_US</locale>       
    </advanced>

    <security>
        <principal-databases>
           
            <principal-database>
                <name>passwordfile</name>
                <class>org.apache.qpid.server.security.auth.database.PlainPasswordFilePrincipalDatabase</class>
                <attributes>
                    <attribute>
                        <name>passwordFile</name>
                        <value>${conf}/passwd</value>
                    </attribute>
                </attributes>
            </principal-database>
        </principal-databases>

        <access>
            <class>org.apache.qpid.server.security.access.plugins.AllowAll</class>
        </access>
       
        <msg-auth>false</msg-auth>
       
        <jmx>
            <access>${conf}/jmxremote.access</access>
            <principal-database>passwordfile</principal-database>
        </jmx>
    </security>

    <virtualhosts>

        <default>test</default>
        <virtualhost>
            <name>localhost</name>
            <localhost>
                <store>
                    <class>org.apache.qpid.server.store.MemoryMessageStore
                    </class>
                </store>

                <housekeeping>
                    <expiredMessageCheckPeriod>20000</expiredMessageCheckPeriod>
                </housekeeping>

                <exchanges>
                    <exchange>
                        <type>direct</type>
                        <name>test.direct</name>
                        <durable>true</durable>
                    </exchange>
                    <exchange>
                        <type>topic</type>
                        <name>test.topic</name>
                    </exchange>
                </exchanges>
                <queues>
                    <exchange>amq.direct</exchange>
                    <maximumQueueDepth>4235264</maximumQueueDepth>
                   
                    <maximumMessageSize>2117632</maximumMessageSize>
                   
                    <maximumMessageAge>600000</maximumMessageAge>
                   
                    <maximumMessageCount>50</maximumMessageCount>
                   

                    <queue>
                        <name>queue</name>
                    </queue>
                    <queue>
                        <name>ping</name>
                    </queue>
                    <queue>
                        <name>test-queue</name>
                        <test-queue>
                            <exchange>test.direct</exchange>
                            <durable>true</durable>
                        </test-queue>
                    </queue>
                    <queue>
                        <name>test-ping</name>
                        <test-ping>
                            <exchange>test.direct</exchange>
                        </test-ping>
                    </queue>

                </queues>
            </localhost>
        </virtualhost>


        <virtualhost>
            <name>development</name>
            <development>
                <store>
                    <class>org.apache.qpid.server.store.MemoryMessageStore
                    </class>
                </store>

                <queues>
                    <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
                    <maximumMessageCount>50</maximumMessageCount>
                    <queue>
                        <name>queue</name>
                        <queue>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                           
                            <maximumMessageSize>2117632</maximumMessageSize>
                           
                            <maximumMessageAge>600000</maximumMessageAge>
                           
                        </queue>
                    </queue>
                    <queue>
                        <name>ping</name>
                        <ping>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                           
                            <maximumMessageSize>2117632</maximumMessageSize>
                           
                            <maximumMessageAge>600000</maximumMessageAge>
                           
                        </ping>
                    </queue>
                </queues>
            </development>
        </virtualhost>
        <virtualhost>
            <name>test</name>
            <test>
                <store>
                    <class>org.apache.qpid.server.store.MemoryMessageStore
                    </class>
                </store>

                <queues>
                    <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
                    <maximumMessageCount>50</maximumMessageCount>
                    <queue>
                        <name>queue</name>
                        <queue>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                           
                            <maximumMessageSize>2117632</maximumMessageSize>
                           
                            <maximumMessageAge>600000</maximumMessageAge>
                           
                        </queue>
                    </queue>
                    <queue>
                        <name>ping</name>
                        <ping>
                            <exchange>amq.direct</exchange>
                            <maximumQueueDepth>4235264</maximumQueueDepth>
                           
                            <maximumMessageSize>2117632</maximumMessageSize>
                           
                            <maximumMessageAge>600000</maximumMessageAge>
                           
                        </ping>
                    </queue>
                </queues>
            </test>
        </virtualhost>
    </virtualhosts>
    <heartbeat>
        <delay>0</delay>
        <timeoutFactor>2.0</timeoutFactor>
    </heartbeat>
    <queue>
        <auto_register>true</auto_register>
    </queue>

    <status-updates>ON</status-updates>

</broker>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Run qpid 0.6 broker error in Linux

Marnie McCormack
Actually, it's more likely to be your JNDI entries - do you have the correct
Linux slashes etc in all your paths ?

On Mon, Sep 13, 2010 at 3:11 AM, [hidden email]
<[hidden email]>wrote:

>
> This is my config.xml file. It works fine in Window XP but failed on Linux.
>
> <broker>
>    <prefix>${QPID_HOME}</prefix>
>    <work>${QPID_WORK}</work>
>    <conf>${prefix}/etc</conf>
>    <connector>
>        <!-- To enable SSL edit the keystorePath and keystorePassword
>             and set enabled to true.
>             To disasble Non-SSL port set sslOnly to true -->
>        <ssl>
>            <enabled>false</enabled>
>            <sslOnly>false</sslOnly>
>            <keystorePath>/path/to/keystore.ks</keystorePath>
>            <keystorePassword>keystorepass</keystorePassword>
>        </ssl>
>        <qpidnio>false</qpidnio>
>        <protectio>
>            <enabled>false</enabled>
>            <readBufferLimitSize>262144</readBufferLimitSize>
>            <writeBufferLimitSize>262144</writeBufferLimitSize>
>        </protectio>
>        <transport>nio</transport>
>        <port>5673</port>
>        <sslport>8672</sslport>
>        <socketReceiveBuffer>32768</socketReceiveBuffer>
>        <socketSendBuffer>32768</socketSendBuffer>
>    </connector>
>    <management>
>        <enabled>true</enabled>
>        <jmxport>8999</jmxport>
>        <ssl>
>            <enabled>true</enabled>
>            <!-- Update below path to your keystore location, eg
> ${conf}/qpid.keystore  -->
>            <keyStorePath>${prefix}/etc/keystore.jks</keyStorePath>
>            <keyStorePassword>password</keyStorePassword>
>        </ssl>
>    </management>
>    <advanced>
>        <filterchain enableExecutorPool="true"/>
>        <enablePooledAllocator>false</enablePooledAllocator>
>        <enableDirectBuffers>false</enableDirectBuffers>
>        <framesize>65535</framesize>
>        <compressBufferOnQueue>false</compressBufferOnQueue>
>        <enableJMSXUserID>false</enableJMSXUserID>
>        <locale>en_US</locale>
>    </advanced>
>
>    <security>
>        <principal-databases>
>            <!-- Example use of Base64 encoded MD5 hashes for authentication
> via CRAM-MD5-Hashed -->
>            <principal-database>
>                <name>passwordfile</name>
>
>
> <class>org.apache.qpid.server.security.auth.database.PlainPasswordFilePrincipalDatabase</class>
>                <attributes>
>                    <attribute>
>                        <name>passwordFile</name>
>                        <value>${conf}/passwd</value>
>                    </attribute>
>                </attributes>
>            </principal-database>
>        </principal-databases>
>
>        <access>
>
> <class>org.apache.qpid.server.security.access.plugins.AllowAll</class>
>        </access>
>
>        <msg-auth>false</msg-auth>
>
>        <jmx>
>            <access>${conf}/jmxremote.access</access>
>            <principal-database>passwordfile</principal-database>
>        </jmx>
>    </security>
>
>    <virtualhosts>
>
>        <default>test</default>
>        <virtualhost>
>            <name>localhost</name>
>            <localhost>
>                <store>
>                    <class>org.apache.qpid.server.store.MemoryMessageStore
>                    </class>
>                </store>
>
>                <housekeeping>
>
> <expiredMessageCheckPeriod>20000</expiredMessageCheckPeriod>
>                </housekeeping>
>
>                <exchanges>
>                    <exchange>
>                        <type>direct</type>
>                        <name>test.direct</name>
>                        <durable>true</durable>
>                    </exchange>
>                    <exchange>
>                        <type>topic</type>
>                        <name>test.topic</name>
>                    </exchange>
>                </exchanges>
>                <queues>
>                    <exchange>amq.direct</exchange>
>                    <maximumQueueDepth>4235264</maximumQueueDepth>
>                    <!-- 4Mb -->
>                    <maximumMessageSize>2117632</maximumMessageSize>
>                    <!-- 2Mb -->
>                    <maximumMessageAge>600000</maximumMessageAge>
>                    <!-- 10 mins -->
>                    <maximumMessageCount>50</maximumMessageCount>
>                    <!-- 50 messages -->
>
>                    <queue>
>                        <name>queue</name>
>                    </queue>
>                    <queue>
>                        <name>ping</name>
>                    </queue>
>                    <queue>
>                        <name>test-queue</name>
>                        <test-queue>
>                            <exchange>test.direct</exchange>
>                            <durable>true</durable>
>                        </test-queue>
>                    </queue>
>                    <queue>
>                        <name>test-ping</name>
>                        <test-ping>
>                            <exchange>test.direct</exchange>
>                        </test-ping>
>                    </queue>
>
>                </queues>
>            </localhost>
>        </virtualhost>
>
>
>        <virtualhost>
>            <name>development</name>
>            <development>
>                <store>
>                    <class>org.apache.qpid.server.store.MemoryMessageStore
>                    </class>
>                </store>
>
>                <queues>
>                    <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
>                    <maximumMessageCount>50</maximumMessageCount>
>                    <queue>
>                        <name>queue</name>
>                        <queue>
>                            <exchange>amq.direct</exchange>
>                            <maximumQueueDepth>4235264</maximumQueueDepth>
>                            <!-- 4Mb -->
>                            <maximumMessageSize>2117632</maximumMessageSize>
>                            <!-- 2Mb -->
>                            <maximumMessageAge>600000</maximumMessageAge>
>                            <!-- 10 mins -->
>                        </queue>
>                    </queue>
>                    <queue>
>                        <name>ping</name>
>                        <ping>
>                            <exchange>amq.direct</exchange>
>                            <maximumQueueDepth>4235264</maximumQueueDepth>
>                            <!-- 4Mb -->
>                            <maximumMessageSize>2117632</maximumMessageSize>
>                            <!-- 2Mb -->
>                            <maximumMessageAge>600000</maximumMessageAge>
>                            <!-- 10 mins -->
>                        </ping>
>                    </queue>
>                </queues>
>            </development>
>        </virtualhost>
>        <virtualhost>
>            <name>test</name>
>            <test>
>                <store>
>                    <class>org.apache.qpid.server.store.MemoryMessageStore
>                    </class>
>                </store>
>
>                <queues>
>                    <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
>                    <maximumMessageCount>50</maximumMessageCount>
>                    <queue>
>                        <name>queue</name>
>                        <queue>
>                            <exchange>amq.direct</exchange>
>                            <maximumQueueDepth>4235264</maximumQueueDepth>
>                            <!-- 4Mb -->
>                            <maximumMessageSize>2117632</maximumMessageSize>
>                            <!-- 2Mb -->
>                            <maximumMessageAge>600000</maximumMessageAge>
>                            <!-- 10 mins -->
>                        </queue>
>                    </queue>
>                    <queue>
>                        <name>ping</name>
>                        <ping>
>                            <exchange>amq.direct</exchange>
>                            <maximumQueueDepth>4235264</maximumQueueDepth>
>                            <!-- 4Mb -->
>                            <maximumMessageSize>2117632</maximumMessageSize>
>                            <!-- 2Mb -->
>                            <maximumMessageAge>600000</maximumMessageAge>
>                            <!-- 10 mins -->
>                        </ping>
>                    </queue>
>                </queues>
>            </test>
>        </virtualhost>
>    </virtualhosts>
>    <heartbeat>
>        <delay>0</delay>
>        <timeoutFactor>2.0</timeoutFactor>
>    </heartbeat>
>    <queue>
>        <auto_register>true</auto_register>
>    </queue>
>
>    <status-updates>ON</status-updates>
>
> </broker>
>
>
>
> --
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Run qpid 0.6 broker error in Linux

Robbie Gemmell
Administrator
In reply to this post by zhaoyi0113@gmail.com
The exception is being generated at the point the JMX implementation
classes validate a JMXServiceURL the broker uses during startup of its
JMX server. I believe this could be due to issues with your linux
machines hostname as it is not legal since DNS hostnames are not
allowed to use underscore characterss (_).

Can you update your hostname to a legal value
(http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names)
and then try again?

As a test you could temporarily override the value used by the JMX
implementation for the hostname in this case and seeing whether this
allows the broker to start. You can do this by specifying a legal
value (eg the machines IP address) for the java.rmi.server.hostname
system property when starting the broker, you can export it into
QPID_OPTS environment variable to have the startup script pass it
through:

export QPID_OPTS="-Djava.rmi.server.hostname=<enter an ip address or hostname>"

Robbie

On 10 September 2010 04:31, [hidden email] <[hidden email]> wrote:

>
> I downloaded qpid-java-0.6 broker and run it on Linux system. I got below
> error. Does anyone know this issue?
>
> thanks
>
> Starting : SSL RMI ConnectorServer : Listening on port 9099
> Error initialising message broker: java.net.MalformedURLException: Bad URL
> path: _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
> main 2010-09-09 18:24:17,180 ERROR [Qpid.Broker] Error initialising message
> broker: java.net.MalformedURLException: Bad URL path:
> _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
> java.net.MalformedURLException: Bad URL path:
> _nuv:9099/jndi/rmi://suse_nuv:8999/jmxrmi
>        at javax.management.remote.JMXServiceURL.validate(JMXServiceURL.java:348)
>        at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:208)
>        at
> org.apache.qpid.server.management.JMXManagedObjectRegistry.start(JMXManagedObjectRegistry.java:251)
>        at
> org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:78)
>        at
> org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:105)
>        at
> org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:93)
>        at org.apache.qpid.server.Main.startup(Main.java:310)
>        at org.apache.qpid.server.Main.execute(Main.java:233)
>        at org.apache.qpid.server.Main.<init>(Main.java:104)
>        at org.apache.qpid.server.Main.main(Main.java:541)
>
> --
> View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/Run-qpid-0-6-broker-error-in-Linux-tp5517015p5517015.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[hidden email]
>
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Run qpid 0.6 broker error in Linux

zhaoyi0113@gmail.com
You are right. After I correct the hostname, the qpid broker works fine.

thanks

Zhao Yi
Loading...