Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JMS Exception: hosts (hostname:port) cannot be accessed!

We are trying to connect a JMS client to SAP WAS. The SAP WAS installation appears to be ok.

When we try to connect our JMS client we get the following exception [no host name or port is mentioned]. Any suggestions? Has anybody else seen this error?

We can ping the IP Address on which SAP WAS is installed!

Currently when the client tries to connect this exception is received:

"

Logging to file gatewaylog.txt

javax.jms.JMSException: The following hosts (hostname:port) cannot be

accessed: . Check host names and ports.

at

com.sap.jms.client.connection.ConnectionFactory.getSocket(ConnectionFactory.java:447)

at

com.sap.jms.client.connection.ConnectionFactory.createConnection(ConnectionFactory.java:300)

at

com.sap.jms.client.connection.TopicConnectionFactory.createTopicConnection(TopicConnectionFactory.java:76)

at

ch.softwired.gateway.admin.gateway.AdminDispatcher.initJMS(AdminDispatcher.java:465)

at

ch.softwired.gateway.admin.gateway.AdminDispatcher.connect(AdminDispatcher.java:290)

at

ch.softwired.gateway.admin.gateway.AdminDispatcher.initialize(AdminDispatcher.java:212)

at

ch.softwired.gateway.admin.gateway.AdminDispatcher.setMobileGateway(AdminDispatcher.java:126)

at

ch.softwired.gateway.config.GatewayXmlConfig.loadAdmin(GatewayXmlConfig.java:1407)

at

ch.softwired.gateway.config.GatewayXmlConfig.load(GatewayXmlConfig.java:412)

at ch.softwired.gateway.base.MobileGateway.start(MobileGateway.java:575)

at ch.softwired.gateway.base.MobileGateway.main(MobileGateway.java:421)

java.lang.NullPointerException

at

ch.softwired.gateway.admin.gateway.SystemInformer.initJMS(SystemInformer.java:173)

at

ch.softwired.gateway.admin.gateway.SystemInformer.connect(SystemInformer.java:141)

at

ch.softwired.gateway.admin.gateway.AdminDispatcher.connect(AdminDispatcher.java:294)

at

ch.softwired.gateway.admin.gateway.AdminDispatcher.initialize(AdminDispatcher.java:212)

at

ch.softwired.gateway.admin.gateway.AdminDispatcher.setMobileGateway(AdminDispatcher.java:126)

at

ch.softwired.gateway.config.GatewayXmlConfig.loadAdmin(GatewayXmlConfig.java:1407)

at

ch.softwired.gateway.config.GatewayXmlConfig.load(GatewayXmlConfig.java:412)

at ch.softwired.gateway.base.MobileGateway.start(MobileGateway.java:575)

at ch.softwired.gateway.base.MobileGateway.main(MobileGateway.java:421)

java.lang.NullPointerException

at

ch.softwired.gateway.events.EventPublisher.<init>(EventPublisher.java:70)

at ch.softwired.gateway.events.EventHandler.start(EventHandler.java:202)

at ch.softwired.gateway.base.MobileGateway.start(MobileGateway.java:583)

at ch.softwired.gateway.base.MobileGateway.main(MobileGateway.java:421)

"

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question