Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1333

Reflection triggers NoClassDefFoundError for CryptoManager

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.5
    • None
    • None
    • 1

    Description

      Reflective access of any class that refers to classes defined in the crypto extension library (example: DefaultCouchbaseEnvironment, JsonObject) fails with this exception:

      java.lang.NoClassDefFoundError: Unable to load class com.couchbase.client.java.env.CouchbaseEnvironment due to missing dependency com/couchbase/client/encryption/CryptoManager

      This causes problems for Spring and Groovy.

      The workaround is to include the "optional" crypto library:

      <dependency>
        <groupId>com.couchbase.client</groupId>
        <artifactId>encryption</artifactId>
        <version>1.0.0</version>
      </dependency>

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            Since it's just copying interfaces, maybe this is something we can do for the next bugfix release?

            daschl Michael Nitschinger added a comment - Since it's just copying interfaces, maybe this is something we can do for the next bugfix release?

            People

              david.nault David Nault
              david.nault David Nault
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty