Open GoogleCodeExporter opened 9 years ago
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)
Original issue reported on code.google.com by francesc...@unimore.it on 12 Jan 2010 at 11:41
francesc...@unimore.it
good fix, thanks!
Original comment by kooks...@gmail.com on 29 Mar 2010 at 10:07
kooks...@gmail.com
Original issue reported on code.google.com by
francesc...@unimore.it
on 12 Jan 2010 at 11:41