Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8843

Running Hot Rod client tests from IDE results in CompletionFailure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.2.0.Final
    • 9.1.0.Final
    • Build
    • None
    • Hide
      1. run mvn clean install -s maven-settings.xml -DskipTests at the root of the project
      2. Open the whole project in IntelliJ
      3. Go to client/hotrod-client
      4. Select one of the tests and run it from IDE
      5. Notice the compilation error
      Show
      run mvn clean install -s maven-settings.xml -DskipTests at the root of the project Open the whole project in IntelliJ Go to client/hotrod-client Select one of the tests and run it from IDE Notice the compilation error
    • Workaround Exists
    • Hide

      Re-declare optional dependencies in the server/core

      Show
      Re-declare optional dependencies in the server/core

      After migrating from Netty Uber Jar to small jars approach we were able to fine-tune the artifacts we depend on. This however caused some very unexpected errors when running testsuite from IDE (see the steps to reproduce):

      Error:java: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.conscrypt.AllocatedBuffer not found
      

      Everything works absolutely fine with Maven, so there must be something with the IDE. So far I noticed that server/core module seems to be the best suspect in this case. The class the IDE is complaining about might be found here. Note that this is an optional dependency of the handler module (see the pom.xml). Why does IntelliJ is trying to compile it?

            slaskawi@redhat.com Sebastian Łaskawiec (Inactive)
            slaskawi@redhat.com Sebastian Łaskawiec (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: