You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by petera <pe...@egsgroup.com> on 2006/10/25 15:30:37 UTC
Broker going down: MulticastDiscoveryAgent
Hi,
On a test server I have activemq running with the xml configuration file
(SEE activemq.xml BELOW).
Tomcat has two web apps listening for the broker on port 61616 (SEE
context.xml ).
Everything runs fine for a while and then the broker goes down with the
following message:
ERROR MulticastDiscoveryAgent - failed to process packet:
java.net.SocketException: Socket closed
Any help would be greatly appreciated.
TIA Peter
ACTIVEMQ.XML
-----------------
<beans>
<!-- Allows us to use system properties as variables in this configuration
file -->
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker useJmx="true" xmlns="http://activemq.org/config/1.0">
<persistenceAdapter>
<journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data"
dataSource="#postgres-ds"/>
</persistenceAdapter>
<transportConnectors>
<transportConnector name="default" uri="tcp://localhost:61616" />
<transportConnector name="stomp" uri="stomp://localhost:61613"/>
</transportConnectors>
<networkConnectors>
<!-- by default just auto discover the other brokers -->
<!--
<networkConnector name="default" uri="multicast://default"/>
-->
<!--
<networkConnector name="host1 and host2"
uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
-->
</networkConnectors>
</broker>
<!-- This xbean configuration file supports all the standard spring xml
configuration options -->
<!-- Postgres DataSource Sample Setup -->
<bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource">
<property name="serverName" value="localhost"/>
<property name="databaseName" value="efed-messaging"/>
<property name="portNumber" value="0"/>
<property name="user" value="activemq"/>
<property name="password" value="activemq"/>
<property name="dataSourceName" value="postgres"/>
<property name="initialConnections" value="1"/>
<property name="maxConnections" value="10"/>
</bean>
</beans>
<!-- END SNIPPET: example -->
CONTEXT.XML
----------------
<Resource
name="jms/ConnectionFactory"
auth="Container"
type="org.apache.activemq.ActiveMQConnectionFactory"
description="JMS Connection Factory"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
brokerName="LocalActiveMQBroker"
brokerURL="tcp://localhost:61616"
useEmbeddedBroker="false"/>
<Resource name="jms/InvoiceQueue"
auth="Container"
type="org.apache.activemq.command.ActiveMQQueue"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
physicalName="INVOICE"/>
--
View this message in context: http://www.nabble.com/Broker-going-down%3A-MulticastDiscoveryAgent-tf2507593.html#a6992027
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Broker going down: MulticastDiscoveryAgent
Posted by petera <pe...@egsgroup.com>.
James,
I am using 4.0.1.
Stack Trace:
[DEBUG] InactivityMonitor - Message received since last read check,
resetting flag:
[DEBUG] InactivityMonitor - No message sent since last write check, sending
a KeepAliveInfo
[DEBUG] InactivityMonitor - No message sent since last write check, sending
a KeepAliveInfo
[DEBUG] InactivityMonitor - Message received since last read check,
resetting flag:
[WARN] ActiveMQConnection - Async exception with no exception listener:
java.io.EOFException <java.io.EOFException>java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:358)
at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:274)
at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:142)
at java.lang.Thread.run(Thread.java:613)
[WARN] ActiveMQConnection - Async exception with no exception listener:
java.io.EOFException <java.io.EOFException>java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:358)
at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:274)
at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:142)
at java.lang.Thread.run(Thread.java:613)
Peter
James.Strachan wrote:
>
> Could you post a full stack trace please? Also which version are you
> using?
>
> On 10/25/06, petera <pe...@egsgroup.com> wrote:
>>
>> Hi,
>>
>> On a test server I have activemq running with the xml configuration file
>> (SEE activemq.xml BELOW).
>>
>> Tomcat has two web apps listening for the broker on port 61616 (SEE
>> context.xml ).
>>
>> Everything runs fine for a while and then the broker goes down with the
>> following message:
>> ERROR MulticastDiscoveryAgent - failed to process packet:
>> java.net.SocketException: Socket closed
>>
>> Any help would be greatly appreciated.
>>
>> TIA Peter
>>
>> ACTIVEMQ.XML
>> -----------------
>> <beans>
>>
>> <!-- Allows us to use system properties as variables in this
>> configuration
>> file -->
>>
>> <bean
>> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
>>
>> <broker useJmx="true" xmlns="http://activemq.org/config/1.0">
>>
>> <persistenceAdapter>
>> <journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data"
>> dataSource="#postgres-ds"/>
>> </persistenceAdapter>
>>
>> <transportConnectors>
>> <transportConnector name="default" uri="tcp://localhost:61616" />
>> <transportConnector name="stomp" uri="stomp://localhost:61613"/>
>> </transportConnectors>
>>
>> <networkConnectors>
>> <!-- by default just auto discover the other brokers -->
>> <!--
>> <networkConnector name="default" uri="multicast://default"/>
>> -->
>> <!--
>> <networkConnector name="host1 and host2"
>> uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
>> -->
>> </networkConnectors>
>>
>> </broker>
>>
>> <!-- This xbean configuration file supports all the standard spring
>> xml
>> configuration options -->
>>
>> <!-- Postgres DataSource Sample Setup -->
>> <bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource">
>> <property name="serverName" value="localhost"/>
>> <property name="databaseName" value="efed-messaging"/>
>> <property name="portNumber" value="0"/>
>> <property name="user" value="activemq"/>
>> <property name="password" value="activemq"/>
>> <property name="dataSourceName" value="postgres"/>
>> <property name="initialConnections" value="1"/>
>> <property name="maxConnections" value="10"/>
>> </bean>
>>
>> </beans>
>> <!-- END SNIPPET: example -->
>>
>> CONTEXT.XML
>> ----------------
>> <Resource
>> name="jms/ConnectionFactory"
>> auth="Container"
>> type="org.apache.activemq.ActiveMQConnectionFactory"
>> description="JMS Connection Factory"
>> factory="org.apache.activemq.jndi.JNDIReferenceFactory"
>> brokerName="LocalActiveMQBroker"
>> brokerURL="tcp://localhost:61616"
>> useEmbeddedBroker="false"/>
>>
>> <Resource name="jms/InvoiceQueue"
>> auth="Container"
>> type="org.apache.activemq.command.ActiveMQQueue"
>> factory="org.apache.activemq.jndi.JNDIReferenceFactory"
>> physicalName="INVOICE"/>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Broker-going-down%3A-MulticastDiscoveryAgent-tf2507593.html#a6992027
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
>
--
View this message in context: http://www.nabble.com/Broker-going-down%3A-MulticastDiscoveryAgent-tf2507593.html#a6993185
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Broker going down: MulticastDiscoveryAgent
Posted by James Strachan <ja...@gmail.com>.
Could you post a full stack trace please? Also which version are you using?
On 10/25/06, petera <pe...@egsgroup.com> wrote:
>
> Hi,
>
> On a test server I have activemq running with the xml configuration file
> (SEE activemq.xml BELOW).
>
> Tomcat has two web apps listening for the broker on port 61616 (SEE
> context.xml ).
>
> Everything runs fine for a while and then the broker goes down with the
> following message:
> ERROR MulticastDiscoveryAgent - failed to process packet:
> java.net.SocketException: Socket closed
>
> Any help would be greatly appreciated.
>
> TIA Peter
>
> ACTIVEMQ.XML
> -----------------
> <beans>
>
> <!-- Allows us to use system properties as variables in this configuration
> file -->
>
> <bean
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
>
> <broker useJmx="true" xmlns="http://activemq.org/config/1.0">
>
> <persistenceAdapter>
> <journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data"
> dataSource="#postgres-ds"/>
> </persistenceAdapter>
>
> <transportConnectors>
> <transportConnector name="default" uri="tcp://localhost:61616" />
> <transportConnector name="stomp" uri="stomp://localhost:61613"/>
> </transportConnectors>
>
> <networkConnectors>
> <!-- by default just auto discover the other brokers -->
> <!--
> <networkConnector name="default" uri="multicast://default"/>
> -->
> <!--
> <networkConnector name="host1 and host2"
> uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
> -->
> </networkConnectors>
>
> </broker>
>
> <!-- This xbean configuration file supports all the standard spring xml
> configuration options -->
>
> <!-- Postgres DataSource Sample Setup -->
> <bean id="postgres-ds" class="org.postgresql.ds.PGPoolingDataSource">
> <property name="serverName" value="localhost"/>
> <property name="databaseName" value="efed-messaging"/>
> <property name="portNumber" value="0"/>
> <property name="user" value="activemq"/>
> <property name="password" value="activemq"/>
> <property name="dataSourceName" value="postgres"/>
> <property name="initialConnections" value="1"/>
> <property name="maxConnections" value="10"/>
> </bean>
>
> </beans>
> <!-- END SNIPPET: example -->
>
> CONTEXT.XML
> ----------------
> <Resource
> name="jms/ConnectionFactory"
> auth="Container"
> type="org.apache.activemq.ActiveMQConnectionFactory"
> description="JMS Connection Factory"
> factory="org.apache.activemq.jndi.JNDIReferenceFactory"
> brokerName="LocalActiveMQBroker"
> brokerURL="tcp://localhost:61616"
> useEmbeddedBroker="false"/>
>
> <Resource name="jms/InvoiceQueue"
> auth="Container"
> type="org.apache.activemq.command.ActiveMQQueue"
> factory="org.apache.activemq.jndi.JNDIReferenceFactory"
> physicalName="INVOICE"/>
>
> --
> View this message in context: http://www.nabble.com/Broker-going-down%3A-MulticastDiscoveryAgent-tf2507593.html#a6992027
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
James
-------
http://radio.weblogs.com/0112098/