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 160618 - Failed test org.netbeans.junit.NbModuleLogHandler.unknown
Summary: Failed test org.netbeans.junit.NbModuleLogHandler.unknown
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: TEST
Depends on: 160825
Blocks:
  Show dependency tree
 
Reported: 2009-03-19 10:19 UTC by Vladimir Voskresensky
Modified: 2009-03-24 23:35 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Someone please apply following patch, so the nightmare is over (834 bytes, patch)
2009-03-19 13:31 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2009-03-19 10:19:42 UTC
Hi,
There is a not stable test which randomly fails in team repositories, but is unrelated to this team repository activity.
junit.framework.AssertionFailedError: There shall have been no warnings:
[org.openide.util.Exceptions] THREAD: Java Source Worker Thread MSG: null
  org.netbeans.modules.java.source.parsing.SourceFileObject.<init>(SourceFileObject.java:125)
  org.netbeans.modules.java.source.parsing.SourceFileObject.<init>(SourceFileObject.java:118)

It happens in cnd-main and now it happens in main by making repository unstable and preventing push jobs. See details:
http://deadlock.netbeans.org/hudson/job/trunk/5320/testReport/org.netbeans.junit/NbModuleLogHandler/unknown/
Comment 1 Vitezslav Stejskal 2009-03-19 10:38:15 UTC
Well, I attempted to fix it by http://hg.netbeans.org/jet-main/rev/d1f97dcec7ca, but the fix doesn't seem to work. I'll
try several other things, but since this can't be reliably reproduced I can't make any promises.
Comment 3 Vladimir Voskresensky 2009-03-19 11:04:17 UTC
Hi, Vita,
thanks for looking at it.
Btw, which test should I disable in cnd-main repository to unblock push jobs?
Comment 4 Jaroslav Tulach 2009-03-19 13:31:16 UTC
Created attachment 78451 [details]
Someone please apply following patch, so the nightmare is over
Comment 5 Jesse Glick 2009-03-19 15:08:14 UTC
jtulach's patch is unnecessary; vstejskal is working on an actual fix to not print the exception to begin with.
Instructions for transferring to other repos will be posted when it is ready of course.
Comment 6 Vitezslav Stejskal 2009-03-19 16:06:19 UTC
Here is the hotfix - http://hg.netbeans.org/jet-main/rev/12bf0b8ac833.
Comment 7 Jesse Glick 2009-03-19 16:14:34 UTC
To use from a team repo:

cd team
hg fetch
hg pull -r 12bf0b8ac833 http://hg.netbeans.org/jet-main/
hg merge
hg ci -m 'merged hotfix'
hg out -pv
hg push

I am doing for core-main, cdev. jtulach will do for main, ergonomics. Other team repo owners can do so whenever they like.
Comment 8 Jesse Glick 2009-03-20 14:33:20 UTC
I'm not sure this is fixed. Still seems to be failing randomly, e.g. the following in cdev repo which has your hotfix:

http://bertram.netbeans.org/hudson/job/cdev/408/testReport/org.netbeans.junit.internal/NbModuleLogHandler$FailOnException/testNoWarningsReportedDuringExecution/

java.lang.NullPointerException
	at org.netbeans.modules.java.source.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:294)
	at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$1$1.run(JavaCustomIndexer.java:118)
	at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$1$1.run(JavaCustomIndexer.java:105)
	at org.netbeans.modules.java.source.tasklist.TaskCache.refreshTransaction(TaskCache.java:464)
Caused: java.io.IOException
	at org.netbeans.modules.java.source.tasklist.TaskCache.refreshTransaction(TaskCache.java:468)
	at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$1.run(JavaCustomIndexer.java:105)
	at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$1.run(JavaCustomIndexer.java:103)
	at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:100)
[catch] at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:103)
	at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:141)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:657)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:756)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:698)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:1145)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:1121)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:599)

Note that this is caught in JavaCustomIndexer, a different place I guess.
Comment 9 Quality Engineering 2009-03-21 08:35:34 UTC
Integrated into 'main-golden', will be available in build *200903210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/984a55e35b4c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: Backport of #160618 from jet-main
Comment 10 Vitezslav Stejskal 2009-03-23 12:58:50 UTC
The second exception was fixed in issue #160825.
Comment 11 Quality Engineering 2009-03-24 23:35:31 UTC
Integrated into 'main-golden', will be available in build *200903241535* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/151185db7158
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: Backport of #160618 from jet-main to ergonomics