Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-588

Upgrade from Nuxeo Java Client from 3.5.0 to 3.13.0 and add LTS tests Fixes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.2
    • Component/s: AI Nuxeo Services

      Description

      1) After running some unit tests in ai core using the nuxeo java client, an error occurs systematically:

      Caused by: java.lang.NoClassDefFoundError: okhttp3/internal/Version
      	at org.nuxeo.client.NuxeoClient.computeUserAgent(NuxeoClient.java:119) ~[nuxeo-java-client-3.5.0.jar:3.5.0]
      	at org.nuxeo.client.NuxeoClient.<init>(NuxeoClient.java:98) ~[nuxeo-java-client-3.5.0.jar:3.5.0]
      	at org.nuxeo.client.NuxeoClient$Builder.connect(NuxeoClient.java:490) ~[nuxeo-java-client-3.5.0.jar:3.5.0]
      	at org.nuxeo.ai.sdk.rest.client.InsightClient.connect(InsightClient.java:119) ~[insight-rest-client-1.2.1.jar:?]
      	at org.nuxeo.ai.cloud.NuxeoCloudClient.configureClient(NuxeoCloudClient.java:199) ~[nuxeo-ai-model-3.5.1-SNAPSHOT.jar:?]
      	at org.nuxeo.ai.cloud.NuxeoCloudClient.lambda$getClient$0(NuxeoCloudClient.java:223) ~[nuxeo-ai-model-3.5.1-SNAPSHOT.jar:?]
      	at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4868) ~[guava-31.1-jre.jar:?]
      	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3533) ~[guava-31.1-jre.jar:?]
      	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2282) ~[guava-31.1-jre.jar:?]
      

      By upgrading to the 3.13.0 version, it is fixed:

      • Update in nuxeo-ai dependencies
      • Update in nuxeo-insight-client dependencies

      2) There are also lots of alignment to do on the LTS to make tests pass.

        Attachments

          Activity

            People

            • Assignee:
              vpasquier Vladimir Pasquier
              Reporter:
              vpasquier Vladimir Pasquier
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: