# TIBCO EMS plugin connection

**URL:** <https://discuss.elastic.co/t/tibco-ems-plugin-connection/216024>\
**Category:** Logstash\
**Created:** [January 22, 2020, 9:57am UTC](https://discuss.elastic.co/t/tibco-ems-plugin-connection/216024 "2020-01-22T09:57:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumitsinghtomar09](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sumitsinghtomar09](https://discuss.elastic.co/u/sumitsinghtomar09)\
**Post date:** [January 22, 2020, 9:57am UTC](https://discuss.elastic.co/t/tibco-ems-plugin-connection/216024/1 "2020-01-22T09:57:17Z")

</div>

Hi All,

I am trying to connect my local tibco ems server from logstanch, i am getting below error.

Sending Logstash logs to C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logs which is now configured via log4j2.properties  
[2020-01-22T15:20:37,441][FATAL][logstash.runner] An unexpected error occurred! {:error=\>#\<ArgumentError: Setting "ems.factory" hasn't been registered\>, :backtrace=\>["C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/settings.rb:69:in `get_setting'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/settings.rb:102:in `set\_value'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/settings.rb:121:in `block in merge'", "org/jruby/RubyHash.java:1417:in `each'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/settings.rb:121:in `merge'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/settings.rb:179:in `validate\_all'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/runner.rb:284:in `execute'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/runner.rb:242:in `run'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "C:\Users\vv19sn\Downloads\logstash-7.5.1\logstash-7.5.1\lib\bootstrap\environment.rb:73:in `'"]}  
[2020-01-22T15:20:37,613][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

Content of logstach.yml file.

ems:  
🏭 com.tibco.tibjms.TibjmsConnectionFactory  
:serverUrl: tcp://localhost:7222  
:username: admin  
:password:  
:require\_jars:  
- C:\tibco\Designer\_for\_BW\_5.14.0\ems\8.3\lib\jms-2.0.jar  
- C:\tibco\Designer\_for\_BW\_5.14.0\ems\8.3\lib\tibjms.jar  
- C:\tibco\Designer\_for\_BW\_5.14.0\ems\8.3\lib\tibcrypt.jar

content of logstach.conf file.

input {

```
	jms 

```

{  
destination =\> "queue.sample"  
include\_body =\> true  
include\_header =\> false  
include\_properties =\> false  
interval =\> 10  
timeout =\> -1  
threads =\> 20  
use\_jms\_timestamp =\> false  
yaml\_file =\> "\logstash.yml"  
yaml\_section =\> "ems"  
}

}

output{

```
 elasticsearch {
 hosts => ["localhost:9200"]
 index => "indextibco"
 }

```

}

---

<div class="post-metadata">

**Author:** ![sumitsinghtomar09](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sumitsinghtomar09](https://discuss.elastic.co/u/sumitsinghtomar09)\
**Post date:** [January 22, 2020, 10:13am UTC](https://discuss.elastic.co/t/tibco-ems-plugin-connection/216024/2 "2020-01-22T10:13:34Z")

</div>

also i change the way like below still getting error.

change logstach.conf like below and commented whole logstach.yaml.

input {

```
	jms 

```

{  
broker\_url =\> 'tcp://localhost:7222'  
destination =\> 'queue.sample'  
factory =\> 'com.tibco.tibjms.naming.TibjmsInitialContextFactory'  
pub\_sub =\> false  
use\_jms\_timestamp =\> false  
username =\> 'admin'  
password =\> ''

```
    include_header => false
    include_properties => false
    include_body => true
    

    require_jars => ['C:\tibco\ems\7.0\lib\jms-2.0.jar','C:\tibco\ems\7.0\lib\tibjms.jar','C:\tibco\ems\7.0\lib\tibcrypt.jar'] 

```

}

}

output{

```
 elasticsearch {
 hosts => ["localhost:9200"]
 index => "indextibco"
 }

```

}

error i got like below.

[2020-01-22T15:41:50,687][WARN][logstash.inputs.jms][main] JMS Consumer Died {:exception=\>"NoMethodError", :exception\_message=\>"undefined method `create_connection' for #<Java::ComTibcoTibjmsNaming::TibjmsInitialContextFactory:0x669bd84e>", :backtrace=>["C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/jruby-jms-1.3.0-java/lib/jms/connection.rb:202:in `initialize'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-jms-3.1.2-java/lib/logstash/inputs/jms.rb:225:in `run'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:322:in `inputworker'", "C:/Users/vv19sn/Downloads/logstash-7.5.1/logstash-7.5.1/logstash-core/lib/logstash/java\_pipeline.rb:314:in `block in start\_input'"]}

---

<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:** [February 19, 2020, 10:13am UTC](https://discuss.elastic.co/t/tibco-ems-plugin-connection/216024/3 "2020-02-19T10:13:35Z")

</div>

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