org.elasticsearch.common.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in java.lang.Class. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

Stack Overflow | Niraj | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Guice error while building custom RESTful elasticsearch plugin

    Stack Overflow | 8 months ago | Niraj
    org.elasticsearch.common.inject.CreationException: Guice creation errors: 1) Could not find a suitable constructor in java.lang.Class. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

    Root Cause Analysis

    1. org.elasticsearch.common.inject.CreationException

      Guice creation errors: 1) Could not find a suitable constructor in java.lang.Class. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

      at java.lang.Class.class()
    2. Java RT
      Class.class
      1. java.lang.Class.class(Unknown Source)
      1 frame