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 — Catching Throwable in non-framework code in PutTaskRequestContent · Issue #1988 · apache/maven-resolver

Catching Throwable in non-framework code in PutTaskRequestContent #1988

New issue
Copy link
New issue
Copy link
Closed
#2207
#2161
Closed
Catching Throwable in non-framework code in PutTaskRequestContent#1988
#2207
#2161
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

File: maven-resolver-transport-jetty/src/main/java/org/eclipse/aether/transport/jetty/PutTaskRequestContent.java:246, 298

} catch (Throwable t) {
    lockedSetTerminal(Content.Chunk.from(t, true));
}

Catches OutOfMemoryError, StackOverflowError, InternalError, etc. These should propagate. Wrapping them as terminal chunks converts fatal JVM errors into regular failure conditions, making them invisible to diagnostics.

Originally reported in #1944.

Activity

  1. elharo
    added
    bugSomething isn't working
    priority:majorMajor loss of function
    on Jul 21, 2026
  2. slachiewicz
    modified the milestones: 2.1.0, This milestone has been deleted on Sep 1, 2026
  3. cstamas
    closed this as completedin #2161on Sep 26, 2026
  4. cstamas
    added a commit that references this issue on Sep 26, 2026

    fix: propagate fatal errors from Jetty request content (apache#2161)

    ea75240
  5. elharo commented on Sep 26, 2026

    @elharo
    elharo
    on Sep 26, 2026
    ContributorAuthor
    More actions

    The fix is incomplete. The code still catches a raw Exception, which is better than Throwable but not what it likely should be doing (unless some method call in its scope is itself broken and declared to throw a raw Exception). This needs to be scoped to what is expected and handled.

  6. elharo
    reopened this on Sep 26, 2026
  7. cstamas
    added a commit that references this issue on Oct 20, 2026

    fix: catch only expected IO failures (#2207)

    This issue will close once commit bf02fa2 is merged into the 'master' branch.
    bf02fa2
  8. cstamas
    closed this as completedin #2207on Oct 20, 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.