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 109105 - OpenProjectList does not get notification about adding a project if the project is stored in the repository
Summary: OpenProjectList does not get notification about adding a project if the proje...
Status: VERIFIED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-09 10:25 UTC by Alexander Pepin
Modified: 2007-09-06 18:03 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 Alexander Pepin 2007-07-09 10:25:22 UTC
The priority is set to HIGH because the issue prevents performance tests from working.
We using following test scenario in the automatic test:
- clear the repository
- open IDE
- open a project
- wait until the project is fully parsed
- close the project
- attach a new PropertyChangeListener  for PROPERTY_OPEN_PROJECTS property to OpenProjectList
- open the project once again
- wait until the project is added to OpenProjectList
- .....
Result: The PROPERTY_OPEN_PROJECTS property is not changed or we do not receive a notification. The test fails because
of TimeoutExpiredException after 2400000 ms.
Comment 1 Vladimir Kvashin 2007-07-09 21:59:38 UTC
The PROPERTY_OPEN_PROJECTS property is sent by Netbeans infrastructure. It isn't related neither with CND project system
nor with CND code model.

I see the only way how this might be connected with presistence/repository: if there is an uncaught exception in the
processing of this event in model. Are there any exceptions in the correspondent logs? If yes, please provide stacks.

Comment 2 Alexander Pepin 2007-07-10 11:40:31 UTC
Followin exception occurs in the IDE log:
*********** Exception occurred ************ at 2:59 AM on Jul 10, 2007
java.lang.NullPointerException
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.checkForRemoved(ProjectBase.java:677)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onAddedToModelImpl(ProjectBase.java:650)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$2.run(ProjectBase.java:620)
        at org.netbeans.modules.cnd.modelimpl.csm.core.CodeModelRequestProcessor$1.run(CodeModelRequestProcessor.java:57)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 3 Vladimir Kvashin 2007-07-10 17:03:17 UTC
Can't reproduce the situation.
I've added a fixup (try/catch) so for now tests shouldn't be broken.
Any additional information (about how to reproduce the situation) is appreciated.
Comment 4 Alexander Pepin 2007-07-11 17:53:58 UTC
not a bug
some tricky place was in the test code
Comment 5 Alexander Pepin 2007-07-31 13:42:18 UTC
verified