Consultor Eletrônico



Kbase 39474: Mail Bridge 4.0 fails to start with the exception java.net.UnknownHostException
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Solution ID: P9474

FACT(s) (Environment):

SonicMQ 4.0

SYMPTOM(s):

Mail Bridge 4.0 fails to start with the exception java.net.UnknownHostException

Dead Message Queue is set to true for the Mail Bridge

SonicMQ Broker is started

Exceptions are returned by the Mail Bridge :
EXCEPTION javax.jms.JMSException: java.net.UnknownHostException: <HostName:TCP:
//<HostName>:<portNumber>

More detailed exceptions :

EXCEPTION javax.jms.JMSException: java.net.UnknownHostException: backupHost:TCP:
//backupHost:2506
at progress.message.jimpl.JMSExceptionUtil.createJMSException(Unknown So
urce)
at progress.message.jimpl.Connection.<init>(Unknown Source)
at progress.message.jimpl.QueueConnection.<init>(Unknown Source)
at progress.message.jclient.QueueConnectionFactory.createQueueConnection
(Unknown Source)
at progress.message.bridge.eis.jms.connector.ManagedConnectionImpl.zH_(:
695)
at progress.message.bridge.eis.jms.connector.ManagedConnectionImpl.getCo
nnection(:218)
at progress.message.bridge.server.ConnectionManager.allocateConnection(:
76)
at progress.message.bridge.eis.jms.connector.ConnectionFactoryImpl.getCo
nnection(:116)
at progress.message.bridge.eis.jms.JMSResourceConnectorImpl.getConnectio
n(:325)
at progress.message.bridge.eis.jms.JMSResourceConnectorImpl.getConnectio
n(:266)
at progress.message.bridge.server.DMQService.init(:129)
at progress.message.bridge.server.BridgeFramework.init(:163)
at progress.message.bridge.server.BridgeServer.kF_(:192)
at progress.message.bridge.server.BridgeServer.main(:408)
progress.message.bridge.resource.ResourceException: Could not create JMS Connect
ion: java.net.UnknownHostException: backupHost:TCP://backupHost:2506
at progress.message.bridge.eis.jms.connector.ManagedConnectionImpl.zH_(:
715)
at progress.message.bridge.eis.jms.connector.ManagedConnectionImpl.getCo
nnection(:218)
at progress.message.bridge.server.ConnectionManager.allocateConnection(:
76)
at progress.message.bridge.eis.jms.connector.ConnectionFactoryImpl.getCo
nnection(:116)
at progress.message.bridge.eis.jms.JMSResourceConnectorImpl.getConnectio
n(:325)
at progress.message.bridge.eis.jms.JMSResourceConnectorImpl.getConnectio
n(:266)
at progress.message.bridge.server.DMQService.init(:129)
at progress.message.bridge.server.BridgeFramework.init(:163)
at progress.message.bridge.server.BridgeServer.kF_(:192)
at progress.message.bridge.server.BridgeServer.main(:408)
progress.message.bridge.core.util.ResourceException:
at progress.message.bridge.server.DMQService.init(:161)
at progress.message.bridge.server.BridgeFramework.init(:163)
at progress.message.bridge.server.BridgeServer.kF_(:192)
at progress.message.bridge.server.BridgeServer.main(:408)

CAUSE:

The HostName specified for the SonicMQ Broker in the Mail Bridge Configuration is incorrect

FIX:

Edit the Mail Bridge Configuration file and put the hostname of the machine where the SonicMQ Broker is running. The Original Value is "backuphost", the new
value can be "localhost" if the Bridge Server is on the same machine
as the SonicMQ Server, if not, Host should contain the hostname of the
SonicMQ Server's machine.


<connectionFactory
name = "bridgeDMQBackupConnectionFactory"
type = "QUEUE"
class = "progress.message.bridge.jms.spi.SonicConnectionFactory"
host = "localhost"
port = "2506">
</connectionFactory>