HBase
  1. HBase
  2. HBASE-10607

[JDK8] NoSuchMethodError involving ConcurrentHashMap.keySet if running on JRE 7

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If you try running HBase built with Java 8 on a Java 7 JRE, then processes will fail early with:

      java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
      

      I came across this incidentally. I suppose we should consider documenting this in the manual in the Troubleshooting section.

        Activity

        Hide
        Andrew Purtell added a comment -

        Thinking about this further, this is an unlikely combination except as accident.

        Show
        Andrew Purtell added a comment - Thinking about this further, this is an unlikely combination except as accident.
        Hide
        stack added a comment -

        Doc patch.

        Show
        stack added a comment - Doc patch.
        Hide
        stack added a comment -

        Added a section to our refguide. See attached patch. One of us ran into this this evening.

        Show
        stack added a comment - Added a section to our refguide. See attached patch. One of us ran into this this evening.
        Hide
        Hudson added a comment -

        FAILURE: Integrated in HBase-TRUNK #5595 (See https://builds.apache.org/job/HBase-TRUNK/5595/)
        HBASE-10607 [JDK8] NoSuchMethodError involving ConcurrentHashMap.keySet if running on JRE 7 (stack: rev e97b43a16b9aaa01fdae32c109aa3dc7f823d5ab)

        • src/main/docbkx/troubleshooting.xml
        Show
        Hudson added a comment - FAILURE: Integrated in HBase-TRUNK #5595 (See https://builds.apache.org/job/HBase-TRUNK/5595/ ) HBASE-10607 [JDK8] NoSuchMethodError involving ConcurrentHashMap.keySet if running on JRE 7 (stack: rev e97b43a16b9aaa01fdae32c109aa3dc7f823d5ab) src/main/docbkx/troubleshooting.xml

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrew Purtell
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development