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

Running Hot Rod client tests from IDE results in CompletionFailure

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 9.1.0.CR1
    • Fix Version/s: 9.2.0.CR3
    • Component/s: Build
    • Labels:
      None
    • Steps to Reproduce:
      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:
      Workaround Exists
    • Workaround Description:
      Hide

      Re-declare optional dependencies in the server/core

      Show
      Re-declare optional dependencies in the server/core

      Description

      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?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sebastian.laskawiec Sebastian Laskawiec
                  Reporter:
                  sebastian.laskawiec Sebastian Laskawiec
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: