Issue 49 in activemessaging: jms broker can't handle authentication properties

1 view
Skip to first unread message

codesite...@google.com

unread,
Jan 12, 2010, 6:41:41 AM1/12/10
to activemessagin...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 49 by francesc...@unimore.it: jms broker can't handle
authentication properties
http://code.google.com/p/activemessaging/issues/detail?id=49

What steps will reproduce the problem?
1. Prepare activemq to accept only authenticated logins;
2. Follow TenMinuteIntroduction: use stomp as broker; check everything
works;
3. Switch broker to jms;

What is the expected output? What do you see instead?
As soon I access http://localhost:3000/say_hello_world/say_hello logs says:

NativeException (javax.jms.JMSException: User name or password is invalid.):
org/apache/activemq/util/JMSExceptionSupport.java:49:in `create'
org/apache/activemq/ActiveMQConnection.java:1201:in `syncSendPacket'
org/apache/activemq/ActiveMQConnection.java:1289:in
`ensureConnectionInfoSent'
org/apache/activemq/ActiveMQConnection.java:295:in `createSession'
app/controllers/say_hello_world_controller.rb:9:in `say_hello'
/opt/jruby/lib/ruby/1.8/thread.rb:130:in `synchronize'
/opt/jruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/opt/jruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
/opt/jruby/lib/ruby/1.8/webrick/server.rb:82:in `start'

activemq's log confirms.

What version of the product are you using? On what operating system?
Debian GNU/Linux lenny
jruby 1.4.0RC1 (ruby 1.8.7 patchlevel 174)
*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
daemons (1.0.10)
flexmock (0.8.6)
hpricot (0.8.2)
jruby-ldap (0.0.1)
jruby-openssl (0.6, 0.5.2)
macaddr (1.0.0)
mocha (0.9.8)
rack (1.1.0, 1.0.1)
rails (2.3.5)
rake (0.8.7)
reliable-msg (1.1.0)
rjack-logback (0.9.18.0, 0.9.17.1)
rjack-slf4j (1.5.10.0, 1.5.8.1)
rspec (1.2.9, 1.2.6)
sources (0.0.1)
stomp (1.1.3)
test-unit (2.0.5, 2.0.3)
uuid (2.1.0)
ya2yaml (0.26)

Please provide any additional information below.

Fix line 28 of
vendor/plugins/activemessaging/lib/activemessaging/adapters/jms.rb
from:
@connection_factory = Java::#{cfg[:connection_factory]}.new(@login,
@password, @url)
to:
@connection_factory = Java::#{cfg[:connection_factory]}.new(@login,
@passcode, @url)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Mar 29, 2010, 6:11:56 PM3/29/10
to activemessagin...@googlegroups.com

Comment #1 on issue 49 by kookster: jms broker can't handle authentication
properties
http://code.google.com/p/activemessaging/issues/detail?id=49

good fix, thanks!

Reply all
Reply to author
Forward
0 new messages