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 270976

Summary: NetBeans duplicates root logical folders in DDD project + a lot of noisy exceptions
Product: cnd Reporter: soldatov <soldatov>
Component: -- Other --Assignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: Dev   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2017-06-27 10:29:19 UTC
Test build: NetBeans IDE Dev (Build cnd-trunk-build-3758-on-20170627)

In cloud on Solaris 11 Sparc I can't investigate DDD project, because I see "broken" project very often.

Scenario:
- Launch NetBeans
- Open existing DDD project
==> In 50% cases in Projects tab I see:

+ddd-3.3.12
+- ddd-3.3.12 - /var/cache/...../ddd-3.3.12
+- ddd-3.3.12 - /var/cache/...../ddd-3.3.12
+- Important Files
+- Important Files

Also I see a lot of noisy exceptions:
org.openide.util.WeakListenerImpl$ProxyListener[null[interface org.openide.filesystems.FileChangeListener]
java.lang.AssertionError: Resource temporarily unavailable
        at sun.nio.fs.AbstractPoller.cancel(AbstractPoller.java:136)
        at sun.nio.fs.SolarisWatchService$SolarisWatchKey.cancel(SolarisWatchService.java:193)
        at org.netbeans.modules.masterfs.watcher.nio2.NioNotifier.removeWatch(NioNotifier.java:85)
        at org.netbeans.modules.masterfs.watcher.nio2.NioNotifier.removeWatch(NioNotifier.java:63)
        at org.netbeans.modules.masterfs.providers.Notifier$1.removeWatch(Notifier.java:118)
        at org.netbeans.modules.masterfs.watcher.NotifierKeyRef.removeWatch(NotifierKeyRef.java:96)
        at org.netbeans.modules.masterfs.watcher.Watcher$Ext.unregister(Watcher.java:320)
        at org.netbeans.modules.masterfs.watcher.Watcher.unregister(Watcher.java:134)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.removeFileChangeListener(BaseFileObj.java:564)
Caused: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
[catch] at org.openide.util.WeakListenerImpl$ListenerReference.run(WeakListenerImpl.java:644)
        at org.openide.util.lookup.implspi.ActiveQueue$Daemon.run(ActiveQueue.java:139)
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.cnd.makeproject.ui.BaseMakeViewChildren$$Lambda$65/506936758
java.lang.AssertionError: Resource temporarily unavailable
        at sun.nio.fs.AbstractPoller.cancel(AbstractPoller.java:136)
        at sun.nio.fs.SolarisWatchService$SolarisWatchKey.cancel(SolarisWatchService.java:193)
        at org.netbeans.modules.masterfs.watcher.nio2.NioNotifier.removeWatch(NioNotifier.java:85)
        at org.netbeans.modules.masterfs.watcher.nio2.NioNotifier.removeWatch(NioNotifier.java:63)
        at org.netbeans.modules.masterfs.providers.Notifier$1.removeWatch(Notifier.java:118)
        at org.netbeans.modules.masterfs.watcher.NotifierKeyRef.removeWatch(NotifierKeyRef.java:96)
        at org.netbeans.modules.masterfs.watcher.Watcher$Ext.clearQueue(Watcher.java:336)
        at org.netbeans.modules.masterfs.watcher.Watcher$Ext.register(Watcher.java:235)
        at org.netbeans.modules.masterfs.watcher.Watcher.register(Watcher.java:120)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.addFileChangeListener(BaseFileObj.java:557)
        at org.netbeans.modules.versioning.core.api.VCSFileProxy$2.run(VCSFileProxy.java:202)
        at org.netbeans.modules.versioning.core.api.VCSFileProxy.createFileProxy(VCSFileProxy.java:208)
        at org.netbeans.modules.versioning.core.VcsVisibilityQueryImplementation.isVisible(VcsVisibilityQueryImplementation.java:158)
        at org.netbeans.api.queries.VisibilityQuery.isVisible(VisibilityQuery.java:104)
        at org.netbeans.modules.cnd.makeproject.ui.LogicalViewChildren.getKeys(LogicalViewChildren.java:186)
        at org.netbeans.modules.cnd.makeproject.ui.BaseMakeViewChildren.lambda$getAddNotifyRunnable$1(BaseMakeViewChildren.java:130)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
        at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:431)
        at org.netbeans.modules.cnd.makeproject.ui.BaseMakeViewChildren.addNotify(BaseMakeViewChildren.java:103)
        at org.netbeans.modules.cnd.makeproject.ui.BaseMakeViewChildren.lambda$addNotify$0(BaseMakeViewChildren.java:106)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 1 soldatov 2017-07-05 12:13:30 UTC
I think this command resolves problem with "Resource temporarily unavailable" exception:
prctl -n process.max-port-events -r -v 300K <pid>