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 112717

Summary: testWhenScanFinished blocks testing infrastructure
Product: javaee Reporter: pzajac <pzajac>
Component: CodeAssignee: martin_adamek <martin_adamek>
Status: RESOLVED FIXED    
Severity: blocker CC: pchytil, pjiricka, tzezula
Priority: P1 Keywords: TEST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Log with threads dump
Log with threads dump

Description pzajac 2007-08-14 09:00:00 UTC
XTest: Hard timeout 2400000ms occured - trying to kill JVM - Mon Aug 13 23:29:14 CEST 2007

org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelperTest


testWhenScanFinished

OS - Vista.
Comment 1 pzajac 2007-08-14 09:00:43 UTC
Created attachment 46551 [details]
Log with threads dump
Comment 2 pzajac 2007-08-14 09:04:00 UTC
Another one test blocks testing infrastructure:
Test Suite org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsMetadataModelCompatibilityTest

testFutureRethrowsUncheckedExceptionsWhenModelNotReady
Comment 3 pzajac 2007-08-14 09:04:57 UTC
Created attachment 46552 [details]
Log with threads dump
Comment 4 martin_adamek 2007-08-14 09:45:59 UTC
ClassIndexListener.typesAdded() is not fired to countDown the startLatch and test is blocked.
Tomasi, do you have any idea why listener doesn't get those events?
Fastest fix to unblock testing infrastructure is to disable the test or change it to use await() with timeout.
Comment 5 Tomas Zezula 2007-08-14 14:09:17 UTC
The ClassIndex firing doesn't changed in the last 14 days, also the ClassIndexTest (testing firing) is passing.
Comment 6 Tomas Zezula 2007-08-14 16:08:59 UTC
Checking in org/netbeans/modules/java/source/usages/RepositoryUpdater.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v  <--  RepositoryUpdater.java
new revision: 1.76; previous revision: 1.75
done