Logstash-input-jms doesn't work with WebLogic Server 12.1.3.0.0

Hi,
I have logstash 5.5.0, I installed the logstash-input-jms plugin, was installed successfully.
But when I try to run it it gives this error:

[2017-07-10T10:30:45,866][WARN ][logstash.inputs.jms ] JMS Consumer died
{:exception=>#<NoMethodError: undefined method create_connection' for #<Java::WeblogicJmsCommon::DestinationImpl:0x1e85a4a0>>, :backtrace=>[ "../logstash-5.5.0/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:204:ininitialize'",
"../logstash-5.5.0/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:50:in start'", "../logstash-5.5.0/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:70:insession'",
"../logstash-5.5.0/vendor/bundle/jruby/1.9/gems/logstash-input-jms-3.0.2-java/lib/logstash/inputs/jms.rb:186:in run_consumer'", "../logstash-5.5.0/vendor/bundle/jruby/1.9/gems/logstash-input-jms-3.0.2-java/lib/logstash/inputs/jms.rb:257:inrun'",
"../logstash-5.5.0/logstash-core/lib/logstash/pipeline.rb:456:in inputworker'", "../logstash-5.5.0/logstash-core/lib/logstash/pipeline.rb:449:instart_input'"]}

I found out the issue.
I've put the jndi of the Queue, instead of the Queue Connection Factory.
Here's a configuration:

jms.conf

input {
	jms {
		use_jms_timestamp => false
		yaml_file => "jms.yml"
		yaml_section => "weblogic"
		destination => "jmsServer/jmsModule!QUEUE_NAME"
	}
}

output {
	stdout { 
		codec => rubydebug
	}
}

jms.yml

weblogic:
  :jndi_name: jms/QueueConnectionFactory
  :jndi_context:
    java.naming.factory.initial: weblogic.jndi.WLInitialContextFactory 
    java.naming.provider.url: t3://localhost:7001
    java.naming.factory.url.pkgs: javax.naming:javax.jms
    java.naming.security.principal: weblogic
    java.naming.security.credentials: weblogic12345
  :require_jars:
    - ./Middleware/wlserver/server/lib/wlthint3client.jar
    - ./Middleware/wlserver/server/lib/wljmsclient.jar
    - ./Middleware/wlserver/server/lib/wlclient.jar

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.