I have a weird issue to report. If I create a org.rabbitmq.client.ConnectionFactory
in Java like so:
ConnectionFactory connectionFactory = new ConnectionFactory();
connectionFactory.setHost("localhost");
<?xml version="1.0"?>
<beans ...>
<bean class="org.rabbitmq.client.ConnectionFactory"/>
</beans>
ApplicationContext applicationContext = new ClasspathXmlApplicationContext("applicationContext.xml");
ConnectionFactory connectionFactory = applicationContext.getBean(ConnectionFactory.class);
connectionFactory.setHost("localhost");
Caused by: java.lang.IllegalArgumentException: invalid value in table
at com.rabbitmq.client.impl.Frame.fieldValueSize(Frame.java:306)
at com.rabbitmq.client.impl.Frame.tableSize(Frame.java:246)
at com.rabbitmq.client.impl.ValueWriter.writeTable(ValueWriter.java:120)
at com.rabbitmq.client.impl.MethodArgumentWriter.writeTable(MethodArgumentWriter.java:139)
at com.rabbitmq.client.impl.AMQImpl$Connection$StartOk.writeArgumentsTo(AMQImpl.java:161)
at com.rabbitmq.client.impl.Method.toFrame(Method.java:83)
at com.rabbitmq.client.impl.AMQCommand.transmit(AMQCommand.java:102)
at com.rabbitmq.client.impl.AMQChannel.quiescingTransmit(AMQChannel.java:316)
at com.rabbitmq.client.impl.AMQChannel.quiescingTransmit(AMQChannel.java:298)
at com.rabbitmq.client.impl.AMQChannel.quiescingRpc(AMQChannel.java:233)
at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:224)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:209)
at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:202)
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:340)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:516)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:533)
at org.tkassembled.rabbitmq.publisher.Application.main(Application.java:47)
{product=RabbitMQ, information=Licensed under the MPL. See http://www.rabbitmq.com/, platform=Java, capabilities={exchange_exchange_bindings=true, consumer_cancel_notify=true, basic.nack=true, publisher_confirms=true}, copyright=Copyright (C) 2007-2012 VMware, Inc., version=2.8.4}
{environment=StandardEnvironment {activeProfiles=[], defaultProfiles=[default], propertySources=[systemProperties,systemEnvironment]}, systemProperties={java.runtime.name=OpenJDK Runtime Environment, sun.boot.library.path=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64, java.vm.version=20.0-b12, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=:, java.vm.name=OpenJDK 64-Bit Server VM, file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD, user.country=US, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/rfkrocktk/Documents/Projects/Work/rabbitmq-demo-publisher, java.runtime.version=1.6.0_24-b24, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/lib/jvm/java-6-openjdk/jre/lib/endorsed, os.arch=amd64, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib, java.specification.name=Java Platform API Specification, java.class.version=50.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=3.0.0-22-generic, user.home=/home/rfkrocktk, user.timezone=America/Los_Angeles, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.6, java.class.path=/home/rfkrocktk/Documents/Projects/Work/rabbitmq-demo-publisher/target/classes:/home/rfkrocktk/.m2/repository/com/rabbitmq/amqp-client/2.8.4/amqp-client-2.8.4.jar:/home/rfkrocktk/.m2/repository/org/springframework/spring-beans/3.1.2.RELEASE/spring-beans-3.1.2.RELEASE.jar:/home/rfkrocktk/.m2/repository/org/springframework/spring-context/3.1.2.RELEASE/spring-context-3.1.2.RELEASE.jar:/home/rfkrocktk/.m2/repository/org/springframework/spring-aop/3.1.2.RELEASE/spring-aop-3.1.2.RELEASE.jar:/home/rfkrocktk/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/home/rfkrocktk/.m2/repository/org/springframework/spring-expression/3.1.2.RELEASE/spring-expression-3.1.2.RELEASE.jar:/home/rfkrocktk/.m2/repository/org/springframework/spring-asm/3.1.2.RELEASE/spring-asm-3.1.2.RELEASE.jar:/home/rfkrocktk/.m2/repository/org/springframework/spring-context-support/3.1.2.RELEASE/spring-context-support-3.1.2.RELEASE.jar:/home/rfkrocktk/.m2/repository/org/springframework/spring-core/3.1.2.RELEASE/spring-core-3.1.2.RELEASE.jar:/home/rfkrocktk/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/home/rfkrocktk/.m2/repository/org/slf4j/slf4j-api/1.6.5/slf4j-api-1.6.5.jar:/home/rfkrocktk/.m2/repository/org/slf4j/jul-to-slf4j/1.6.5/jul-to-slf4j-1.6.5.jar:/home/rfkrocktk/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.5/jcl-over-slf4j-1.6.5.jar:/home/rfkrocktk/.m2/repository/ch/qos/logback/logback-classic/1.0.4/logback-classic-1.0.4.jar:/home/rfkrocktk/.m2/repository/ch/qos/logback/logback-core/1.0.4/logback-core-1.0.4.jar, user.name=rfkrocktk, java.vm.specification.version=1.0, sun.java.command=org.tkassembled.rabbitmq.publisher.Application, java.home=/usr/lib/jvm/java-6-openjdk/jre, sun.arch.data.model=64, user.language=en, java.specification.vendor=Sun Microsystems Inc., java.vm.info=mixed mode, java.version=1.6.0_24, java.ext.dirs=/usr/lib/jvm/java-6-openjdk/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/netx.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/plugin.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-openjdk/jre/classes, java.vendor=Sun Microsystems Inc., file.separator=/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=gnome, sun.cpu.isalist=}, systemEnvironment={LIBVA_DRIVER_NAME=xvba, LIBVA_DRIVERS_PATH=/usr/lib/va/drivers, GTK_MODULES=canberra-gtk-module:canberra-gtk-module, GNOME_KEYRING_CONTROL=/tmp/keyring-FVomTs, XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session7, SSH_AGENT_PID=14768, SESSION_MANAGER=local/work-macbook:@/tmp/.ICE-unix/14732,unix/work-macbook:/tmp/.ICE-unix/14732, GNOME_DESKTOP_SESSION_ID=this-is-deprecated, COMPIZ_CONFIG_PROFILE=ubuntu, XDG_SESSION_COOKIE=1caa5669b1efc2337b52f8b40000001c-1342060648.248511-507012802, GDMSESSION=ubuntu, MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path, XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/, PWD=/home/rfkrocktk, GIO_LAUNCHED_DESKTOP_FILE=/home/rfkrocktk/.local/share/applications/alacarte-made.desktop, LOGNAME=rfkrocktk, GPG_AGENT_INFO=/tmp/keyring-FVomTs/gpg:0:1, GIO_LAUNCHED_DESKTOP_FILE_PID=9244, SSH_AUTH_SOCK=/tmp/keyring-FVomTs/ssh, LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64, SHELL=/bin/bash, LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri:/usr/lib32/fglrx/dri, DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-nVK2hmDwIH,guid=52b6ec40d3390d2ad6e6e482000630c6, GNOME_KEYRING_PID=14723, IBUS_NO_SNOOPER_APPS=synapse, PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games, XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg, XDG_CURRENT_DESKTOP=Unity, DESKTOP_SESSION=ubuntu, DISPLAY=:2, USER=rfkrocktk, UBUNTU_MENUPROXY=libappmenu.so, HOME=/home/rfkrocktk, XAUTHORITY=/home/rfkrocktk/.Xauthority, DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path, XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0, USERNAME=rfkrocktk, LANG=en_US.UTF-8}, messageSource=org.springframework.context.support.DelegatingMessageSource@55d7fc31, applicationEventMulticaster=org.springframework.context.event.SimpleApplicationEventMulticaster@56ee20fe}
Both of these instances are created in the same JVM run and classpath, so I have no idea why the properties would vary.