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 81793 - *Code Model* exceptions when opening project
Summary: *Code Model* exceptions when opening project
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 11:46 UTC by Vladimir Kvashin
Modified: 2006-09-21 14:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2006-08-03 11:46:34 UTC
This happened several times on multiprocessor Sparks. It's hard to tell whether
it's connected with multiple processor presence or not.

Warning: Cannot process more work than scheduled. Progress handle with name
"Parsing clucene ..." has requested progress to workunit no.1 but the total
number of workunits is 0. That means the progress bar UI will not display real
progress and will stay at 100%.

java.lang.IllegalArgumentException
        at
org.netbeans.progress.module.InternalHandle.progress(InternalHandle.java:224)
        at
org.netbeans.api.progress.ProgressHandle.progress(ProgressHandle.java:131)
        at
org.netbeans.modules.cnd.modelimpl.platform.ParsingProgress.nextCsmFile(ParsingProgress.java:105)
        at
org.netbeans.modules.cnd.modelimpl.platform.ProgressListenerImpl.fileParsingStarted(ProgressListenerImpl.java:65)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.fireFileParsingStarted(ParserQueue.java:385)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.poll(ParserQueue.java:263)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:34)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:50)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Vladimir Kvashin 2006-08-03 11:48:16 UTC
I've got this in a single parser thread situation.
Comment 2 julieg 2006-09-20 17:51:37 UTC
It is reproducable when more then 1 thread is created. 
If set up -J-Dcnd.modelimpl.parser.threads=1  exception disappeared.

This bug blcoks QA's functinal testing on any muti-cpu machine.
Comment 3 Alexander Simon 2006-09-21 14:58:33 UTC
-work around redundant progress incrementation
-synchronize progress access

CVS log:

Checking in ParsingProgress.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/platform/ParsingProgress.java,v
 <--  ParsingProgress.java
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in ParserQueue.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ParserQueue.java,v
 <--  ParserQueue.java
new revision: 1.2.2.6; previous revision: 1.2.2.5
done