activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ewestfal <ewest...@indiana.edu>
Subject UnknownHostException during network of brokers discovery on Windows
Date Wed, 16 Aug 2006 18:28:25 GMT

I'm attempting to set up ActiveMQ (version 4.0.2) in a network of brokers
configuration. using discovery to locate the brokers in the network. 
Whenever I do this between two Macintosh machines (running OS X) with each
one having it's own embedded broker, I'm able to send and recieve messages
without any problem.  However, if I attempt to do the same thing between my
Mac and a windows machine, I get an UnknownHostException during the
discovery process when the Mac attempts to talk to the windows machine.  The
log on my Mac looks something like the following:

2006-08-16 14:01:51,885 [JmDNS.SocketListener] D: U: INFO 
org.apache.activemq.network.NetworkConnector :: Establishing network
connection between from vm://localhost?network=true to
tcp://bl-uits-ewestfal:51616
14:01:51,885 INFO  [NetworkConnector] Establishing network connection
between from vm://localhost?network=true to tcp://bl-uits-ewestfal:51616
2006-08-16 14:01:51,895 [JmDNS.SocketListener] D: U: INFO 
org.apache.activemq.transport.vm.VMTransportFactory :: binding to broker:
localhost
14:01:51,895 INFO  [VMTransportFactory] binding to broker: localhost
2006-08-16 14:01:51,898 [JmDNS.SocketListener] D: U: INFO 
org.apache.activemq.broker.TransportConnector :: Connector vm://localhost
Started
14:01:51,898 INFO  [TransportConnector] Connector vm://localhost Started
2006-08-16 14:01:51,912 [JmDNS.SocketListener] D: U: INFO 
org.apache.activemq.network.DemandForwardingBridge :: Starting a network
connection between vm://localhost#0 and tcp://null:0 has been established.
14:01:51,912 INFO  [DemandForwardingBridge] Starting a network connection
between vm://localhost#0 and tcp://null:0 has been established.
2006-08-16 14:01:51,919 [JmDNS.SocketListener] D: U: INFO 
org.apache.activemq.transport.vm.VMTransportFactory :: Shutting down VM
connectors for broker: localhost
14:01:51,919 INFO  [VMTransportFactory] Shutting down VM connectors for
broker: localhost
2006-08-16 14:01:51,919 [JmDNS.SocketListener] D: U: INFO 
org.apache.activemq.transport.vm.VMTransportFactory :: Shutting down VM
connectors for broker: localhost
14:01:51,919 INFO  [VMTransportFactory] Shutting down VM connectors for
broker: localhost
2006-08-16 14:01:51,920 [JmDNS.SocketListener] D: U: INFO 
org.apache.activemq.broker.TransportConnector :: Connector vm://localhost
Stopped
14:01:51,920 INFO  [TransportConnector] Connector vm://localhost Stopped
2006-08-16 14:01:51,922 [JmDNS.SocketListener] D: U: WARN 
org.apache.activemq.network.NetworkConnector :: Could not start network
bridge between: vm://localhost?network=true and:
tcp://bl-uits-ewestfal:51616 due to: java.net.UnknownHostException:
bl-uits-ewestfal
java.net.UnknownHostException: bl-uits-ewestfal
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:430)
	at java.net.Socket.connect(Socket.java:507)
	at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:298)
	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:48)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:52)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:52)
	at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:57)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:52)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:52)
	at
org.apache.activemq.network.DemandForwardingBridgeSupport.start(DemandForwardingBridgeSupport.java:175)
	at
org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd(DiscoveryNetworkConnector.java:115)
	at
org.apache.activemq.transport.discovery.rendezvous.RendezvousDiscoveryAgent.addService(RendezvousDiscoveryAgent.java:124)
	at
org.apache.activemq.transport.discovery.rendezvous.RendezvousDiscoveryAgent.serviceAdded(RendezvousDiscoveryAgent.java:137)
	at javax.jmdns.JmDNS.updateRecord(JmDNS.java:909)
	at javax.jmdns.JmDNS.handleResponse(JmDNS.java:994)
	at javax.jmdns.JmDNS.access$900(JmDNS.java:25)
	at javax.jmdns.JmDNS$SocketListener.run(JmDNS.java:1139)
	at java.lang.Thread.run(Thread.java:613)

The windows machine is able to establish the bridge with the Mac without any
trouble.

I think I know what the basic problem is here, the bl-uits-ewestfal hostname
does not resolve to anything in our DNS server.  However,
bl-uits-ewestfal.ads.iu.edu does.  If I type "hostname" on my windows
machine I get:

bl-uits-ewestfal

Instead of bl-uits-ewestfal.ads.iu.edu (which is the hostname that I can
access my machine remotely).  I am logged into a windows domain
(ads.iu.edu).  Is this purely a windows networking issue?  If so, how do I
work around it and still allow for the use of discovery?  It seems like if
it was possible to tell Active MQ to use ip addresses instead of host names
that would work but I can't seem to figure out if that's even possible.

Here is my broker xml configuration which I'm using in both of my embedded
brokers:

<beans>

	<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
/>

	<broker useJmx="true" xmlns="http://activemq.org/config/1.0">

		<memoryManager>  
			<usageManager id="memory-manager" limit="1048576"/>
		</memoryManager>

		<persistenceAdapter>
			<journaledJDBC journalLogFiles="5" dataDirectory="/activemq-data" />
		</persistenceAdapter>
		<transportConnectors>
			<transportConnector name="default" uri="tcp://localhost:51616"
discoveryUri="rendezvous://default" />
		</transportConnectors>

		<networkConnectors>
			<networkConnector name="default" uri="rendezvous://default"/>
		</networkConnectors>

	</broker>

</beans>

Thanks in advance for any help!
-- 
View this message in context: http://www.nabble.com/UnknownHostException-during-network-of-brokers-discovery-on-Windows-tf2116996.html#a5837883
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message