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

Reflection triggers NoClassDefFoundError for CryptoManager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.7.5
    • 2.6.0
    • 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

          For Gerrit Dashboard: JCBC-1333
          # Subject Branch Project Status CR V

          Activity

            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