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 248730 - IllegalArgumentException: number of workunits cannot be negative
Summary: IllegalArgumentException: number of workunits cannot be negative
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Progress (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-18 14:22 UTC by -Silver-
Modified: 2017-10-12 02:53 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211870


Attachments
stacktrace (2.53 KB, text/plain)
2014-11-18 14:22 UTC, -Silver-
Details
stacktrace (2.33 KB, text/plain)
2014-12-10 09:31 UTC, -Silver-
Details
stacktrace (2.53 KB, text/plain)
2015-02-05 15:24 UTC, -Silver-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description -Silver- 2014-11-18 14:22:13 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
GUEST: Debugging

GUEST: Modifying POM, behind corporate firewall, proprietary Nexus node

-Silver-: Under services table -> Naven Repositories 
I right click on a remote repository and selected "'Update Index

GUEST: Building a new Maven project.




Stacktrace: 
java.lang.IllegalArgumentException: number of workunits cannot be negative
   at org.netbeans.modules.progress.spi.InternalHandle.toDeterminate(InternalHandle.java:193)
   at org.netbeans.api.progress.ProgressHandle.switchToDeterminate(ProgressHandle.java:134)
   at org.netbeans.modules.maven.indexer.RemoteIndexTransferListener.transferStarted(RemoteIndexTransferListener.java:105)
   at org.apache.maven.wagon.events.TransferEventSupport.fireTransferStarted(TransferEventSupport.java:104)
   at org.apache.maven.wagon.AbstractWagon.fireGetStarted(AbstractWagon.java:543)
   at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:306)
Comment 1 -Silver- 2014-11-18 14:22:15 UTC
Created attachment 150550 [details]
stacktrace
Comment 2 -Silver- 2014-12-10 09:31:25 UTC
Created attachment 151002 [details]
stacktrace

I was investigating about a possible bug of Netbeans when this exception occurred. I don't know if the problem that I was investigating for is related to this exception or not. In any case I write you a detailed description about it and how to reproduce the exception.

The problem:
When the pom of a maven project has a dependency problem the project structure is not correctly shown int the "Projects" panel. The project folders "source" and "test" are missed and it is not possible to access to the java sources.

Steps to reproduce it:
1. First of all I created a new fresh Netbeans profile (8.0.1).
2. Starting Netbeans it advices that there's the new version (8.0.2). I selected to update it.
3. After the restart it founds other updates. Again I selected to do them.
4. Netbeans restarts again so at this point it should have a fresh 8.0.1 profile updated to the version 8.0.2.
5. I created a new  Maven Java Application
6. I opened the pom and voluntarily put the following fake dependency:
Comment 3 Exceptions Reporter 2014-12-10 09:31:29 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211870
Comment 4 -Silver- 2015-02-05 15:24:21 UTC
Created attachment 151831 [details]
stacktrace

I tryed to update the index of the remote maven repository