# Logstash input jms plugin problem for reading message from tibco ems broker

**URL:** <https://discuss.elastic.co/t/logstash-input-jms-plugin-problem-for-reading-message-from-tibco-ems-broker/43756>\
**Category:** Logstash\
**Created:** [March 8, 2016, 10:37am UTC](https://discuss.elastic.co/t/logstash-input-jms-plugin-problem-for-reading-message-from-tibco-ems-broker/43756 "2016-03-08T10:37:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![achutak](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@achutak](https://discuss.elastic.co/u/achutak)\
**Post date:** [March 8, 2016, 10:37am UTC](https://discuss.elastic.co/t/logstash-input-jms-plugin-problem-for-reading-message-from-tibco-ems-broker/43756/1 "2016-03-08T10:37:13Z")

</div>

in my elk setup with logstash version 2.2 .i am trying to pull the messages from tibco jms broker on certain queue

for this my logstash config file is

input{  
jms {  
include\_header =\> false  
include\_properties =\> false  
include\_body =\> true  
use\_jms\_timestamp =\> false  
interval =\> 10  
yaml\_file =\> "W:/jms.yml"  
#queue\_name =\> "emhjms"  
destination =\> "emhjms"  
yaml\_section =\> "mybroker"  
}  
}  
output {  
stdout {}  
}  
in the above code if i un comments queue\_name its giving error  
[31mUnknown setting 'queue\_name' for jms {:level=\>:error}←[0m  
Error: Something is wrong with your configuration.  
so i commented queue\_name property

and my jms.yml file is

# Tibco EMS

ems:  
:jndi\_name: QueueConnectionFactory  
:jndi\_context:  
java.naming.factory.initial: com.tibco.tibjms.naming.TibjmsInitialContextFactory  
java.naming.provider.url: tcp://localhost:7222  
:require\_jars:  
- C:\software\tibco\ems\6.3\lib\jms.jar  
- C:\software\tibco\ems\6.3\lib\tibjms.jar  
- C:\software\tibco\ems\6.3\lib\tibcrypt.jar

after this if i running the logstash -f \<filexxxx.config\> i am getting error

←[33mJMS Consumer died {:exception=\>#\<TypeError: can't dup NilClass\>, :backtrace=\>["org/jruby/RubyKernel.java:2029:in `dup'", "C:/Users/xprk313/Softwares/logstash-2.2.0/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connectio 2.2.0/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:50:in`start'", "C:/Users/xprk313/Softwares/logstash-2.2.0/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:70:in `session'", "C:/Users ogstash-input-jms-2.0.2-java/lib/logstash/inputs/jms.rb:183:in`run\_consumer'", "C:/Users/xprk313/Softwares/logstash-2.2.0/vendor/bundle/jruby/1.9/gems/logstash-input-jms-2.0.2-java/lib/logstash/inputs/jms.rb:261:in `run'", "C:/Users/xp tash-core-2.2.0-java/lib/logstash/pipeline.rb:316:in`inputworker'",

even i changed the yml file as mentioned below still same issue

🏭 com.tibco.tibjms.TibjmsConnectionFactory  
:broker\_url: tcp://localhost:7222  
:username: admin  
:password:  
:require\_jars:  
- C:\software\tibco\ems\6.3\lib\jms.jar  
- C:\software\tibco\ems\6.3\lib\tibjms.jar  
- C:\software\tibco\ems\6.3\lib\tibcrypt.jar

---

<div class="post-metadata">

**Author:** ![apluchart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apluchart/32/18684_2.png) [@apluchart](https://discuss.elastic.co/u/apluchart)\
**Post date:** [May 31, 2017, 2:49pm UTC](https://discuss.elastic.co/t/logstash-input-jms-plugin-problem-for-reading-message-from-tibco-ems-broker/43756/2 "2017-05-31T14:49:25Z")

</div>

I have a similar error and I found my problem was about the indent in my yml file.  
Look my version of your YAML file.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/8/5/85820d541737f01b37ec49d112bc869fac4e3ab9.PNG)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:26am UTC](https://discuss.elastic.co/t/logstash-input-jms-plugin-problem-for-reading-message-from-tibco-ems-broker/43756/3 "2017-07-06T04:26:11Z")

</div>


