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 234715 - java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensureOpen
Summary: java.nio.channels.ClosedChannelException at sun.nio.ch.FileChannelImpl.ensure...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 235165 235600 236093 236096 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-21 11:46 UTC by Stepan Zebra
Modified: 2013-11-21 09:32 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203227


Attachments
stacktrace (3.78 KB, text/plain)
2013-08-21 11:46 UTC, Stepan Zebra
Details
stacktrace (3.23 KB, text/plain)
2013-09-10 19:38 UTC, ionuion
Details
stacktrace (3.78 KB, text/plain)
2013-09-17 13:30 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stepan Zebra 2013-08-21 11:46:20 UTC
Build: NetBeans IDE Dev (Build 201308172300)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b55, Java(TM) SE Runtime Environment, 1.7.0_40-b39
OS: Mac OS X

User Comments:
stezeb: starting Maven Web Application on WebLogic server




Stacktrace: 
java.nio.channels.ClosedChannelException
   at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:99)
   at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:678)
   at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:162)
   at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:270)
   at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:40)
   at org.apache.lucene.store.DataInput.readVInt(DataInput.java:107)
Comment 1 Stepan Zebra 2013-08-21 11:46:22 UTC
Created attachment 138989 [details]
stacktrace
Comment 2 Milos Kleint 2013-08-21 12:28:06 UTC
related to nexus local repository indexing/searching..

does your /Users/tester/Library/Caches/NetBeans/dev/mavenindex/local/_b.tis file exist?
Comment 3 Stepan Zebra 2013-08-21 12:53:19 UTC
(In reply to Milos Kleint from comment #2)
> related to nexus local repository indexing/searching..
> 
> does your /Users/tester/Library/Caches/NetBeans/dev/mavenindex/local/_b.tis
> file exist?

yes, the file is there
Comment 4 Milos Kleint 2013-08-28 12:15:52 UTC
*** Bug 235165 has been marked as a duplicate of this bug. ***
Comment 5 Milos Kleint 2013-09-06 11:05:37 UTC
*** Bug 235600 has been marked as a duplicate of this bug. ***
Comment 6 ionuion 2013-09-10 19:38:26 UTC
Created attachment 139895 [details]
stacktrace

Run custom action on maven javafx project.

The custom action comprises clean install and the exec plugin (copied from the Run action definition)
Comment 7 Milos Kleint 2013-09-11 06:38:30 UTC
so far all reports coming in are from 1.7.0_40 jdk, coincidence?
Comment 8 Tomas Danek 2013-09-17 11:50:14 UTC
JDK 8 b107 as well...just happened..
Product Version: NetBeans IDE 7.4 RC1 (Build 201309162201)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Mac OS X version 10.8.4 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.4rc1
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.4rc1

(In reply to Milos Kleint from comment #7)
> so far all reports coming in are from 1.7.0_40 jdk, coincidence?
Comment 9 Tomas Danek 2013-09-17 13:30:04 UTC
Created attachment 140171 [details]
stacktrace

index seems to be corrupted, happening aften since then...
Comment 10 Milos Kleint 2013-09-19 12:14:33 UTC
*** Bug 236096 has been marked as a duplicate of this bug. ***
Comment 11 Exceptions Reporter 2013-10-19 18:28:59 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=203227
Comment 12 Milos Kleint 2013-10-22 11:52:08 UTC
interesting, appears to happen on mac only so far.
Comment 13 Milos Kleint 2013-11-06 12:53:46 UTC
possible lead:
http://osdir.com/ml/java-dev/2010-01/msg01126.html

but I could not find any place that would trigger Thread.interrupt while updating index.
Comment 14 Milos Kleint 2013-11-13 08:13:07 UTC
http://hg.netbeans.org/core-main/rev/6ac9a22681e4 

attempts to extract the indexing to a separate thread pool to avoid running in executor thread space
Comment 15 Milos Kleint 2013-11-21 08:49:53 UTC
*** Bug 236093 has been marked as a duplicate of this bug. ***
Comment 16 Milos Kleint 2013-11-21 09:32:27 UTC
http://hg.netbeans.org/core-main/rev/6ac9a22681e4

let's mark this as fixed in 8.0 and have the issue reopened if the problem resurfaces with 8.0 beta