# Event Hub failed during initialization

**URL:** <https://discuss.elastic.co/t/event-hub-failed-during-initialization/181437>\
**Category:** Logstash\
**Created:** [May 16, 2019, 3:17pm UTC](https://discuss.elastic.co/t/event-hub-failed-during-initialization/181437 "2019-05-16T15:17:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eweitkam](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@eweitkam](https://discuss.elastic.co/u/eweitkam)\
**Post date:** [May 16, 2019, 3:17pm UTC](https://discuss.elastic.co/t/event-hub-failed-during-initialization/181437/1 "2019-05-16T15:17:27Z")

</div>

Hi,

I get a error that the logstash.inputs.azureeventhubs could not be initialized.  
I am using version 7.0.1 with the default installed plugin: logstash-input-azure\_event\_hubs

Complaining about undefined method `getEventHubPath'. Thie method can be found in four azure-eventhubs jars files in /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems

[2019-05-16T14:52:08,497][ERROR][logstash.inputs.azureeventhubs] Event Hub failed during initialization. {:event\_hub\_name=\>"logstash", :exception=\>java.util.concurrent.ExecutionException: org.jruby.exceptions.NoMethodError: (NoMethodError) undefined method `getEventHubPath' for #Java::ComMicrosoftAzureEventprocessorhost::HostContext:0x89f9bdd, :backtrace=\>["java.util.concurrent.CompletableFuture.reportGet(java/util/concurrent/CompletableFuture.java:395)", "java.util.concurrent.CompletableFuture.get(java/util/concurrent/CompletableFuture.java:1999)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:62)", "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:566)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:425)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:292)", "usr.share.logstash.vendor.bundle.jruby.$2\_dot\_5\_dot\_0.gems.logstash\_minus\_input\_minus\_azure\_event\_hubs\_minus\_1\_dot\_1\_dot\_1.lib.logstash.inputs.azure\_event\_hubs.run(/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-azure\_event\_hubs-1.1.1/lib/logstash/inputs/azure\_event\_hubs.rb:430)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:295)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:274)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:270)", "java.lang.Thread.run(java/lang/Thread.java:834)"]}

This is the input section of logstash:  
input {  
azure\_event\_hubs {  
event\_hub\_connections =\> ["Endpoint=sb://xxxxxxxxx-t.servicebus.windows.net/;SharedAccessKeyName=logstash\_dev;SharedAccessKey=xxxxxxxxxxxxxxxxxxxxxxxx=;EntityPath=logstash"]  
}  
}

Anybody a clue why this happens?

Regards, Evert Jan

---

<div class="post-metadata">

**Author:** ![eweitkam](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@eweitkam](https://discuss.elastic.co/u/eweitkam)\
**Post date:** [May 17, 2019, 10:43am UTC](https://discuss.elastic.co/t/event-hub-failed-during-initialization/181437/2 "2019-05-17T10:43:30Z")

</div>

> [@eweitkam](#):
>
> undefined method `getEventHubPath' for #Java::ComMicrosoftAzureEventprocessorhost

De-installed java 11 and installed jre 8, that fixed my problem.

---

<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:** [June 14, 2019, 10:43am UTC](https://discuss.elastic.co/t/event-hub-failed-during-initialization/181437/3 "2019-06-14T10:43:34Z")

</div>

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