Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Tjmsinput failed to connect SSL

Hello friends,

 

I hit below error when configuring tjmsinput  . It is connecting via tcp .  But when I am changing the port I am able to connect but authentication failing.

 

I have SSL authentication details, can anyone help how I can we configure it?

 

 

[statistics] connecting to socket on port 3482
[statistics] connected
Exception in component tJMSInput_1 (J_Tibco)
javax.naming.ServiceUnavailableException: Failed to query JNDI: Failed to connect to the server at tcp://gtcpi-tibsentrmt-utr.com:4243 [Root exception is javax.jms.JMSException: Failed to connect to the server at tcp://gtcpi-tibsentrmt-utr.com:4243]
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:671)
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:491)
at javax.naming.InitialContext.lookup(Unknown Source)
at talend_session.j_tibco_0_1.J_Tibco.tJMSInput_1Process(J_Tibco.java:512)
at talend_session.j_tibco_0_1.J_Tibco.runJobInTOS(J_Tibco.java:901)
at talend_session.j_tibco_0_1.J_Tibco.main(J_Tibco.java:750)
Caused by: javax.jms.JMSException: Failed to connect to the server at tcp://gtcpi-tibsentrmt-utr.com:4243
at com.tibco.tibjms.TibjmsxLinkTcp._doHandshake(TibjmsxLinkTcp.java:905)
at com.tibco.tibjms.TibjmsxLinkTcp.connect(TibjmsxLinkTcp.java:923)
at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1308)
[statistics] disconnected
at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:4185)
at com.tibco.tibjms.TibjmsQueueConnection.<init>(TibjmsQueueConnection.java:36)
at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:200)
at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:253)
at com.tibco.tibjms.TibjmsQueueConnectionFactory.createQueueConnection(TibjmsQueueConnectionFactory.java:87)
at com.tibco.tibjms.naming.TibjmsContext$Messenger.request(TibjmsContext.java:325)
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:657)
... 5 more

Labels (3)
10 Replies
Anonymous
Not applicable
Author

Hello,

Could you please verify this TCP server is up and running? Is the port number set for the SSL LISTEN, by issue the command "netstat -an | grep <SSL port #>"?

Best regards

Sabrina

Anonymous
Not applicable
Author

Yes. The TCP server is up and running. TCP & SSL port numbers are different 4222 & 4243.

 

Is there anyway we can connect using SSL certs ?  As our current processes uses SSL method with different ETL tool and it works perfectly fine . But I am not getting any idea how can we use SSL in tjmsinput?

Anonymous
Not applicable
Author

Hello,

To invoke the HTTPS URL on the client side, you must provide the certification file of the HTTPS URL.The certification file mean the truststore file which is used for the ssl authentication for the HTTPS URL.

Here exists a component tSetKeystore which submits authentication data of a truststore with or without keystore to validation for the SSL connection.

 

Best regards

Sabrina

Anonymous
Not applicable
Author

Please find the below attached image from other tool.

 

In JMS subscribe it has the parameters . In JNDI properties we specify the  below parameters . And able to establish the connection. 

Not sure how we can achive the same in Talend to connect JMS queue through SSL certs.

 

I observed tjmsinput uses tcp method to connect but not sure how can we do through SSL.

 

JMS_TIMEOUT=35000
logOutput=true

java.naming.security.principal:
java.naming.security.credentials:
com.tibco.tibjms.naming.ssl_trace: false
com.tibco.tibjms.naming.ssl_debug_trace: false
com.tibco.tibjms.naming.ssl_trusted_certs:
com.tibco.tibjms.naming.ssl_identity:
com.tibco.tibjms.naming.ssl_password:
com.tibco.tibjms.naming.ssl_enable_verify_hostname: false
com.tibco.tibjms.naming.ssl_enable_verify_host: false
java.naming.factory.initial:
java.naming.provider.url:
java.naming.url_pkg_prefixes:
com.tibco.tibjms.naming.security_protocol: ssl
com.tibco.tibjms.naming.ssl_auth_only: true
com.tibco.tibjms.ssl.identity_encoding: PEM

 

0683p000009LzXc.jpg

Anonymous
Not applicable
Author

Hello,

Please try to add these two properties in tJMSInput component/advanced settings.

"java.naming.security.principal"
"java.naming.security.credentials"

for principal give your user name as value and for credentials your password. Let us know if it works.

Best regards

Sabrina

Anonymous
Not applicable
Author

I did this by adding those parameter but it could not find the connection factory .

Anonymous
Not applicable
Author

Hello,

Would you mind posting your component tJMSInput setting screenshot on forum and please show us the full stack trace?

Best regards

Sabrina

Anonymous
Not applicable
Author

 

 

Please find here configurations. With SSL port-4243

 

 

0683p000009LyrL.png0683p000009LzFr.png

0683p000009LysA.png

 

Starting job J_tibco_ssl at 17:24 05/09/2018.

[statistics] connecting to socket on port 3618
[statistics] connected
Exception in component tJMSInput_1 (J_tibco_ssl)
javax.naming.ServiceUnavailableException: Failed to query JNDI: Failed to connect to the server at tcp://gtcpi-tibla01dXXXXXXXXX:4243 [Root exception is javax.jms.JMSException: Failed to connect to the server at tcp://gtcpi-tibla01dXXXXXXXXXXX:4243]
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:671)
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:491)
at javax.naming.InitialContext.lookup(Unknown Source)
at talend_session.j_tibco_ssl_0_1.J_tibco_ssl.tJMSInput_1Process(J_tibco_ssl.java:488)
at talend_session.j_tibco_ssl_0_1.J_tibco_ssl.runJobInTOS(J_tibco_ssl.java:875)
at talend_session.j_tibco_ssl_0_1.J_tibco_ssl.main(J_tibco_ssl.java:724)
Caused by: javax.jms.JMSException: Failed to connect to the server at tcp://gtcpi-tibla01dXXXXXXXXXX:4243
at com.tibco.tibjms.TibjmsxLinkTcp._doHandshake(TibjmsxLinkTcp.java:905)
at com.tibco.tibjms.TibjmsxLinkTcp.connect(TibjmsxLinkTcp.java:923)
at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1308)
at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:4185)
at com.tibco.tibjms.TibjmsQueueConnection.<init>(TibjmsQueueConnection.java:36)
at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:200)
at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:253)
at com.tibco.tibjms.TibjmsQueueConnectionFactory.createQueueConnection(TibjmsQueueConnectionFactory.java:87)
at com.tibco.tibjms.naming.TibjmsContext$Messenger.request(TibjmsContext.java:325)
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:657)
... 5 more
[statistics] disconnected
Job J_tibco_ssl ended at 17:24 05/09/2018. [exit code=1]

 

 

Then changed the URL tcp port- "ssl://gtcpi-tibla01dXXXXXXXXXXX:4222" got different error.

 

Starting job J_tibco_ssl at 17:37 05/09/2018.

[statistics] connecting to socket on port 3548
[statistics] connected
Exception in thread "main" java.lang.NoClassDefFoundError: com/tibco/security/AXSecurityException
at com.tibco.tibjms.TibjmsxLink.create(TibjmsxLink.java:147)
at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1289)
at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:4185)
at com.tibco.tibjms.TibjmsQueueConnection.<init>(TibjmsQueueConnection.java:36)
at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:200)
at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:253)
at com.tibco.tibjms.TibjmsConnectionFactory.createConnection(TibjmsConnectionFactory.java:36)
at talend_session.j_tibco_ssl_0_1.J_tibco_ssl.tJMSInput_1Process(J_tibco_ssl.java:494)
at talend_session.j_tibco_ssl_0_1.J_tibco_ssl.runJobInTOS(J_tibco_ssl.java:875)
at talend_session.j_tibco_ssl_0_1.J_tibco_ssl.main(J_tibco_ssl.java:724)
Caused by: java.lang.ClassNotFoundException: com.tibco.security.AXSecurityException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
[statistics] disconnected
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 10 more
Job J_tibco_ssl ended at 17:37 05/09/2018. [exit code=1]

 

 

 

 

Anonymous
Not applicable
Author

Hello,

Are you using talend subscription solution? Is there any communication server, such as, job server? What's Tibco EMS version are you trying to connect?

Have you tried to use tMOMInput component to see if it works?

Best regards

Sabrina