[rabbitmq-discuss] Maximum Frame Setting Not Working

Rom rommel.carino.garcia at gmail.com
Tue Mar 1 03:55:14 GMT 2011


I have successfully run a very simple message publisher with my
ConnectionFactory setting below.

                ConnectionFactory factory = new ConnectionFactory();
		factory.setUsername("rabbitmq");
		factory.setPassword("rabbitmq");
		factory.setVirtualHost("/4couchdb");
		factory.setHost("rcgarcia74");
		factory.setPort(ConnectionFactory.DEFAULT_AMQP_PORT);
		factory.setRequestedChannelMax(100);
		factory.setRequestedHeartbeat(300);

But when I start adding in the Maximum Frame size below, any number
that I put in doesn't work. Is there a variable that I need to set at
rabbitmq.conf? If it's in the conf file what's the key/vakue pair?

                factory.setRequestedFrameMax(1);

Here's the exception I'm getting.

java.io.IOException
	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:121)
	at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:
145)
	at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:
311)
	at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:
379)
	at
com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:
399)
	at
com.gravady.rnd.rabbitmq.MessagePublisherNoSSL.main(MessagePublisherNoSSL.java:
26)
Caused by: com.rabbitmq.client.ShutdownSignalException: connection
error; reason: java.io.EOFException
	at
com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:
81)
	at
com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:
47)
	at com.rabbitmq.client.impl.AMQChannel
$BlockingRpcContinuation.getReply(AMQChannel.java:342)
	at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:215)
	at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:
139)
	... 4 more
Caused by: java.io.EOFException
	at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273)
	at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:118)
	at
com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:
155)
	at
com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:
393)
	at com.rabbitmq.client.impl.AMQConnection
$MainLoop.run(AMQConnection.java:421)
Exception in thread "main" java.lang.NullPointerException
	at
com.gravady.rnd.rabbitmq.MessagePublisherNoSSL.main(MessagePublisherNoSSL.java:
46)


More information about the rabbitmq-discuss mailing list