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 | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Guice error while building custom RESTful elasticsearch plugin

    Stack Overflow | 10 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