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 234781 - AssertionError: Open task already inited.
Summary: AssertionError: Open task already inited.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: 7.4_HR_FIX
: 234793 236503 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-22 11:07 UTC by Alexander Simon
Modified: 2013-09-30 06:19 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203259


Attachments
stacktrace (2.28 KB, text/plain)
2013-08-22 11:07 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-08-22 11:07:20 UTC
Build: NetBeans IDE Dev (Build 20130822-43cce1a04694)
VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: SunOS

User Comments:
alexvsimon: open project




Stacktrace: 
java.lang.AssertionError: Open task already inited.
   at org.openide.text.DocumentOpenClose.initLoadTaskLA(DocumentOpenClose.java:413)
   at org.openide.text.DocumentOpenClose.openTask(DocumentOpenClose.java:287)
   at org.openide.text.CloneableEditorSupport.prepareDocument(CloneableEditorSupport.java:510)
   at org.netbeans.modules.cnd.source.CppEditorSupport.access$001(CppEditorSupport.java:103)
   at org.netbeans.modules.cnd.source.CppEditorSupport$2.run(CppEditorSupport.java:362)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Comment 1 Alexander Simon 2013-08-22 11:07:22 UTC
Created attachment 139055 [details]
stacktrace
Comment 2 David Strupl 2013-08-23 15:01:54 UTC
*** Bug 234793 has been marked as a duplicate of this bug. ***
Comment 3 Jiri Skrivanek 2013-08-27 09:45:25 UTC
Also org.openide.text tests failing regularly (see bug 234793).
Comment 4 Miloslav Metelka 2013-08-28 15:31:19 UTC
I'll fix that.
Comment 5 Miloslav Metelka 2013-09-03 14:21:27 UTC
Is the

java.lang.AssertionError: Open task already inited.

problem reproducible?
 Hopefully just a missing lock. I've improved diagnostics and changed AE to ISE so the problem will no longer happen in this form after the integration.

http://hg.netbeans.org/jet-main/rev/a588201d9479

(In reply to Alexander Simon from comment #0)
> Build: NetBeans IDE Dev (Build 20130822-43cce1a04694)
> VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment,
> 1.7.0_25-b15
> OS: SunOS
> 
> User Comments:
> alexvsimon: open project
> 
> 
> 
> 
> Stacktrace: 
> java.lang.AssertionError: Open task already inited.
>    at
> org.openide.text.DocumentOpenClose.initLoadTaskLA(DocumentOpenClose.java:413)
>    at org.openide.text.DocumentOpenClose.openTask(DocumentOpenClose.java:287)
>    at
> org.openide.text.CloneableEditorSupport.
> prepareDocument(CloneableEditorSupport.java:510)
>    at
> org.netbeans.modules.cnd.source.CppEditorSupport.access$001(CppEditorSupport.
> java:103)
>    at
> org.netbeans.modules.cnd.source.CppEditorSupport$2.run(CppEditorSupport.java:
> 362)
>    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Comment 6 Quality Engineering 2013-09-05 01:29:09 UTC
Integrated into 'main-silver', will be available in build *201309050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a588201d9479
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #234781 - AssertionError: Open task already inited.
Comment 7 Miloslav Metelka 2013-09-05 09:49:32 UTC
I have reproduced the problem. Reopening.
Comment 8 Miloslav Metelka 2013-09-05 10:40:56 UTC
http://hg.netbeans.org/jet-main/rev/d71d957acdd7
Comment 9 Miloslav Metelka 2013-09-05 11:13:55 UTC
I would like to ask QE for verification. Thanks.
Comment 10 Miloslav Metelka 2013-09-05 23:16:37 UTC
*** Bug 235319 has been marked as a duplicate of this bug. ***
Comment 11 Quality Engineering 2013-09-06 01:37:02 UTC
Integrated into 'main-silver', will be available in build *201309060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d71d957acdd7
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #234781 - AssertionError: Open task already inited - additional fix.
Comment 13 Jan Lahoda 2013-09-10 06:30:07 UTC
The fix as such seems OK to me. Looking at the test failures, it seems that the tests are failing for a different reason than the "Open task already inited".
Comment 14 Tomas Zezula 2013-09-11 16:18:44 UTC
a588201d9479 transplanted to 941885decf61
d71d957acdd7 transplanted to 22f09873c613
Comment 15 Jiri Prox 2013-09-30 06:19:44 UTC
*** Bug 236503 has been marked as a duplicate of this bug. ***