Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2007

bson:checkstyleMain FAILED when ./gradlew check command is run

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Environment:
      RHEL ppc64le, OpenJDK Runtime Environment (rhel-2.6.1.2.ael7b_1-ppc64le u85-b01), OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode),

      I'm trying to build the mongo-java-driver from github repo : https://github.com/mongodb/mongo-java-driver and followed the build steps from "Build" section on the page.

      However, after running ./gradlew check i'm getting this errror :

      ./gradlew check
      :bson:compileJava UP-TO-DATE
      :bson:compileGroovy UP-TO-DATE
      :bson:processResources UP-TO-DATE
      :bson:classes UP-TO-DATE
      :bson:checkstyleMain FAILED

      FAILURE: Build failed with an exception.

      • What went wrong:

      Execution failed for task ':bson:checkstyleMain'.

      > Unable to create a Checker: cannot initialize module SuppressionFilter - Cannot set property 'file' in module SuppressionFilter to 'config/checkstyle-exclude.xml': unable to find config/checkstyle-exclude.xml

      • Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

      BUILD FAILED
      Total time: 2.026 secs

      Note: the file config/checkstyle-exclude.xml exists at the location

      On running the with stacktrace option it shows that there is FileNotFoundException (PFA the stacktrace log)

      Please let me know if any dependency needs to be fixed.

        1. error1.PNG
          error1.PNG
          32 kB
        2. error2.PNG
          error2.PNG
          13 kB
        3. error3.PNG
          error3.PNG
          50 kB
        4. gradleCheckResult.txt
          23 kB
        5. gradlewcheckStackTrace.txt
          11 kB
        6. javaDriverErrorReport.html
          36 kB

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            valnci Valencia Serrao
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: