Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9801

Drop noisy logs about java.util.Collections at server startup

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1
    • Component/s: Database
    • Labels:

      Description

      The following warning may appear in sonar.log:

      2017.09.08 14:43:02 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
      2017.09.08 14:43:02 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up
      Two methods with same method signature but not providing classes assignable? "public abstract boolean java.util.List.isEmpty()" and "public boolean java.util.Collections$UnmodifiableCollection.isEmpty()" please report!
      Two methods with same method signature but not providing classes assignable? "public abstract boolean java.util.List.isEmpty()" and "public boolean java.util.Collections$UnmodifiableCollection.isEmpty()" please report!
      Two methods with same method signature but not providing classes assignable? "public abstract boolean java.util.List.isEmpty()" and "public boolean java.util.Collections$UnmodifiableCollection.isEmpty()" please report!
      Two methods with same method signature but not providing classes assignable? "public abstract boolean java.util.List.isEmpty()" and "public boolean java.util.Collections$UnmodifiableCollection.isEmpty()" please report!
      Two methods with same method signature but not providing classes assignable? "public abstract boolean java.util.List.isEmpty()" and "public boolean java.util.Collections$UnmodifiableCollection.isEmpty()" please report!
      Two methods with same method signature but not providing classes assignable? "public abstract boolean java.util.List.isEmpty()" and "public boolean java.util.Collections$UnmodifiableCollection.isEmpty()" please report!
      

      Seems it's related to MyBatis and a library it uses Ognl (cf. https://stackoverflow.com/questions/41621484/java-msg-in-console-two-methods-with-same-method-signature-but-not-providing-c and https://github.com/mybatis/mybatis-3/issues/929). Ognl is being confused by default method in interfaces.

      Issue is still open as of today and not fixed in MyBatis 3.4.5 (we are using 3.4.4). Waiting on this PR to be merged in Ognl, then released, then MyBatis updated and released also.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              simon.brandhof Simon Brandhof (Inactive)
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: