Forum Discussion

zzv30x's avatar
15 years ago

Cannot connect to tibco server using HermesJMS

Hello, I am trying to send and receive a JMS message from SOAPUI using HermesJMS but I continue getting the following error: An error occcurred[Failed to connect to the server at tcp://localhost:7222]

The IT team installed soapUI 4.0.0 which for some reason didn't install hermesJMS so I installed HermesJMS version 1.14 separately. It's all integrated now but this is the one issue happening now when I run a SOAPUI TestCase.

Here is the error log:
Thu Oct 06 09:50:21 EDT 2011:ERROR:javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
at com.tibco.tibjms.TibjmsxLinkTcp._createSocket(TibjmsxLinkTcp.java:817)
at com.tibco.tibjms.TibjmsxLinkTcp.connect(TibjmsxLinkTcp.java:913)
at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1002)
at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:2707)
at com.tibco.tibjms.TibjmsTopicConnection.<init>(TibjmsTopicConnection.java:36)
at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:177)
at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:239)
at com.tibco.tibjms.TibjmsConnectionFactory.createConnection(TibjmsConnectionFactory.java:36)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.createConnection(JMSConnectionHolder.java:86)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.<init>(JMSConnectionHolder.java:66)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestReceiveTransport.execute(HermesJmsRequestReceiveTransport.java:35)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:95)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thu Oct 06 09:50:21 EDT 2011:ERROR:javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.<init>(JMSConnectionHolder.java:78)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestReceiveTransport.execute(HermesJmsRequestReceiveTransport.java:35)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:95)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

6 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    Have backup of $SOAPUI_HOME/lib/hermes*.jar
    Then copy hemes.jar from $HERMES_HOME/lib to $SOAPUI_HOME/lib.
    Post the result.
  • I got the same error, I want to connect a remote TIBCO EMS server, just can't understand why soapui is trying to connect the local EMS.
  • sssow's avatar
    sssow
    New Contributor
    I also experienced same issue, it was always trying to connect to localhost:7222, even if I specify remote EMS URL. The workaround was to specify the ServerUrl, userpassword, username below ConnectionFactory settings also in hermes->session.
  • Hi,

    I'm also having this problem, with SOAPUI 4.5. No matter what i do, when i run a JMS test case SOAPUI complains that it can't connect to tcp://localhost:7222 (the default EMS URL):

    2012-05-14 12:31:19,759 ERROR [errorlog] javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
    javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
    at com.tibco.tibjms.TibjmsxLinkTcp._createSocket(TibjmsxLinkTcp.java:817)
    at com.tibco.tibjms.TibjmsxLinkTcp.connect(TibjmsxLinkTcp.java:913)
    at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1002)
    at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:2707)
    at com.tibco.tibjms.TibjmsTopicConnection.<init>(TibjmsTopicConnection.java:36)
    at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:177)
    at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:239)
    at com.tibco.tibjms.TibjmsConnectionFactory.createConnection(TibjmsConnectionFactory.java:36)
    at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.createConnection(JMSConnectionHolder.java:86)
    at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.<init>(JMSConnectionHolder.java:66)
    at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
    at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:96)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    2012-05-14 12:31:19,775 ERROR [errorlog] javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
    javax.jms.JMSException: Failed to connect to the server at tcp://localhost:7222
    at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.<init>(JMSConnectionHolder.java:78)
    at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
    at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:96)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

    HermesJMS is configured and from within HermesJMS i can access my EMS servers fine.

    In the session configuration i have 'serverURL' configured under both the 'Plug In' and 'Connection Factory' sections.

    From within SOAPUI, i have configured HERMES_HOME, and if i 'Add JMS Endpoint' SOAPUI is able to connect to my EMS servers OK - i can see my queues and topics listed.

    But if i try to run a JMS test case i get the error listed below.

    I've previously been able to run JMS test cases from SOAPUI (previous versions).

    Does anyone know how to fix this?

    Thanks,

    Mark
  • I know that this is an old question but I am having exactly the same problem.

    In HermesJMS I can access and monitor all the queues, but when I add the endpoint in SOAPUI, the messages are sent to localhost:7222 instead of the remote server.

    I am using SOAP UI in CENTOS 6.

    Is there a known fix for this?