This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197261 - [70cat] ThreadDeath at ProgressTransferListener.checkCancel -> ISE in Aether
Summary: [70cat] ThreadDeath at ProgressTransferListener.checkCancel -> ISE in Aether
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL: https://issues.sonatype.org/browse/AE...
Keywords:
Depends on: 197624
Blocks: 189318 213812
  Show dependency tree
 
Reported: 2011-03-31 07:01 UTC by rohitbrai
Modified: 2012-06-08 12:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178056


Attachments
stacktrace (5.09 KB, text/plain)
2011-03-31 07:01 UTC, rohitbrai
Details
stacktrace (2.68 KB, text/plain)
2011-04-01 13:39 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rohitbrai 2011-03-31 07:01:21 UTC
Build: NetBeans IDE Dev (Build 201103060000)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows 7

Stacktrace: 
java.lang.ThreadDeath
   at org.netbeans.modules.maven.embedder.exec.ProgressTransferListener.checkCancel(ProgressTransferListener.java:111)
   at org.netbeans.modules.maven.embedder.exec.ProgressTransferListener.transferProgressed(ProgressTransferListener.java:174)
   at org.sonatype.aether.connector.wagon.WagonTransferListenerAdapter.transferProgress(WagonTransferListenerAdapter.java:70)
   at org.apache.maven.wagon.events.TransferEventSupport.fireTransferProgress(TransferEventSupport.java:124)
   at org.apache.maven.wagon.AbstractWagon.fireTransferProgress(AbstractWagon.java:505)
   at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:490)
Comment 1 rohitbrai 2011-03-31 07:01:25 UTC
Created attachment 107398 [details]
stacktrace
Comment 2 Jesse Glick 2011-04-01 13:39:25 UTC
Created attachment 107430 [details]
stacktrace

Canceled "Downloading Maven dependencies".
Comment 3 Jesse Glick 2011-04-05 22:25:05 UTC
The problem is that NB uses ThreadDeath as a signal that the download should terminate. If this happened in the calling thread, NB would quietly continue. But Aether uses a thread pool for downloads to increase I/O concurrency, and is not prepared to gracefully handle threads being killed.
Comment 4 Jesse Glick 2011-04-05 22:56:02 UTC
Filed an upstream bug.
Comment 5 Jesse Glick 2011-04-05 23:05:28 UTC
core-main #b67962bbba2e
Comment 6 Quality Engineering 2011-04-07 08:44:36 UTC
Integrated into 'main-golden', will be available in build *201104070400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b67962bbba2e
User: Jesse Glick <jglick@netbeans.org>
Log: #197261: [70cat] ThreadDeath at ProgressTransferListener.checkCancel -> ISE in Aether