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 46345 - a deadlock in javasrc automated tests
Summary: a deadlock in javasrc automated tests
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-20 15:56 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
tests log (79.06 KB, text/plain)
2004-07-20 15:57 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-07-20 15:56:53 UTC
it is java/test/qa-functional automated tests
Comment 1 ehucka 2004-07-20 15:57:42 UTC
Created attachment 16342 [details]
tests log
Comment 2 Jan Becicka 2004-07-22 07:46:13 UTC
There are several NPEs before the deadlock.
Test caused this deadlock is
org.netbeans.test.java.sourceexception.ClassChanged.ClassChanged

NPE:
 java.lang.NullPointerException
[ideTestRunner] 	at
org.netbeans.modules.java.codesync.ModelEventAdapter.checkType(ModelEventAdapter.java:449)
[ideTestRunner] 	at
org.netbeans.modules.java.codesync.ModelEventAdapter.checkIsMature(ModelEventAdapter.java:556)
[ideTestRunner] 	at
org.netbeans.modules.java.codesync.ModelEventAdapter.isMature(ModelEventAdapter.java:466)
[ideTestRunner] 	at
org.netbeans.modules.java.codesync.ModelEventAdapter$Cache.isMature(ModelEventAdapter.java:424)
[ideTestRunner] 	at
org.netbeans.modules.java.codesync.ChangeCache.elementsChanged(ChangeCache.java:44)
[ideTestRunner] 	at
org.netbeans.modules.java.codesync.ModelEventAdapter.createChange(ModelEventAdapter.java:308)
[ideTestRunner] 	at
org.netbeans.modules.java.codesync.ModelEventAdapter.changesCommited(ModelEventAdapter.java:267)
[ideTestRunner] 	at
org.netbeans.modules.java.bridge.DefaultLangModel.doFire(DefaultLangModel.java:789)

It looks like a bridge issue. Dane, can you take a look at it?
Comment 3 Daniel Prusa 2004-07-22 16:50:49 UTC
I have fixed the NPE, but I am not sure if it was the cause of the
deadlock - I was not able to reproduce the deadlock with the fix,
neighter without it.

/cvs/java/src/org/netbeans/modules/java/bridge/FieldElementImpl.java,v
 <--  FieldElementImpl.java
new revision: 1.6; previous revision: 1.5
Comment 4 Daniel Prusa 2004-07-23 09:55:35 UTC
Fixed.
/cvs/java/src/org/netbeans/modules/java/bridge/DefaultLangModel.java,v
 <--  DefaultLangModel.java
new revision: 1.5; previous revision: 1.4
Comment 5 ehucka 2004-08-17 16:23:12 UTC
i haven't seen it again