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 57876 - NotifyModifiedTest fails on windows
Summary: NotifyModifiedTest fails on windows
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-04-14 09:56 UTC by Jaroslav Tulach
Modified: 2008-12-22 21:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Failure 1 (81.43 KB, text/html)
2005-04-14 09:56 UTC, Jaroslav Tulach
Details
Failure 2 (80.53 KB, text/html)
2005-04-14 09:57 UTC, Jaroslav Tulach
Details
Failure 3 (82.46 KB, text/html)
2005-04-14 09:58 UTC, Jaroslav Tulach
Details
Failure 4 (82.46 KB, text/html)
2005-04-14 09:58 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-04-14 09:56:15 UTC
The failure is random, but always the same: 
 
testUndoDoesMarkFileAsDirtyIssue56963 
    Document is Modified expected:<true> but was:<false> 
 
testUndoDoesMarkFileAsDirtyIssue56963 
    Document is Modified expected:<true> but was:<false> 
 
testUndoDoesMarkFileAsDirtyIssue56963 
    Document is Modified expected:<true> but was:<false>  
 
testUndoDoesMarkFileAsDirtyIssue56963 
    Document is Modified expected:<true> but was:<false>
Comment 1 Jaroslav Tulach 2005-04-14 09:56:47 UTC
Created attachment 21638 [details]
Failure 1
Comment 2 Jaroslav Tulach 2005-04-14 09:57:07 UTC
Created attachment 21639 [details]
Failure 2
Comment 3 Jaroslav Tulach 2005-04-14 09:58:14 UTC
Created attachment 21640 [details]
Failure 3
Comment 4 Jaroslav Tulach 2005-04-14 09:58:35 UTC
Created attachment 21641 [details]
Failure 4
Comment 5 Jaroslav Tulach 2005-06-01 12:26:04 UTC
      junit.framework.AssertionFailedError: But one more unmodified 
expected:<2> but was:<1> 
[org.openide.util.RequestProcessor] - Begining work Default RequestProcessor 
[org.openide.util.RequestProcessor] -   Executing RequestProcessor.Task 
[Default RequestProcessor, 1] for task 
org.openide.text.CloneableEditorSupport$2@f01a1e 
[org.openide.util.RequestProcessor] -   Execution finished inDefault 
RequestProcessor 
[org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor 
thread [Was:Default 
RequestProcessor/org.openide.text.CloneableEditorSupport$2] 
[org.openide.text.CloneableEditorSupport] - java.lang.Exception: Setting to 
modified: true 
        at 
org.openide.text.CloneableEditorSupport.setAlreadyModified(CloneableEditorSupport.java:2066) 
        at 
org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1432) 
        at 
org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) 
        at 
org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) 
        at 
org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:142) 
        at 
org.openide.text.NbLikeEditorKit$Doc.remove(NbLikeEditorKit.java:102) 
        at 
org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104
(NotifyModifiedTest.java:548) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:324) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) 
 
[] - java.lang.Exception: notifyModified: 1 
        at 
org.openide.text.NotifyModifiedTest$CES.notifyModified(NotifyModifiedTest.java:705) 
        at 
org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1434) 
        at 
org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) 
        at 
org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) 
        at 
org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:142) 
        at 
org.openide.text.NbLikeEditorKit$Doc.remove(NbLikeEditorKit.java:102) 
        at 
org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104
(NotifyModifiedTest.java:548) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:324) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) 
 
[org.openide.util.RequestProcessor] - Begining work Test 
[org.openide.util.RequestProcessor] -   Executing RequestProcessor.Task [Test, 
1] for task org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X@142a80d 
[org.openide.util.RequestProcessor] -   Execution finished inTest 
[org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor 
thread [Was:Test/org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X] 
[org.openide.text.CloneableEditorSupport] - java.lang.Exception: Setting to 
modified: false 
        at 
org.openide.text.CloneableEditorSupport.setAlreadyModified(CloneableEditorSupport.java:2066) 
        at 
org.openide.text.CloneableEditorSupport.callNotifyUnmodified(CloneableEditorSupport.java:1448) 
        at 
org.openide.text.CloneableEditorSupport$1SaveAsReader.after(CloneableEditorSupport.java:800) 
        at 
org.openide.text.CloneableEditorSupport.saveDocument(CloneableEditorSupport.java:811) 
        at 
org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104
(NotifyModifiedTest.java:553) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:324) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) 
 
[] - java.lang.Exception: notifyUnmodified: 1 
        at 
org.openide.text.NotifyModifiedTest$CES.notifyUnmodified(NotifyModifiedTest.java:693) 
        at 
org.openide.text.CloneableEditorSupport.callNotifyUnmodified(CloneableEditorSupport.java:1449) 
        at 
org.openide.text.CloneableEditorSupport$1SaveAsReader.after(CloneableEditorSupport.java:800) 
        at 
org.openide.text.CloneableEditorSupport.saveDocument(CloneableEditorSupport.java:811) 
        at 
org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104
(NotifyModifiedTest.java:553) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:324) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) 
 
[org.openide.util.RequestProcessor] - Begining work Test 
[org.openide.util.RequestProcessor] -   Executing RequestProcessor.Task [Test, 
1] for task org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X@126f75b 
[org.openide.util.RequestProcessor] -   Execution finished inTest 
[org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor 
thread [Was:Test/org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X] 
[org.openide.text.CloneableEditorSupport] - discardAllEdits 
[org.openide.text.CloneableEditorSupport] - undoableEditHappened 
[org.openide.text.CloneableEditorSupport] - check already modified 
[org.openide.text.CloneableEditorSupport] - addUndoableEditListener 
[org.openide.text.CloneableEditorSupport] - java.lang.Exception: Setting to 
modified: true 
        at 
org.openide.text.CloneableEditorSupport.setAlreadyModified(CloneableEditorSupport.java:2066) 
        at 
org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1432) 
        at 
org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) 
        at 
org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) 
        at 
org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:135) 
        at 
org.openide.text.NbLikeEditorKit$Doc.runAtomicAsUser(NbLikeEditorKit.java:53) 
        at 
org.openide.text.NbLikeEditorKit$Doc.runAtomic(NbLikeEditorKit.java:46) 
        at 
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2651) 
        at 
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2643) 
        at 
org.openide.text.CloneableEditorSupport$CESUndoRedoManager.undo(CloneableEditorSupport.java:2562) 
        at 
org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104
(NotifyModifiedTest.java:561) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:324) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) 
 
[] - java.lang.Exception: notifyModified: 2 
        at 
org.openide.text.NotifyModifiedTest$CES.notifyModified(NotifyModifiedTest.java:705) 
        at 
org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1434) 
        at 
org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) 
        at 
org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) 
        at 
org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:135) 
        at 
org.openide.text.NbLikeEditorKit$Doc.runAtomicAsUser(NbLikeEditorKit.java:53) 
        at 
org.openide.text.NbLikeEditorKit$Doc.runAtomic(NbLikeEditorKit.java:46) 
        at 
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2651) 
        at 
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2643) 
        at 
org.openide.text.CloneableEditorSupport$CESUndoRedoManager.undo(CloneableEditorSupport.java:2562) 
        at 
org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104
(NotifyModifiedTest.java:561) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:324) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) 
 
[org.openide.util.RequestProcessor] - Begining work Test 
[org.openide.util.RequestProcessor] -   Executing RequestProcessor.Task [Test, 
1] for task org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X@139b78e 
[org.openide.util.RequestProcessor] -   Execution finished inTest 
[org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor 
thread [Was:Test/org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X] 
[org.openide.text.CloneableEditorSupport] - reloadDocument in 
Thread[AWT-EventQueue-0,6,main] 
[org.openide.text.CloneableEditorSupport] - clearDocument 
[org.openide.text.CloneableEditorSupport] - new prepare task: task 
org.openide.text.CloneableEditorSupport$Listener@d6a05e 
[org.openide.text.CloneableEditorSupport] - prepareTask finished 
[org.openide.text.CloneableEditorSupport] - post-reload task posting to AWT 
 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:77) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) 
Caused by: junit.framework.AssertionFailedError: But one more unmodified 
expected:<2> but was:<1> 
        at junit.framework.Assert.fail(Assert.java:47) 
        at junit.framework.Assert.failNotEquals(Assert.java:282) 
        at junit.framework.Assert.assertEquals(Assert.java:64) 
        at junit.framework.Assert.assertEquals(Assert.java:201) 
        at 
org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104
(NotifyModifiedTest.java:589) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:324) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at 
org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) 
        ... 11 more 
Comment 6 Jaroslav Tulach 2005-07-07 15:53:23 UTC
Checking in text/src/org/openide/text/CloneableEditorSupport.java; 
/cvs/openide/text/src/org/openide/text/CloneableEditorSupport.java,v  <--  
CloneableEditorSupport.java 
new revision: 1.4; previous revision: 1.3 
done 
Checking in text/test/unit/src/org/openide/text/NotifyModifiedTest.java; 
/cvs/openide/text/test/unit/src/org/openide/text/NotifyModifiedTest.java,v  
<--  NotifyModifiedTest.java 
new revision: 1.2; previous revision: 1.1 
 
Comment 7 Jaromir Uhrik 2005-07-14 16:17:55 UTC
Verified.
Comment 8 Jaroslav Tulach 2005-07-15 14:28:31 UTC
Not so quickly, still fails, check beetle/unittests/ 
Comment 9 Jaroslav Tulach 2005-09-21 04:56:25 UTC
Date: 2005/09/21 04:53:28 
Author: jtulach 
Log: 
#57876: sleeping a while after each save, because internally we using 
currentTimeMillis and without the sleep it is sometimes the same on windows before 
and after save. 
 
Members: 
        NotifyModifiedTest.java:1.2->1.3 
 
Comment 10 Jaromir Uhrik 2006-01-16 15:42:34 UTC
Marking this issue as VERIFIED since the issue reporter == issue owner.