activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jdev.hari" <jdev.h...@gmail.com>
Subject java.io.IOException: Frame size Error
Date Wed, 06 Mar 2013 00:26:59 GMT
Hi,
I am developing a spring based web application and I configured a jms
listener as follows

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:amq="http://activemq.apache.org/schema/core"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <context:annotation-config />
    <bean id="jmsFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://someserverip:8161" />
    </bean>

    <bean id="container"
       
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
        <property name="connectionFactory" ref="cachingConnectionFactory"/>
        <property name="messageListener" ref="MsgProcessor"/>
        <property name="destinationName" value="TESTQUEUE" />
    </bean>

    <bean id="cachingConnectionFactory"
        class="org.springframework.jms.connection.CachingConnectionFactory">
        <property name="targetConnectionFactory" ref="jmsFactory" />
        <property name="sessionCacheSize" value="1" />
    </bean>
</beans>


I am getting the error


2013-03-05 18:01:27,437 [ActiveMQ Connection Executor:
tcp://somserverip/10.5.182.24:8161]
org.springframework.jms.connection.SingleConnectionFactory.onException(SingleConnectionFactory.java:301)
 WARN  : Encountered a JMSException - resetting the underlying JMS
Connection
javax.jms.JMSException: Frame size of 1157 MB larger than max allowed 100 MB
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
	at
org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1934)
	at
org.apache.activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1951)
	at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:101)
	at
org.apache.activemq.transport.ResponseCorrelator.onException(ResponseCorrelator.java:126)
	at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:101)
	at
org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:101)
	at
org.apache.activemq.transport.WireFormatNegotiator.onException(WireFormatNegotiator.java:160)
	at
org.apache.activemq.transport.AbstractInactivityMonitor.onException(AbstractInactivityMonitor.java:268)
	at
org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96)
	at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:208)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Frame size of 1157 MB larger than max
allowed 100 MB
	at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:277)
	at
org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:229)
	at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:221)
	at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:204)



I can confirm that I just put a string in the queue using Activemq console.
Any ideas.

Thanks,



--
View this message in context: http://activemq.2283324.n4.nabble.com/java-io-IOException-Frame-size-Error-tp4664410.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message