Skip to content

fix(SPSTRAT-760): Sort resources by durable ID before diffing offers#210

Open
lslebodn wants to merge 2 commits into
mainfrom
offer_compare
Open

fix(SPSTRAT-760): Sort resources by durable ID before diffing offers#210
lslebodn wants to merge 2 commits into
mainfrom
offer_compare

Conversation

@lslebodn

@lslebodn lslebodn commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

The Product Ingestion API does not guarantee the order of resources in resource-tree responses. When draft and live versions return resources in different order, DeepDiff compares unrelated resource types at the same index, producing false diffs that block publishing.

Sort the resources list by durable ID (which is stable and permanent per the API documentation) before passing to DeepDiff, ensuring matching resources are compared against each other.

Ref: https://learn.microsoft.com/en-us/partner-center/marketplace-offers/product-ingestion-api#durable-id

Assisted-by: Claude Opus 4.6 noreply@anthropic.com

Summary by Sourcery

Sort Azure offer resources by durable ID and filter out submission resources before diffing to avoid spurious differences caused by resource ordering and target-specific metadata.

Bug Fixes:

  • Prevent false-positive diffs when draft and live Azure offers return resources in different orders by sorting resources by durable ID prior to comparison.
  • Exclude target-specific submission resources and various URL/image fields from Azure offer diffs to avoid noisy, non-actionable differences.

Tests:

  • Extend Azure service tests to cover diff behavior with reordered resources, verify submission resources are filtered and sorted by durable ID, and update existing expectations for changed resource indices in diffs.

@sourcery-ai

sourcery-ai Bot commented Jun 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

Sort Azure offer resources by durable ID and filter out submission resources before computing DeepDiffs, while tightening excluded diff paths and updating tests to reflect order-independent, noise-free diffs.

Sequence diagram for AzureService offer diff with resource preparation

sequenceDiagram
    actor Caller
    participant AzureService
    participant RemoteProduct as Product_remote
    participant LocalProduct as Product_local
    participant DeepDiff

    Caller->>AzureService: diff_offer(product, target)
    AzureService->>AzureService: get_product(product.id, target)
    AzureService-->>AzureService: remote Product_remote

    AzureService->>RemoteProduct: to_json()
    RemoteProduct-->>AzureService: remote_json
    AzureService->>AzureService: _prepare_resources_for_diff(remote_json)
    AzureService-->>AzureService: prepared_remote

    AzureService->>LocalProduct: to_json()
    LocalProduct-->>AzureService: local_json
    AzureService->>AzureService: _prepare_resources_for_diff(local_json)
    AzureService-->>AzureService: prepared_local

    AzureService->>DeepDiff: DeepDiff(prepared_remote, prepared_local, exclude_regex_paths=DIFF_EXCLUDES)
    DeepDiff-->>AzureService: diff
    AzureService-->>Caller: diff
Loading

File-Level Changes

Change Details Files
Normalize offer JSON before diffing by sorting resources and filtering out submission-only entries, then use this in all Azure offer diff operations.
  • Introduce a static helper that copies offer JSON, filters out resources whose durable ID starts with the submission/ prefix, and sorts remaining resources by their id field.
  • Change diff_offer to diff prepared remote and local offer JSONs instead of raw to_json output.
  • Change diff_two_offers to diff prepared last and previous offers instead of raw to_json output.
cloudpub/ms_azure/service.py
Refine DeepDiff exclusion rules to ignore expected or noisy Azure-specific fields and asset URLs.
  • Expand DIFF_EXCLUDES to ignore target.targetType changes.
  • Generalize the existing resources[].url exclusion regex to use \d+ instead of a literal index.
  • Add exclusion for resources[].assets[].imageList[].url to avoid diffs on image URLs.
cloudpub/ms_azure/service.py
Update and extend Azure diff tests to be robust to resource reordering and to validate submission filtering and new indices.
  • Adjust existing diff_offer and diff_two_offers tests to assert on the new resource index after sorting by durable ID.
  • Add a regression test that verifies diff_two_offers returns an empty diff when resources are the same but in reverse order.
  • Add a unit test for _prepare_resources_for_diff that checks submission resources are removed, remaining resources are preserved, and IDs are sorted.
  • Update publish_live_modular_push logging assertion to match the new resource index used in the diff message after sorting and filtering.
tests/ms_azure/test_service.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Consider making _sort_resources resilient to missing or non-list resources keys (e.g., using offer_json.get('resources') and returning the input unchanged if absent) to avoid potential KeyError or type issues when the API response shape varies.
  • The updated tests that assert on specific resource indices (e.g., index 7 or 12 after sorting) are somewhat brittle and may break if the fixture data changes; it might be more robust to assert on the presence of a particular DeepDiff path/value pair without depending on its exact index.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider making `_sort_resources` resilient to missing or non-list `resources` keys (e.g., using `offer_json.get('resources')` and returning the input unchanged if absent) to avoid potential `KeyError` or type issues when the API response shape varies.
- The updated tests that assert on specific resource indices (e.g., index 7 or 12 after sorting) are somewhat brittle and may break if the fixture data changes; it might be more robust to assert on the presence of a particular DeepDiff path/value pair without depending on its exact index.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@lslebodn

Copy link
Copy Markdown
Collaborator Author

@sourcery-ai review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue, and left some high level feedback:

  • _sort_resources assumes offer_json['resources'] always exists and is a list; consider using offer_json.get('resources') with a type check or early return to avoid KeyError/TypeError when the shape changes or when resources are absent.
  • The tests now assert on hard-coded indices (e.g., 7 and 12) after sorting, which couples them tightly to fixture structure; consider asserting on the presence of the specific diff entry (e.g., via substring match or by computing the expected index in the test) rather than relying on exact indices.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
-  `_sort_resources` assumes `offer_json['resources']` always exists and is a list; consider using `offer_json.get('resources')` with a type check or early return to avoid `KeyError`/`TypeError` when the shape changes or when resources are absent.
- The tests now assert on hard-coded indices (e.g., 7 and 12) after sorting, which couples them tightly to fixture structure; consider asserting on the presence of the specific diff entry (e.g., via substring match or by computing the expected index in the test) rather than relying on exact indices.

## Individual Comments

### Comment 1
<location path="cloudpub/ms_azure/service.py" line_range="454-463" />
<code_context>
             )

+    @staticmethod
+    def _sort_resources(offer_json: dict) -> dict:
+        """Sort the resources list by durable ID for consistent comparison.
+
+        The Product Ingestion API does not guarantee the order of resources in the
+        resource-tree response. Sorting by durable ID ensures that DeepDiff compares
+        matching resources rather than resources that happen to share the same index.
+
+        Args:
+            offer_json (dict)
+                The serialized product JSON.
+        Returns:
+            dict: The product JSON with resources sorted by durable ID.
+        """
+        sorted_json = offer_json.copy()
+        sorted_json["resources"] = sorted(offer_json["resources"], key=lambda r: r.get("id", ""))
+        return sorted_json
+
</code_context>
<issue_to_address>
**issue (bug_risk):** Guard against missing or non-list `resources` in `_sort_resources`.

This helper assumes `offer_json["resources"]` is always present and a list. If the JSON sometimes omits `resources` or sets it to `None`/a non-list, this will raise at runtime. Consider using `resources = offer_json.get("resources")` and only sorting when it’s a list, otherwise returning the dict unchanged.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread cloudpub/ms_azure/service.py Outdated
@lslebodn

Copy link
Copy Markdown
Collaborator Author

@JAVGan @ashwgit PTAL

JAVGan
JAVGan previously approved these changes Jun 17, 2026

@JAVGan JAVGan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lslebodn lslebodn marked this pull request as draft June 17, 2026 14:58
Lukas Slebodnik added 2 commits June 17, 2026 18:37
The Product Ingestion API does not guarantee the order of resources in
resource-tree responses. When draft and live versions return resources in
different order, DeepDiff compares unrelated resource types at the same
index, producing false diffs that block publishing.

Sort the resources list by durable ID (which is stable and permanent per
the API documentation) before passing to DeepDiff, ensuring matching
resources are compared against each other.

Submission resources always differ between targets (different durable
ID, status, result, created fields). Filter them out before diffing.

Ref: https://learn.microsoft.com/en-us/partner-center/marketplace-offers/product-ingestion-api#durable-id

Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
When comparing draft vs live offers, certain differences are expected
and should not be flagged:

- The top-level targetType always differs ("draft" vs "live").
- Nested asset URLs contain SAS tokens with timestamps that change
  between API calls.

Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
@qodo-for-releng

Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: security

Failed stage: OWASP check [❌]

Failed test name: ""

Failure summary:

The GitHub Action failed during an OWASP Dependency-Check scan while updating/using its
vulnerability database:
- Dependency-Check repeatedly failed to update NVD data because the NVD API
returned HTTP 503 (UpdateException caused by NvdApiException: NVD Returned Status Code: 503, around
lines 771-785).
- After the update failures, Dependency-Check encountered fatal H2 database I/O
errors when reading its local MVStore database file (org.h2.mvstore.MVStoreException: Reading from
file ... failed, plus ClosedByInterruptException / ClosedChannelException), leading to many Failed
to process CVE-... messages and finally a JdbcBatchUpdateException during the Known Exploited
Vulnerabilities update (around lines 10089-10107).
- Due to these fatal DB errors, Dependency-Check
reported it was unable to continue analysis and exited with code 13 (lines 10109-10114), which
caused the workflow step to fail.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

568:  pythonLocation: /opt/hostedtoolcache/Python/3.10.20/x64
569:  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.20/x64/lib/pkgconfig
570:  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.20/x64
571:  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.20/x64
572:  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.20/x64
573:  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.20/x64/lib
574:  GHA_PIP_AUDIT_SUMMARY: true
575:  GHA_PIP_AUDIT_NO_DEPS: false
576:  GHA_PIP_AUDIT_REQUIRE_HASHES: false
577:  GHA_PIP_AUDIT_VULNERABILITY_SERVICE: PyPI
578:  GHA_PIP_AUDIT_VIRTUAL_ENVIRONMENT: 
579:  GHA_PIP_AUDIT_LOCAL: false
580:  GHA_PIP_AUDIT_INDEX_URL: 
581:  GHA_PIP_AUDIT_EXTRA_INDEX_URLS: 
582:  GHA_PIP_AUDIT_IGNORE_VULNS: 
583:  GHA_PIP_AUDIT_INTERNAL_BE_CAREFUL_ALLOW_FAILURE: false
584:  GHA_PIP_AUDIT_INTERNAL_BE_CAREFUL_EXTRA_FLAGS: 
...

739:  inflating: dependency-check/lib/semver4j-5.8.0.jar  
740:  inflating: dependency-check/lib/slf4j-api-2.0.17.jar  
741:  inflating: dependency-check/lib/snakeyaml-2.5.jar  
742:  inflating: dependency-check/lib/spotbugs-annotations-4.9.8.jar  
743:  inflating: dependency-check/lib/toml4j-0.7.2.jar  
744:  inflating: dependency-check/lib/velocity-engine-core-2.4.1.jar  
745:  inflating: dependency-check/lib/xz-1.9.jar  
746:  inflating: dependency-check/LICENSE.txt  
747:  inflating: dependency-check/NOTICE.txt  
748:  inflating: dependency-check/licenses/commons-cli/LICENSE.txt  
749:  inflating: dependency-check/README.md  
750:  [WARN] '--disableRetireJS' is deprecated and may be removed in the next major release, please migrate to '--disableRetireJs'
751:  [WARN] ossIndexPassword used on the command line, consider moving the password to a properties file using the key `analyzer.ossindex.password` and using the --propertyfile argument instead
752:  [INFO] Checking for updates
753:  [INFO] NVD API has 341,461 records in this update
754:  [WARN] NVD API request failures are occurring; retrying request for the 15th time
755:  [WARN] NVD API request failures are occurring; retrying request for the 16th time
756:  [WARN] NVD API request failures are occurring; retrying request for the 17th time
757:  [WARN] NVD API request failures are occurring; retrying request for the 18th time
758:  [WARN] NVD API request failures are occurring; retrying request for the 19th time
759:  [WARN] NVD API request failures are occurring; retrying request for the 20th time
760:  [WARN] NVD API request failures are occurring; retrying request for the 21st time
761:  [WARN] NVD API request failures are occurring; retrying request for the 22nd time
762:  [WARN] NVD API request failures are occurring; retrying request for the 23rd time
763:  [WARN] NVD API request failures are occurring; retrying request for the 24th time
764:  [WARN] NVD API request failures are occurring; retrying request for the 25th time
765:  [WARN] NVD API request failures are occurring; retrying request for the 26th time
766:  [WARN] NVD API request failures are occurring; retrying request for the 27th time
767:  [WARN] NVD API request failures are occurring; retrying request for the 28th time
768:  [WARN] NVD API request failures are occurring; retrying request for the 29th time
769:  [WARN] NVD API request failures are occurring; retrying request for the 30th time
770:  [WARN] NVD API request failures are occurring; retrying request for the 31st time
771:  [ERROR] Error updating the NVD Data
772:  org.owasp.dependencycheck.data.update.exception.UpdateException: Error updating the NVD Data
773:  at org.owasp.dependencycheck.data.update.NvdApiDataSource.processApi(NvdApiDataSource.java:387)
774:  at org.owasp.dependencycheck.data.update.NvdApiDataSource.update(NvdApiDataSource.java:128)
775:  at org.owasp.dependencycheck.Engine.doUpdates(Engine.java:887)
776:  at org.owasp.dependencycheck.Engine.initializeAndUpdateDatabase(Engine.java:692)
777:  at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:619)
778:  at org.owasp.dependencycheck.App.runScan(App.java:265)
779:  at org.owasp.dependencycheck.App.run(App.java:197)
780:  at org.owasp.dependencycheck.App.main(App.java:88)
781:  Caused by: io.github.jeremylong.openvulnerability.client.nvd.NvdApiException: NVD Returned Status Code: 503
782:  at io.github.jeremylong.openvulnerability.client.nvd.NvdCveClient._next(NvdCveClient.java:445)
783:  at io.github.jeremylong.openvulnerability.client.nvd.NvdCveClient.next(NvdCveClient.java:356)
784:  at org.owasp.dependencycheck.data.update.NvdApiDataSource.processApi(NvdApiDataSource.java:343)
785:  ... 7 common frames omitted
786:  [ERROR] Failed to process CVE-2001-1015
787:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-1015'
788:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
789:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
790:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
791:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
792:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
793:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
794:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
795:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
796:  at java.base/java.lang.Thread.run(Thread.java:840)
797:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 246351393 (length -1), read 0, remaining 768 [2.4.240/1]"; SQL statement:
798:  SELECT id FROM VULNERABILITY CVE WHERE cve=? [50000-240]
...

816:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
817:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
818:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
819:  at org.h2.command.query.Select.queryFlat(Select.java:749)
820:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
821:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
822:  at org.h2.command.query.Query.query(Query.java:529)
823:  at org.h2.command.query.Query.query(Query.java:510)
824:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
825:  at org.h2.command.Command.executeQuery(Command.java:198)
826:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
827:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
828:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
829:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
830:  ... 8 common frames omitted
831:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 246351393 (length -1), read 0, remaining 768 [2.4.240/1]
832:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

858:  at org.h2.command.query.Select.queryFlat(Select.java:749)
859:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
860:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
861:  at org.h2.command.query.Query.query(Query.java:548)
862:  at org.h2.command.query.Query.query(Query.java:510)
863:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
864:  at org.h2.command.Command.executeQuery(Command.java:198)
865:  ... 34 common frames omitted
866:  Caused by: java.nio.channels.ClosedByInterruptException
867:  at java.base/java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199)
868:  at java.base/sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:171)
869:  at java.base/sun.nio.ch.FileChannelImpl.readInternal(FileChannelImpl.java:844)
870:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:824)
871:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
872:  ... 65 common frames omitted
873:  [ERROR] Failed to process CVE-2001-0733
874:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0733'
875:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
876:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
877:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
878:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
879:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
880:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
881:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
882:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
883:  at java.base/java.lang.Thread.run(Thread.java:840)
884:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 76633352 (length -1), read 0, remaining 512 [2.4.240/1]"; SQL statement:
885:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

905:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
906:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
907:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
908:  at org.h2.command.query.Select.queryFlat(Select.java:749)
909:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
910:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
911:  at org.h2.command.query.Query.query(Query.java:529)
912:  at org.h2.command.query.Query.query(Query.java:510)
913:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
914:  at org.h2.command.Command.executeQuery(Command.java:198)
915:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
916:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
917:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
918:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
919:  ... 8 common frames omitted
920:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 76633352 (length -1), read 0, remaining 512 [2.4.240/1]
921:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

938:  at org.h2.mvstore.db.MVSecondaryIndex$MVStoreCursor.get(MVSecondaryIndex.java:415)
939:  at org.h2.index.IndexCursor.get(IndexCursor.java:344)
940:  at org.h2.table.TableFilter.get(TableFilter.java:563)
941:  at org.h2.command.dml.DataChangeStatement.lockAndRecheckCondition(DataChangeStatement.java:93)
942:  at org.h2.command.dml.FilteredDataChangeStatement.lockAndRecheckCondition(FilteredDataChangeStatement.java:100)
943:  at org.h2.command.dml.Delete.update(Delete.java:59)
944:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
945:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
946:  at org.h2.command.Command.executeUpdate(Command.java:306)
947:  ... 36 common frames omitted
948:  Caused by: java.nio.channels.ClosedChannelException
949:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
950:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
951:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
952:  ... 60 common frames omitted
953:  [ERROR] Failed to process CVE-2001-0735
954:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0735'
955:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
956:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
957:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
958:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
959:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
960:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
961:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
962:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
963:  at java.base/java.lang.Thread.run(Thread.java:840)
964:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
965:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

985:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
986:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
987:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
988:  at org.h2.command.query.Select.queryFlat(Select.java:749)
989:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
990:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
991:  at org.h2.command.query.Query.query(Query.java:529)
992:  at org.h2.command.query.Query.query(Query.java:510)
993:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
994:  at org.h2.command.Command.executeQuery(Command.java:198)
995:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
996:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
997:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
998:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
999:  ... 8 common frames omitted
1000:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]
1001:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1013:  at org.h2.mvstore.tx.TransactionMap$CommittedIterator.fetchNext(TransactionMap.java:984)
1014:  at org.h2.mvstore.db.MVSecondaryIndex$MVStoreCursor.next(MVSecondaryIndex.java:428)
1015:  at org.h2.index.IndexCursor.next(IndexCursor.java:361)
1016:  at org.h2.table.TableFilter.next(TableFilter.java:473)
1017:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1018:  at org.h2.command.dml.Delete.update(Delete.java:58)
1019:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1020:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1021:  at org.h2.command.Command.executeUpdate(Command.java:306)
1022:  ... 36 common frames omitted
1023:  Caused by: java.nio.channels.ClosedChannelException
1024:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1025:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1026:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1027:  ... 55 common frames omitted
1028:  [ERROR] Failed to process CVE-2001-0736
1029:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0736'
1030:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1031:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1032:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1033:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1034:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1035:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1036:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1037:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1038:  at java.base/java.lang.Thread.run(Thread.java:840)
1039:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1040:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1060:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1061:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1062:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1063:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1064:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1065:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1066:  at org.h2.command.query.Query.query(Query.java:529)
1067:  at org.h2.command.query.Query.query(Query.java:510)
1068:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1069:  at org.h2.command.Command.executeQuery(Command.java:198)
1070:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1071:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1072:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1073:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1074:  ... 8 common frames omitted
1075:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]
1076:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1095:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1096:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1097:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1098:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1099:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1100:  at org.h2.command.dml.Delete.update(Delete.java:58)
1101:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1102:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1103:  at org.h2.command.Command.executeUpdate(Command.java:306)
1104:  ... 36 common frames omitted
1105:  Caused by: java.nio.channels.ClosedChannelException
1106:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1107:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1108:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1109:  ... 62 common frames omitted
1110:  [ERROR] Failed to process CVE-2001-0738
1111:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0738'
1112:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1113:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1114:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1115:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1116:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1117:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1118:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1119:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1120:  at java.base/java.lang.Thread.run(Thread.java:840)
1121:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1122:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1142:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1143:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1144:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1145:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1146:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1147:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1148:  at org.h2.command.query.Query.query(Query.java:529)
1149:  at org.h2.command.query.Query.query(Query.java:510)
1150:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1151:  at org.h2.command.Command.executeQuery(Command.java:198)
1152:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1153:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1154:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1155:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1156:  ... 8 common frames omitted
1157:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]
1158:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1177:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1178:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1179:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1180:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1181:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1182:  at org.h2.command.dml.Delete.update(Delete.java:58)
1183:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1184:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1185:  at org.h2.command.Command.executeUpdate(Command.java:306)
1186:  ... 36 common frames omitted
1187:  Caused by: java.nio.channels.ClosedChannelException
1188:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1189:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1190:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1191:  ... 62 common frames omitted
1192:  [ERROR] Failed to process CVE-2001-0741
1193:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0741'
1194:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1195:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1196:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1197:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1198:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1199:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1200:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1201:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1202:  at java.base/java.lang.Thread.run(Thread.java:840)
1203:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1204:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1224:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1225:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1226:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1227:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1228:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1229:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1230:  at org.h2.command.query.Query.query(Query.java:529)
1231:  at org.h2.command.query.Query.query(Query.java:510)
1232:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1233:  at org.h2.command.Command.executeQuery(Command.java:198)
1234:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1235:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1236:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1237:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1238:  ... 8 common frames omitted
1239:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747818 (length -1), read 0, remaining 192 [2.4.240/1]
1240:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1259:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1260:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1261:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1262:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1263:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1264:  at org.h2.command.dml.Delete.update(Delete.java:58)
1265:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1266:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1267:  at org.h2.command.Command.executeUpdate(Command.java:306)
1268:  ... 36 common frames omitted
1269:  Caused by: java.nio.channels.ClosedChannelException
1270:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1271:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1272:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1273:  ... 62 common frames omitted
1274:  [ERROR] Failed to process CVE-2001-0742
1275:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0742'
1276:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1277:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1278:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1279:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1280:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1281:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1282:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1283:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1284:  at java.base/java.lang.Thread.run(Thread.java:840)
1285:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1286:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1306:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1307:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1308:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1309:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1310:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1311:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1312:  at org.h2.command.query.Query.query(Query.java:529)
1313:  at org.h2.command.query.Query.query(Query.java:510)
1314:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1315:  at org.h2.command.Command.executeQuery(Command.java:198)
1316:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1317:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1318:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1319:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1320:  ... 8 common frames omitted
1321:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]
1322:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1341:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1342:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1343:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1344:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1345:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1346:  at org.h2.command.dml.Delete.update(Delete.java:58)
1347:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1348:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1349:  at org.h2.command.Command.executeUpdate(Command.java:306)
1350:  ... 36 common frames omitted
1351:  Caused by: java.nio.channels.ClosedChannelException
1352:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1353:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1354:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1355:  ... 62 common frames omitted
1356:  [ERROR] Failed to process CVE-2001-0743
1357:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0743'
1358:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1359:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1360:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1361:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1362:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1363:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1364:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1365:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1366:  at java.base/java.lang.Thread.run(Thread.java:840)
1367:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1368:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1388:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1389:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1390:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1391:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1392:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1393:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1394:  at org.h2.command.query.Query.query(Query.java:529)
1395:  at org.h2.command.query.Query.query(Query.java:510)
1396:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1397:  at org.h2.command.Command.executeQuery(Command.java:198)
1398:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1399:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1400:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1401:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1402:  ... 8 common frames omitted
1403:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]
1404:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1423:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1424:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1425:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1426:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1427:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1428:  at org.h2.command.dml.Delete.update(Delete.java:58)
1429:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1430:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1431:  at org.h2.command.Command.executeUpdate(Command.java:306)
1432:  ... 36 common frames omitted
1433:  Caused by: java.nio.channels.ClosedChannelException
1434:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1435:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1436:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1437:  ... 62 common frames omitted
1438:  [ERROR] Failed to process CVE-2001-0744
1439:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0744'
1440:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1441:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1442:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1443:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1444:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1445:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1446:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1447:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1448:  at java.base/java.lang.Thread.run(Thread.java:840)
1449:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1450:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1470:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1471:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1472:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1473:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1474:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1475:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1476:  at org.h2.command.query.Query.query(Query.java:529)
1477:  at org.h2.command.query.Query.query(Query.java:510)
1478:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1479:  at org.h2.command.Command.executeQuery(Command.java:198)
1480:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1481:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1482:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1483:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1484:  ... 8 common frames omitted
1485:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]
1486:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1505:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1506:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1507:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1508:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1509:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1510:  at org.h2.command.dml.Delete.update(Delete.java:58)
1511:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1512:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1513:  at org.h2.command.Command.executeUpdate(Command.java:306)
1514:  ... 36 common frames omitted
1515:  Caused by: java.nio.channels.ClosedChannelException
1516:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1517:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1518:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1519:  ... 62 common frames omitted
1520:  [ERROR] Failed to process CVE-2001-0745
1521:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0745'
1522:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1523:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1524:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1525:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1526:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1527:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1528:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1529:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1530:  at java.base/java.lang.Thread.run(Thread.java:840)
1531:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1532:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1552:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1553:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1554:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1555:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1556:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1557:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1558:  at org.h2.command.query.Query.query(Query.java:529)
1559:  at org.h2.command.query.Query.query(Query.java:510)
1560:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1561:  at org.h2.command.Command.executeQuery(Command.java:198)
1562:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1563:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1564:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1565:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1566:  ... 8 common frames omitted
1567:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]
1568:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1587:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1588:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1589:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1590:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1591:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1592:  at org.h2.command.dml.Delete.update(Delete.java:58)
1593:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1594:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1595:  at org.h2.command.Command.executeUpdate(Command.java:306)
1596:  ... 36 common frames omitted
1597:  Caused by: java.nio.channels.ClosedChannelException
1598:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1599:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1600:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1601:  ... 62 common frames omitted
1602:  [ERROR] Failed to process CVE-2001-0746
1603:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0746'
1604:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1605:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1606:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1607:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1608:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1609:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1610:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1611:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1612:  at java.base/java.lang.Thread.run(Thread.java:840)
1613:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]"; SQL statement:
1614:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1634:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1635:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1636:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1637:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1638:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1639:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1640:  at org.h2.command.query.Query.query(Query.java:529)
1641:  at org.h2.command.query.Query.query(Query.java:510)
1642:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1643:  at org.h2.command.Command.executeQuery(Command.java:198)
1644:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1645:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1646:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1647:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1648:  ... 8 common frames omitted
1649:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5747953 (length -1), read 0, remaining 192 [2.4.240/1]
1650:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1669:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1670:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1671:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1672:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1673:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1674:  at org.h2.command.dml.Delete.update(Delete.java:58)
1675:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1676:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1677:  at org.h2.command.Command.executeUpdate(Command.java:306)
1678:  ... 36 common frames omitted
1679:  Caused by: java.nio.channels.ClosedChannelException
1680:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1681:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1682:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1683:  ... 62 common frames omitted
1684:  [ERROR] Failed to process CVE-2001-0747
1685:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0747'
1686:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1687:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1688:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1689:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1690:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1691:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1692:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1693:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1694:  at java.base/java.lang.Thread.run(Thread.java:840)
1695:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]"; SQL statement:
1696:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1716:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1717:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1718:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1719:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1720:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1721:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1722:  at org.h2.command.query.Query.query(Query.java:529)
1723:  at org.h2.command.query.Query.query(Query.java:510)
1724:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1725:  at org.h2.command.Command.executeQuery(Command.java:198)
1726:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1727:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1728:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1729:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1730:  ... 8 common frames omitted
1731:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]
1732:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1751:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1752:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1753:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1754:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1755:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1756:  at org.h2.command.dml.Delete.update(Delete.java:58)
1757:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1758:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1759:  at org.h2.command.Command.executeUpdate(Command.java:306)
1760:  ... 36 common frames omitted
1761:  Caused by: java.nio.channels.ClosedChannelException
1762:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1763:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1764:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1765:  ... 62 common frames omitted
1766:  [ERROR] Failed to process CVE-2001-0748
1767:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0748'
1768:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1769:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1770:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1771:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1772:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1773:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1774:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1775:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1776:  at java.base/java.lang.Thread.run(Thread.java:840)
1777:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]"; SQL statement:
1778:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1798:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1799:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1800:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1801:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1802:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1803:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1804:  at org.h2.command.query.Query.query(Query.java:529)
1805:  at org.h2.command.query.Query.query(Query.java:510)
1806:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1807:  at org.h2.command.Command.executeQuery(Command.java:198)
1808:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1809:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1810:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1811:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1812:  ... 8 common frames omitted
1813:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]
1814:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1833:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1834:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1835:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1836:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1837:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1838:  at org.h2.command.dml.Delete.update(Delete.java:58)
1839:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1840:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1841:  at org.h2.command.Command.executeUpdate(Command.java:306)
1842:  ... 36 common frames omitted
1843:  Caused by: java.nio.channels.ClosedChannelException
1844:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1845:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1846:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1847:  ... 62 common frames omitted
1848:  [ERROR] Failed to process CVE-2001-0756
1849:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0756'
1850:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1851:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1852:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1853:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1854:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1855:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1856:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1857:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1858:  at java.base/java.lang.Thread.run(Thread.java:840)
1859:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]"; SQL statement:
1860:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1880:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1881:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1882:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1883:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1884:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1885:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1886:  at org.h2.command.query.Query.query(Query.java:529)
1887:  at org.h2.command.query.Query.query(Query.java:510)
1888:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1889:  at org.h2.command.Command.executeQuery(Command.java:198)
1890:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1891:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1892:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1893:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1894:  ... 8 common frames omitted
1895:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]
1896:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1915:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1916:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1917:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
1918:  at org.h2.table.TableFilter.next(TableFilter.java:442)
1919:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
1920:  at org.h2.command.dml.Delete.update(Delete.java:58)
1921:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
1922:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
1923:  at org.h2.command.Command.executeUpdate(Command.java:306)
1924:  ... 36 common frames omitted
1925:  Caused by: java.nio.channels.ClosedChannelException
1926:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
1927:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
1928:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
1929:  ... 62 common frames omitted
1930:  [ERROR] Failed to process CVE-2001-0758
1931:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0758'
1932:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
1933:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
1934:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
1935:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
1936:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
1937:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
1938:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
1939:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
1940:  at java.base/java.lang.Thread.run(Thread.java:840)
1941:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]"; SQL statement:
1942:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

1962:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
1963:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
1964:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
1965:  at org.h2.command.query.Select.queryFlat(Select.java:749)
1966:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
1967:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
1968:  at org.h2.command.query.Query.query(Query.java:529)
1969:  at org.h2.command.query.Query.query(Query.java:510)
1970:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
1971:  at org.h2.command.Command.executeQuery(Command.java:198)
1972:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
1973:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1974:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
1975:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
1976:  ... 8 common frames omitted
1977:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748083 (length -1), read 0, remaining 128 [2.4.240/1]
1978:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
...

1997:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:276)
1998:  at org.h2.mvstore.db.MVSecondaryIndex.find(MVSecondaryIndex.java:270)
1999:  at org.h2.index.IndexCursor.find(IndexCursor.java:207)
2000:  at org.h2.table.TableFilter.next(TableFilter.java:442)
2001:  at org.h2.command.dml.FilteredDataChangeStatement.nextRow(FilteredDataChangeStatement.java:72)
2002:  at org.h2.command.dml.Delete.update(Delete.java:58)
2003:  at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:77)
2004:  at org.h2.command.CommandContainer.update(CommandContainer.java:139)
2005:  at org.h2.command.Command.executeUpdate(Command.java:306)
2006:  ... 36 common frames omitted
2007:  Caused by: java.nio.channels.ClosedChannelException
2008:  at java.base/sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:159)
2009:  at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:814)
2010:  at org.h2.mvstore.DataUtils.readFully(DataUtils.java:441)
2011:  ... 62 common frames omitted
2012:  [ERROR] Failed to process CVE-2001-0759
2013:  org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to retrieve id for new vulnerability for 'CVE-2001-0759'
2014:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1394)
2015:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateVulnerability(CveDB.java:1093)
2016:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.updateCveDb(NvdApiProcessor.java:119)
2017:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:96)
2018:  at org.owasp.dependencycheck.data.update.nvd.api.NvdApiProcessor.call(NvdApiProcessor.java:40)
2019:  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2020:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2021:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2022:  at java.base/java.lang.Thread.run(Thread.java:840)
2023:  Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748211 (length -1), read 0, remaining 128 [2.4.240/1]"; SQL statement:
2024:  DELETE FROM reference WHERE cveid = ? [50000-240]
...

2044:  at org.h2.command.query.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1865)
2045:  at org.h2.result.LazyResult.hasNext(LazyResult.java:78)
2046:  at org.h2.result.FetchedResult.next(FetchedResult.java:34)
2047:  at org.h2.command.query.Select.queryFlat(Select.java:749)
2048:  at org.h2.command.query.Select.queryWithoutCache(Select.java:873)
2049:  at org.h2.command.query.Query.queryWithoutCacheLazyCheck(Query.java:214)
2050:  at org.h2.command.query.Query.query(Query.java:529)
2051:  at org.h2.command.query.Query.query(Query.java:510)
2052:  at org.h2.command.CommandContainer.query(CommandContainer.java:222)
2053:  at org.h2.command.Command.executeQuery(Command.java:198)
2054:  at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:130)
2055:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
2056:  at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:123)
2057:  at org.owasp.dependencycheck.data.nvdcve.CveDB.updateOrInsertVulnerability(CveDB.java:1389)
2058:  ... 8 common frames omitted
2059:  Caused by: org.h2.mvstore.MVStoreException: Reading from file sun.nio.ch.FileChannelImpl@7dda3422 failed at 5748211 (length -1), read 0, remaining 128 [2.4.240/1]
2060:  at org.h2.mvstore.DataUtils.newMVStoreException(DataUt...

@lslebodn lslebodn marked this pull request as ready for review June 17, 2026 16:44

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • In _prepare_resources_for_diff, consider handling offers that might not have a 'resources' key or where it is not a list (e.g. via offer_json.get('resources', [])) to avoid unexpected KeyError/type issues when schemas or fixtures change.
  • The updated tests assert on specific resource indices after sorting (e.g. index 7 or 11), which tightly couples them to the current fixture contents; it would be more robust to locate the relevant resource by id or other stable attributes rather than assuming a fixed position.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `_prepare_resources_for_diff`, consider handling offers that might not have a `'resources'` key or where it is not a list (e.g. via `offer_json.get('resources', [])`) to avoid unexpected `KeyError`/type issues when schemas or fixtures change.
- The updated tests assert on specific resource indices after sorting (e.g. index 7 or 11), which tightly couples them to the current fixture contents; it would be more robust to locate the relevant resource by `id` or other stable attributes rather than assuming a fixed position.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@JAVGan JAVGan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM.

OWASP seems to be broken, we may fix it later on.

@lslebodn is it ok to you to merge this one already? Or do you still plan to make changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants