Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Info
titleHistoric Information

This page is no longer applicable to current releases. Current documentation for is now kept on the website, see http://qpid.apache.org/documentation.html for more details.

Contents

Table of Contents
minlevel2

I'm getting a java.lang.UnsupportedClassVersionError when I try to start the broker. What does this mean ?

The QPID broker requires JDK 1.5 or later. If you're seeing this exception you don't have that version in your path. Set JAVA_HOME to the correct version and ensure the bin directory is on your path.

Wiki Markupjava.lang.UnsupportedClassVersionError: org/apache/qpid/server/Main (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass(Ljava.lang.String;\[BIILjava.security.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
at java.security.SecureClassLoader.defineClass(Ljava.lang.String;\[BIILjava.security.CodeSource;)Ljava.lang.Class;(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(Ljava.lang.String;Lsun.misc.Resource;)Ljava.lang.Class;(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(Ljava.net.URLClassLoader;Ljava.lang.String;Lsun.misc.Resource;)Ljava.lang.Class;(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run()Ljava.lang.Object;
(URLClassLoader.java:194)
at jrockit.vm.AccessController.do_privileged_exc(Ljava.security.PrivilegedExceptionAction;Ljava.security.AccessControlContext;I)Ljava.lang.Object;(Unknown Source)
at jrockit.vm.AccessController.doPrivileged(Ljava.security.PrivilegedExceptionAction;Ljava.security.AccessControlContext;)Ljava.lang.Object;(Unknown Source)
at java.net.URLClassLoader.findClass(Ljava.lang.String;)Ljava.lang.Class;(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class; (Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;(Launcher.java:274)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;
(Unknown Source)
at java.lang.ClassLoader.loadClassFromNative(II)Ljava.lang.Class;
(Unknown Source)

I'm having a problem binding to the required host:port at broker startup ?

...

You can also amend the port more simply using the -p option to qpid-server i.e. qpid-server -p <my port number'

I'm

...

The sleepycat exceptions are thrown from the Berkley DB code which we use for persistence.

Exceptions thrown here generally indicate a problem writing to the lock file for the database. Note that the value of the environment variable QPID_WORK defines the path to the bdb directory into which the lock file & db are written. If QPID_WORK is not set before starting the broker it will default to $HOME and the BDB files will be thus written to $HOME/bdb.

Common causes of problems like this include:

  • you already have a broker running with the same BDB path and a lock file, thus you cannot start another one with the same work directory. Try changing QPID_WORK before starting another broker.
  • the device into which the lock file would be written is full (or otherwise not writeable). Try changing QPID_WORK to be /tmp or somewhere else and restart to see if this is the issue.

I'm having problems with my classpath. How can I ensure that my classpath is ok ?

...

"2006-10-13 09:58:14,672 INFO [main] server.Main (Main.java:343) - Qpid.AMQP listening on non-SSL address 0.0.0.0/0.0.0.0:5672"

... then you know the broker started up. If not, then it didn't.

If you still can't figure out the problem (and you are in dev not prod) then drop us an email 'IBTech Qpid Developers' or use JPMIM "qpid users" to contact us.

When I try to send messages to a queue I'm getting a error as the queue does not exist. What can I do ?

In Qpid queues need a consumer before they really exist, unless you have used the virtualhosts.xml file to specify queues which should always be created at broker startup. If you don't want to use this config, then simply ensure that you consume first from queue before staring to publish to it. See the entry on our Qpid Java FAQ for more details of using the virtualhosts.xml route.