Error-org.elasticsearch.common.inject.CreationException: Guice creation errors:


(Rajan Gabriel Anbu) #1

Im getting this exception under Guice Creation errors

  1. Error injecting constructor, java.lang.NullPointerException
    at org.elasticsearch.common.network.NetworkService.(Unknown Source)
    while locating org.elasticsearch.common.network.NetworkService
    for parameter 2 at org.elasticsearch.transport.netty.NettyTransport.(Unknown Source)
    while locating org.elasticsearch.transport.netty.NettyTransport
    while locating org.elasticsearch.transport.Transport
    for parameter 1 at org.elasticsearch.transport.TransportService.(Unknown Source)
    while locating org.elasticsearch.transport.TransportService
    for parameter 3 at org.elasticsearch.discovery.zen.ZenDiscovery.(Unknown Source)
    while locating org.elasticsearch.discovery.zen.ZenDiscovery
    while locating org.elasticsearch.discovery.Discovery
    for parameter 3 at org.elasticsearch.node.service.NodeService.(Unknown Source)
    while locating org.elasticsearch.node.service.NodeService
    Caused by: java.lang.NullPointerException
    at org.elasticsearch.common.network.IfConfig.doLogging(IfConfig.java:73)
    at org.elasticsearch.common.network.IfConfig.logIfNecessary(IfConfig.java:46)
    at org.elasticsearch.common.network.NetworkService.(NetworkService.java:86)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:50)
    at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
    at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:887)
    at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
    at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
    at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    at org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:54)
    at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:887)
    at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
    at org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
    at org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:887)
    at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    at org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    at org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)

and so the stack trace extends upto few more lines but here im restricted to a character limit of 5000
could anyone provide a solution please ?


(David Pilato) #2

Version?
Plugins?
How did you install it?


(Rajan Gabriel Anbu) #3

version: 2.2.0
plugins: no
install: from release build.
exception occurred at starting of node.


(Nik Everett) #4

Looks like a bug. This is the line, so listing network addresses is returning a null entry. This hasn't come up before because that is a fairly weird thing for that method to do.

Is there any chance that you on a machine with a network that is "weird" in some way?


(Rajan Gabriel Anbu) #5

Im really sorry for the delayed response Nik Everett ,No the network seems to be functioning normally


(Nik Everett) #6

It'd be useful to know why you are seeing this and no one else is. Maybe
you are using a unique JVM? What kind of network does the box have?


(system) #7