Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-2884

Internal server error in the harvest monitor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 7.4.3
    • 7.4
    • Harvest Monitor
    • None

    Description

      The problem occurs in version 7.4.2 but not in 7.4.1.

      Searching in the cached crawl log of a running job gives an internal server error.

      Steps to reproduce:

      • click the ID of a running job in the "All Running Jobs" view
      • click "View/Search in cached Crawllog"
      • click "Update cache"
      • change the filter regex to anything but ".*"
      • click "Search"

      Result:

      500 Internal server error...
      java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
       at dk.netarkivet.heritrix3.monitor.SearchResult.update(SearchResult.java:85)
      

      It appears to be caused by compiling the java class with a newer version than the 1.8 target version. The ByteBuffer class in 1.8 doesn't have any flip() method whereas later versions do.

      See https://stackoverflow.com/questions/61267495/exception-in-thread-main-java-lang-nosuchmethoderror-java-nio-bytebuffer-flip for discussion and resolution suggestions.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jonas.linde Jonas Linde (Inactive)
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: