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 217886 - LibraryDeclarationParser parses while it writes
Summary: LibraryDeclarationParser parses while it writes
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-05 12:08 UTC by Sergey Petrov
Modified: 2015-03-27 03:23 UTC (History)
34 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192137


Attachments
stacktrace (9.56 KB, text/plain)
2012-09-05 12:08 UTC, Sergey Petrov
Details
stacktrace (3.85 KB, text/plain)
2014-02-04 02:55 UTC, MackSix
Details
stacktrace (1.89 KB, text/plain)
2014-02-04 16:58 UTC, Jiri Prox
Details
stacktrace (3.85 KB, text/plain)
2014-02-16 17:43 UTC, ytn01
Details
stacktrace (3.86 KB, text/plain)
2014-04-04 22:07 UTC, MackSix
Details
stacktrace (3.86 KB, text/plain)
2014-05-15 06:54 UTC, athompson
Details
stacktrace (1.87 KB, text/plain)
2014-05-20 07:21 UTC, williambacchi
Details
stacktrace (1.88 KB, text/plain)
2014-06-07 14:40 UTC, thruminds
Details
stacktrace (1.88 KB, text/plain)
2014-07-14 00:34 UTC, MackSix
Details
stacktrace (3.79 KB, text/plain)
2014-08-28 13:20 UTC, Alexandr Scherbatiy
Details
stacktrace (1.88 KB, text/plain)
2014-11-21 06:39 UTC, vgrigory
Details
stacktrace (1.88 KB, text/plain)
2014-12-28 09:47 UTC, thruminds
Details
stacktrace (3.94 KB, text/plain)
2015-02-19 10:42 UTC, Martin Entlicher
Details
stacktrace (3.94 KB, text/plain)
2015-02-19 18:45 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2012-09-05 12:08:38 UTC
Build: NetBeans IDE Dev (Build 20120905-e7b1cf8674c3)
VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05
OS: Windows 7

User Comments:
sj-nb: open web project
(server is starting at the same time)




Stacktrace: 
java.lang.Exception
   at org.openide.filesystems.StreamPool$NotifyOutputStream.<init>(StreamPool.java:368)
   at org.openide.filesystems.StreamPool.createOutputStream(StreamPool.java:134)
   at org.openide.filesystems.AbstractFileObject.getOutputStream(AbstractFileObject.java:244)
   at org.openide.filesystems.AbstractFileObject.getOutputStream(AbstractFileObject.java:226)
   at org.openide.filesystems.MultiFileObject.getOutputStream(MultiFileObject.java:685)
   at org.openide.filesystems.MultiFileObject.getOutputStream(MultiFileObject.java:685)
Comment 1 Sergey Petrov 2012-09-05 12:08:40 UTC
Created attachment 123947 [details]
stacktrace
Comment 2 Jaroslav Tulach 2012-09-07 10:11:58 UTC
project.libraries.LibraryDeclarationParser writes to a file which libraries.LibraryDeclarationParser tries to parse. Probably you want some mutual exclusion or at least repeat the action.

I am sort of surprised this happened as there is 2s timeout in filesystems when the read should wait before the write is over. Maybe this is a forgotten unclosed stream?
Comment 3 MackSix 2014-02-04 02:55:16 UTC
Created attachment 144753 [details]
stacktrace

1. Activated C/C++
2. Go to Options->C/C++->Build Tools and typed a letter after a tool path and Apply buttone was activated.
3. Removed letter and expected Apply button to deactivate. It didn't deactivate.
4. Clicked on Project Options tab and then clicked the Apply button and this exception happened.
Comment 4 Exceptions Reporter 2014-02-04 15:43:16 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192137
Comment 5 Jiri Prox 2014-02-04 16:58:16 UTC
Created attachment 144792 [details]
stacktrace

Restoring color profile

steps to reproduce:
1) open options dialog
2) change color for Indentation guideline (in Fonts&Colors -> Highlighting)
3) press Apply
4) press Restor on color profile
Comment 6 ytn01 2014-02-16 17:43:29 UTC
Created attachment 145257 [details]
stacktrace

Opened IDE preferences, Editor, Hints,
Navigated to the "Create Javadoc" node,
Changed scope from protected to public, hit apply button
Switched to "Error in Javadoc" node immediately,
Changed scope from protected to public

exception was raised.
Comment 7 Exceptions Reporter 2014-02-20 04:52:31 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192137
Comment 8 MackSix 2014-04-04 22:07:30 UTC
Created attachment 146562 [details]
stacktrace

1. Installed NetBeans.
2. Rand NetBeans, shut down, Ran again.
3. Went to Java->Manven and checked box "Skip Tests for any build executions..."
4. Clicked Apply.
5. Unchecked box in step 3.
6. Clicked Apply again and this happened.
Comment 9 athompson 2014-05-15 06:54:52 UTC
Created attachment 147270 [details]
stacktrace

changed code folding display options and hit "apply"
Comment 10 williambacchi 2014-05-20 07:21:29 UTC
Created attachment 147342 [details]
stacktrace

Browsing options
Comment 11 thruminds 2014-06-07 14:40:38 UTC
Created attachment 147603 [details]
stacktrace

navigating between options window tabs
Comment 12 MackSix 2014-07-14 00:34:19 UTC
Created attachment 148018 [details]
stacktrace

1. Deleted userdir & cachedir
2. Restarted NetBeans.
3. Went to Tools>>Options>>Editor>>General and unchecked and Options and clicked Apply Button. 
4. Rechecked Options and clicked Apply Button.

I am not sure at what point the exception happened.
Comment 13 Alexandr Scherbatiy 2014-08-28 13:20:02 UTC
Created attachment 148938 [details]
stacktrace

Edit File on Save options
Comment 14 vgrigory 2014-11-21 06:39:59 UTC
Created attachment 150602 [details]
stacktrace

???
Comment 15 thruminds 2014-12-28 09:47:48 UTC
Created attachment 151296 [details]
stacktrace

Changing settings of code folding
Comment 16 Marian Mirilovic 2015-02-04 10:22:35 UTC
139 duplicates -> P2
Comment 17 Martin Entlicher 2015-02-19 10:42:43 UTC
Created attachment 152082 [details]
stacktrace

Closed modified global options.
Comment 18 misterm 2015-02-19 18:45:43 UTC
Created attachment 152100 [details]
stacktrace

.
Comment 19 Tomas Zezula 2015-03-26 12:06:36 UTC
A 95% of reports are wrong duplicates.
I've split the report to correct modules.
The only reports to the project/libraries are related to glassfish.
Comment 20 Tomas Zezula 2015-03-26 14:04:43 UTC
Fixed jet-main d90e3a106c3b
Comment 21 Quality Engineering 2015-03-27 03:23:20 UTC
Integrated into 'main-silver', will be available in build *201503270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d90e3a106c3b
User: Tomas Zezula <tzezula@netbeans.org>
Log: #217886:LibraryDeclarationParser parses while it writes