GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Listener RuntimeException silently swallowed by default in ChainedRepositoryListener/ChainedTransferListener · Issue #1990 · apache/maven-resolver

Listener RuntimeException silently swallowed by default in ChainedRepositoryListener/ChainedTransferListener #1990

New issue
Copy link
New issue
Copy link
Closed
#2108
Closed
Listener RuntimeException silently swallowed by default in ChainedRepositoryListener/ChainedTransferListener#1990
#2108
Copy link
Labels
bugSomething isn't workingpriority:majorMajor loss of function

Description

@elharo
elharo
opened on Jul 21, 2026
Issue body actions

Affected version: HEAD

Files:

  • maven-resolver-util/src/main/java/org/eclipse/aether/util/listener/ChainedRepositoryListener.java:117
  • maven-resolver-util/src/main/java/org/eclipse/aether/util/listener/ChainedTransferListener.java:118
@SuppressWarnings("EmptyMethod")
protected void handleError(...) {
    // default just swallows errors
}

All RuntimeExceptions thrown by any chained listener (NPEs, IndexOutOfBoundsException, etc.) are silently swallowed unless the user subclasses and overrides handleError. This makes listener bugs invisible.

Originally reported in #1944.

Activity

  1. elharo
    added
    bugSomething isn't working
    priority:majorMajor loss of function
    on Jul 21, 2026
  2. slachiewicz commented on Sep 1, 2026

    @slachiewicz
    slachiewicz
    on Sep 1, 2026
    Member
    More actions

    Analysis & Triage

    • Problem Identified: ChainedRepositoryListener and ChainedTransferListener have an empty default handleError() implementation, causing any RuntimeException (such as NullPointerException or IllegalArgumentException) thrown by custom listeners to be swallowed silently with no logging or notification.
    • Affected Versions: Both 1.9.x and 2.0.x.
    • Plan to Fix:
      1. Add a logger to ChainedRepositoryListener and ChainedTransferListener to log listener exceptions at WARNING level by default.
      2. Add unit tests in ChainedRepositoryListenerTest and ChainedTransferListenerTest verifying that exceptions in one listener do not prevent subsequent listeners in the multicast chain from receiving events. (Targeted for 2.0.24 in PR Fix listener error swallowing (#1990), SyncContext double-close (#1992), and test flakiness (#1350) #2108)
  3. slachiewicz
    modified the milestone: This milestone has been deleted on Sep 1, 2026
  4. slachiewicz
    added a commit that references this issue on Sep 4, 2026

    [1.9.x] Fix listener error swallowing (#1990), SyncContext double-clo…

    3746f2c
  5. cstamas
    linked a pull request that will close this issueFix listener error swallowing (#1990), SyncContext double-close (#1992), and test flakiness (#1350) #2108on Sep 8, 2026
  6. cstamas
    added a commit that references this issue on Sep 8, 2026

    Fix listener error swallowing (#1990), SyncContext double-close (#1992)…

    0a74153
  7. cstamas
    closed this as completedin #2108on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.