Topic
1 reply Latest Post - ‏2014-02-05T20:30:14Z by OscarD.
SystemAdmin
SystemAdmin
8523 Posts
ACCEPTED ANSWER

Pinned topic javax.jms.JMSException: CWSIA0241E - Opening Connection to the Queue

‏2013-04-02T04:10:55Z |
I am trying to crate simple queue and QCF in WAS 7.0.0.0; But facing following exceptions while opening connection to the queue:

  • initialContext created : javax.naming.InitialContext@dd5b
  • with properties : {java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory, java.naming.provider.url=corbaloc:iiop:127.0.0.1:2809/}
test QCF....class com.ibm.ws.sib.api.jms.impl.JmsConnectionFactoryImpl
test Q....queue://sibESBSubscriberQueue?busName=ESBBus
javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It was not possible to contact any of the specified bootstrap servers. Please see the linked exception for further details. Bootstrap connections were attempted to: localhost:7276:BootstrapBasicMessaging.
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:195)
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:135)
at Main.main(Main.java:34)
Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It was not possible to contact any of the specified bootstrap servers. Please see the linked exception for further details. Bootstrap connections were attempted to: localhost:7276:BootstrapBasicMessaging
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.generateException(TrmSICoreConnectionFactoryImpl.java:931)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remoteBootstrap(TrmSICoreConnectionFactoryImpl.java:640)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createConnection(TrmSICoreConnectionFactoryImpl.java:301)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createConnection(TrmSICoreConnectionFactoryImpl.java:216)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createCoreConnection(JmsJcaConnectionFactoryImpl.java:677)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createCoreConnection(JmsJcaConnectionFactoryImpl.java:613)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createConnection(JmsJcaConnectionFactoryImpl.java:358)
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:162)
... 2 more
Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0007W: It is not possible to contact the bootstrap server at localhost:7276:BootstrapBasicMessaging because of exception: com.ibm.websphere.sib.exception.SIResourceException: CWSIC1001E: A client attempted to connect with a remote messaging engine (localhost:7276 - BootstrapBasicMessaging) but the connection cannot be completed. Ensure the messaging engine is started: exception com.ibm.ws.sib.jfapchannel.JFapConnectFailedException: CWSIJ0063E: A network connection to host name 127.0.0.1, port 7276 cannot be established...
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.contactBootstrapService(TrmSICoreConnectionFactoryImpl.java:755)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.remoteBootstrap(TrmSICoreConnectionFactoryImpl.java:583)
... 8 more
Caused by: com.ibm.websphere.sib.exception.SIResourceException: CWSIC1001E: A client attempted to connect with a remote messaging engine (localhost:7276 - BootstrapBasicMessaging) but the connection cannot be completed. Ensure the messaging engine is started: exception com.ibm.ws.sib.jfapchannel.JFapConnectFailedException: CWSIJ0063E: A network connection to host name 127.0.0.1, port 7276 cannot be established..
at com.ibm.ws.sib.comms.client.ClientSideConnection.connect(ClientSideConnection.java:362)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.contactBootstrapService(TrmSICoreConnectionFactoryImpl.java:685)
... 9 more
Caused by: com.ibm.ws.sib.jfapchannel.JFapConnectFailedException: CWSIJ0063E: A network connection to host name 127.0.0.1, port 7276 cannot be established.
at com.ibm.ws.sib.jfapchannel.impl.octracker.ConnectionDataGroup.connect(ConnectionDataGroup.java:498)
at com.ibm.ws.sib.jfapchannel.impl.octracker.OutboundConnectionTracker.connect(OutboundConnectionTracker.java:518)
at com.ibm.ws.sib.jfapchannel.impl.ClientConnectionManagerImpl.connect(ClientConnectionManagerImpl.java:129)
at com.ibm.ws.sib.comms.client.ClientSideConnection.connect(ClientSideConnection.java:231)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.ibm.ws.sib.jfapchannel.framework.impl.SocketNetworkConnection.connectAsynch(SocketNetworkConnection.java:111)
at com.ibm.ws.sib.jfapchannel.impl.octracker.ConnectionDataGroup.connect(ConnectionDataGroup.java:472)
... 13 more
  • OscarD.
    OscarD.
    1 Post
    ACCEPTED ANSWER

    Re: javax.jms.JMSException: CWSIA0241E - Opening Connection to the Queue

    ‏2014-02-05T20:30:14Z  in response to SystemAdmin

    Hello,

    I've changed the WAS server configuration by doing this:

    In the Console, navigate to : JMS Providers -> Default Messaging Provider -> Queue connection factories -> "YOUR CONNECTION FACTORY"

    Then, find the "Connection" section.

    In the "Provider endpoints" you have to writedown the following:

    <your-dns-name or ip-address>:7276:BootstrapBasicMessaging

    That worked for me.

    Hopefully it will work for you as well.

    Also you can review the ports used in your environment and ensure that the SIB_ENDPOINT_ADDRESS is correctly setup.

     

    Regards

    Oscar D.