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 239617 - AssertionError: Resource temporarily unavailable
Summary: AssertionError: Resource temporarily unavailable
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 16:01 UTC by Alexander Simon
Modified: 2013-12-19 16:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206113


Attachments
stacktrace (1.30 KB, text/plain)
2013-12-18 16:01 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-12-18 16:01:23 UTC
Build: NetBeans IDE 7.4 (Build 20131204-d7efa1bcda5e)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: SunOS

User Comments:
alexvsimon: cancel go to symbol




Stacktrace: 
java.lang.AssertionError: Resource temporarily unavailable
   at sun.nio.fs.AbstractPoller.cancel(AbstractPoller.java:139)
   at sun.nio.fs.SolarisWatchService$SolarisWatchKey.cancel(SolarisWatchService.java:189)
   at org.netbeans.modules.masterfs.watcher.solaris.NioNotifier.removeWatch(NioNotifier.java:85)
   at org.netbeans.modules.masterfs.watcher.solaris.NioNotifier.removeWatch(NioNotifier.java:63)
   at org.netbeans.modules.masterfs.providers.Notifier$1.removeWatch(Notifier.java:115)
   at org.netbeans.modules.masterfs.watcher.NotifierKeyRef.removeWatch(NotifierKeyRef.java:96)
Comment 1 Alexander Simon 2013-12-18 16:01:24 UTC
Created attachment 143309 [details]
stacktrace
Comment 2 Alexander Simon 2013-12-18 16:12:32 UTC
P2 because repeated exception reports block all IDE actions and I had a data lost.
Comment 3 Jaroslav Havlin 2013-12-18 16:17:29 UTC
Please see bug 232926 comment 3.

*** This bug has been marked as a duplicate of bug 232926 ***
Comment 4 Alexander Simon 2013-12-18 17:26:49 UTC
(In reply to Jaroslav Havlin from comment #3)
> Please see bug 232926 comment 3.
> 
> *** This bug has been marked as a duplicate of bug 232926 ***

Please, fix P2 problem: "data lost".
It is simple:
- show 1 (or 2) exception reports in UI
- next 10 reports print in console
- ignore rest reports
Comment 5 Jaroslav Havlin 2013-12-19 09:39:06 UTC
(In reply to Alexander Simon from comment #4)
> Please, fix P2 problem: "data lost".
What data loss do you mean?

The problem is that any workaround requires catching of the assertion, which isn't a good practice in general.

The assertion can be disabled with a command line option, would it be sufficient?
-J-da:sun.nio.fs.AbstractPoller
Comment 6 Jaroslav Havlin 2013-12-19 09:45:30 UTC
> show 1 (or 2) exception reports in UI
Do you mean the "Cannot add filesystem watch for ..." warning for the IOException?
Comment 7 Alexander Simon 2013-12-19 10:23:16 UTC
(In reply to Jaroslav Havlin from comment #6)
> > show 1 (or 2) exception reports in UI
> Do you mean the "Cannot add filesystem watch for ..." warning for the
> IOException?
Yes
Comment 8 Alexander Simon 2013-12-19 10:24:09 UTC
(In reply to Jaroslav Havlin from comment #5)
> (In reply to Alexander Simon from comment #4)
> > Please, fix P2 problem: "data lost".
> What data loss do you mean?
It mean that I lost changes in 2 unsaved files.
Comment 9 Jaroslav Havlin 2013-12-19 10:28:27 UTC
(In reply to Alexander Simon from comment #7)
> > Do you mean the "Cannot add filesystem watch for ..." warning for the
> > IOException?
> Yes
OK, I think I can fix it as you suggest.
Comment 10 Jaroslav Havlin 2013-12-19 16:19:44 UTC
http://hg.netbeans.org/core-main/rev/8d5c920e36b6
Fixed. Please verify.
Thanks for reporting.