Failure in jms activation

1,171 views
Skip to first unread message

Gunnar

unread,
Apr 5, 2013, 7:04:46 AM4/5/13
to jboss-gene...@googlegroups.com
Hi,
I'm trying to listen to Tibco queues. I works well until I add authorization in Tibco ems.
I'm quite confident that I have the correct user/password.

This is what I get in the log:
12:55:44,413 DEBUG [org.jboss.resource.adapter.jms.inflow.JmsActivation-366] (default-threads - 1) Retrieving destination ALPHA_GB of type javax.jms.Queue

12:55:44,479 WARN  [org.jboss.resource.adapter.jms.inflow.JmsActivation-233] (default-threads - 1) Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@140c5153(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@e91f8888 destination=ALPHA_GB destinationType=javax.jms.Queue acknowledgeMode=Auto-acknowledge subscriptionDurability=false reconnectInterval=10 reconnectAttempts=-1 user=ebill password=<not shown> maxMessages=1 minSession=1 maxSession=15 connectionFactory=QueueConnectionFactory jndiParameters=java.naming.provider.url=tcp://wv003034:7222,tcp://wv003034:7222;java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory;java.naming.factory.url.pkgs=com.tibco.tibjms.naming): javax.naming.AuthenticationException: Not permitted: Failed to connect to any server at: tcp://wv003034:7222, tcp://wv003034:7222 [Error: invalid name or password: url that returned this exception = TCP://wv003034:7222 ] [Root exception is javax.jms.JMSSecurityException: Failed to connect to any server at: tcp://wv003034:7222, tcp://wv003034:7222 [Error: invalid name or password: url that returned this exception = TCP://wv003034:7222 ]]
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:670) [tibjms.jar:7.0.0]
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:491) [tibjms.jar:7.0.0]
at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_17]
at org.jboss.resource.adapter.jms.inflow.JmsActivation.lookup(JmsActivation.java:534) [generic-jms-ra-jar-1.0.RC2-SNAPSHOT.jar:]
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:367) [generic-jms-ra-jar-1.0.RC2-SNAPSHOT.jar:]
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupActivation(JmsActivation.java:301) [generic-jms-ra-jar-1.0.RC2-SNAPSHOT.jar:]
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:515) [generic-jms-ra-jar-1.0.RC2-SNAPSHOT.jar:]
at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:221) [ironjacamar-core-impl-1.0.12.Final.jar:1.0.12.Final]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801)
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821)
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: javax.jms.JMSSecurityException: Failed to connect to any server at: tcp://wv003034:7222, tcp://wv003034:7222 [Error: invalid name or password: url that returned this exception = TCP://wv003034:7222 ]
at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1393) [tibjms.jar:7.0.0]
at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:4175) [tibjms.jar:7.0.0]
at com.tibco.tibjms.TibjmsQueueConnection.<init>(TibjmsQueueConnection.java:36) [tibjms.jar:7.0.0]
at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:200) [tibjms.jar:7.0.0]
at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:253) [tibjms.jar:7.0.0]
at com.tibco.tibjms.TibjmsQueueConnectionFactory.createQueueConnection(TibjmsQueueConnectionFactory.java:87) [tibjms.jar:7.0.0]
at com.tibco.tibjms.naming.TibjmsContext$Messenger.request(TibjmsContext.java:325) [tibjms.jar:7.0.0]
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:657) [tibjms.jar:7.0.0]
... 13 more


Any ideas?
/Gunnar

Justin Bertram

unread,
Apr 5, 2013, 11:52:24 AM4/5/13
to jboss-gene...@googlegroups.com
Based on the Tibco stack-trace it looks to me like the JNDI lookup is failing.  Are you passing JNDI lookup credentials?  They go in these JNDI properties:

java.naming.security.principal=myTibcoJNDIUser
java
.naming.security.credentials=myTibcoJNDIPassword

Gunnar

unread,
Apr 8, 2013, 2:16:13 AM4/8/13
to jboss-gene...@googlegroups.com
Hi Justin,
You are right.
I learned something new today!
Thanks
/Gunnar

Reply all
Reply to author
Forward
0 new messages