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 223093 - ValidateLayerMenuTest.testContentCorrect: KillAction.shadow] does not provide correct instance
Summary: ValidateLayerMenuTest.testContentCorrect: KillAction.shadow] does not provide...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: RANDOM, TEST
: 223250 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-01 07:00 UTC by Jaroslav Tulach
Modified: 2012-12-18 03:02 UTC (History)
2 users (show)

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 Jaroslav Tulach 2012-12-01 07:00:12 UTC
There seems to be a random problem in commit validation tests. I see it once from about four runs:


org.netbeans.core.windows.awt.ValidateLayerMenuTest.testContentCorrect

Failing for the past 1 build (Since #3943 )
Took 3.5 sec.
add description
Error Message

Some files do not provide valid menu elements[     File MultiFileObject@75430472[Menu/RunProject/org-netbeans-modules-debugger-ui-actions-KillAction.shadow] does not provide correct instance: null url: nbfs://nbhost/SystemFileSystem/Menu/RunProject/org-netbeans-modules-debugger-ui-actions-KillAction.shadow]
Stacktrace

junit.framework.AssertionFailedError: Some files do not provide valid menu elements[
    File MultiFileObject@75430472[Menu/RunProject/org-netbeans-modules-debugger-ui-actions-KillAction.shadow] does not provide correct instance: null url: nbfs://nbhost/SystemFileSystem/Menu/RunProject/org-netbeans-modules-debugger-ui-actions-KillAction.shadow]
	at org.netbeans.core.windows.awt.ValidateLayerMenuTest.testContentCorrect(ValidateLayerMenuTest.java:130)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:97)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:431)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:357)
	at java.lang.Thread.run(Thread.java:662)

Last occurence was in 
http://deadlock.netbeans.org/hudson/job/ergonomics/3943/testReport/org.netbeans.core.windows.awt/ValidateLayerMenuTest/testContentCorrect/
Comment 1 Martin Entlicher 2012-12-01 08:19:32 UTC
I was not able to reproduce it yet, according to investigations so far it looks like org.netbeans.modules.php.dbgp.breakpoints.BreakpointActionProvider does not get created and thus the lookup contains null instead of it's instance, resulting in a NPE:

java.lang.NullPointerException
	at org.netbeans.api.debugger.ActionsManager.registerActionsProviders(ActionsManager.java:490)
	at org.netbeans.api.debugger.ActionsManager.initActionImpls(ActionsManager.java:517)
	at org.netbeans.api.debugger.ActionsManager.isEnabled(ActionsManager.java:275)
...
Comment 2 Martin Entlicher 2012-12-02 19:58:59 UTC
I hope this is fixed by changeset:   241805:1a654f267718
http://hg.netbeans.org/core-main/rev/1a654f267718
Comment 3 Quality Engineering 2012-12-04 03:15:06 UTC
Integrated into 'main-golden', will be available in build *201212040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1a654f267718
User: mentlicher@netbeans.org
Log: #223093: The registration is changed to annotation. This might solve the test random issue.
Comment 4 Martin Entlicher 2012-12-04 13:56:03 UTC
*** Bug 223250 has been marked as a duplicate of this bug. ***
Comment 6 Martin Entlicher 2012-12-17 14:06:31 UTC
It's more rare than before, but some problem is still there...
Comment 7 Martin Entlicher 2012-12-17 18:15:25 UTC
It should be fixed by changeset:   243150:565c9ba06532
http://hg.netbeans.org/core-main/rev/565c9ba06532
I was not able to reproduce the problem though.
Comment 8 Quality Engineering 2012-12-18 03:02:40 UTC
Integrated into 'main-golden', will be available in build *201212180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/565c9ba06532
User: mentlicher@netbeans.org
Log: #223093: Prevent from NPE when there is a null action provider in the lookup list. Also log a problem with creating a service from the lookup.