Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-5695

google-collections has been replaced with guava

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.11.3, 1.10.7
    • Fix Version/s: 1.10.8
    • Component/s: Build / Packaging
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      opennms-webapp has a maven dependency on google-collections. According to the google-collections web page, http://code.google.com/p/google-collections/, it has been replaced by guava.

      selenium-monitor has a maven dependency on guava.

      After installing OpenNMS, both jar files are in $OPENNMS_HOME/lib/, and can lead to class problems since both google-collections and guava supply the same class objects.

      An example of what a stack trace would look like is:

      Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Objects.firstNonNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
      at com.google.common.cache.CacheBuilder.getKeyStrength(CacheBuilder.java:533)
      at com.google.common.cache.LocalCache.<init>(LocalCache.java:237)
      at com.google.common.cache.LocalCache$LocalManualCache.<init>(LocalCache.java:4775)
      at com.google.common.cache.CacheBuilder.build(CacheBuilder.java:824)
      ...

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: