cancel
Showing results for 
Search instead for 
Did you mean: 

TIBCO EMS JMS Connection Error (Not Using Hermes But ReadyAPI) MAC

Highlighted
Occasional Contributor

TIBCO EMS JMS Connection Error (Not Using Hermes But ReadyAPI) MAC

I have a manual JMS Connection inside ReadyAPI but I am unable to connect to TIBCO EMS. I get this error:

 

Could not establish a JMS connection: javax.naming.AuthenticationException: Not permitted: authentication failed [Root exception is javax.jms.JMSSecurityException: authentication failed]

 

I am setting the JMS Connection like this:

 

JMS Connection.png

 

The error in EMS shows like this:

 

2020-06-18 20:21:47.151 [anonymous@LMHQUCIS447992]: connect failed: not authorized to connect

 

What am I missing in my Connection Configuration?

 

Thanks a lot!

 

Willie Padin

15 REPLIES 15
Highlighted
Community Hero

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

Please check if the below configuration document helps
http://www.techsnib.com/2015/12/configure-hermes-jms-for-tibco-ems-test.html


Regards,
Rao.
Highlighted
Occasional Contributor

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

Rao,

 

If you look at the screens I inserted in the message, you could tell that I am not using Hermes. I am using ReadyAPI. Hermes doesnt work in my MAC due to incompatible libraries with EMS. Hermes in MAC expects JAVA 1.6 and TIBCO libraries are based on JAVA 1.7. So I am using the alternative of ReadyAPI. I have it all configured but I am having the mentioned errors above.

 

Thanks!

 

Willie

Highlighted
Community Hero

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

ReadyAPI talk to all JMS vendors using Hermes only.


Regards,
Rao.
Highlighted
Occasional Contributor

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

That is NOT correct! The documentation states otherwise.

 

https://support.smartbear.com/readyapi/docs/testing/jms/config.html

 

Please Rao! I am looking for a solution. If you read the very first message, it does connect to EMS its just apparently not transmitting the u/p correctly. But it is making the connection WITHOUT HERMES.

 

 

Highlighted
Community Hero

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

Hey @williepadin,

I cant help with this issue per se, but i have a possible suggestion.

You state you cant use Hermes on MAC, cos Hermes needs java 6 and EMS needs java7, right?

I had a similar issue a couple of years ago where some jdbc .jar drivers i needed used java2, but ReadyAPI! groovy needed java6 or 7. I thought i was stuffed. My groovy worked on java7, but soon as i downgraded my java to 2 to get the db connection sorted, i was getting runtime errors in my groovy.
I thought about it for a bit and started wondering. Yes my .jar files used java libraries from java2, but unless those libraries had been deprecated in later versions, i could in fact use later versions of java. It worked. Despite the .jar file instructions indicating java2 was needed, i could infact get my db connection and groovy working in java7.

Perhaps the same is possible for Hermes.....? Have you tried it with jdk v1.7?

Just a suggestion!

Nice one,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Occasional Contributor

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

Yes I did. HermesJMS does not start correctly with 1.7.

 

Thank you for your suggestion though!

 

Willie

Highlighted
Community Hero

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

Hey @williepadin,

Thats me for suggestions then. I did have a quick look and TIBCO have produced a .pdf indicating how to configure an EMS connection with soapui, but the .pdf doesnt mention the operating system at all (so assumes Windows, not MAC), references eviware not smartbear (so its quite old) and suggest using Hermes.

I got nothing else. I should highlight that i found that after a minute of searching. Have you done an relatively exhaustive search? There may be posts on other forums such as stackoverflow, etc.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Occasional Contributor

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

Rich,

 

This has not been solved by any suggestions. Once it is I will provide the solution here. There is no problem in windows at all but I need it working on mac.

 

Thanks!

 

Willie

 

Highlighted
Community Hero

Re: TIBCO EMS JMS Connection Error: Could not establish a JMS connection

@williepadin,

Sorry for the late reply. Have used with HermesJMS long back in Open Source edition.
Thanks for the link, I can see that ReadyAPI can talk to JMS vendors, am not aware of it.

Are you able to connect to JMS server using admin tool using the url and credentials?


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors