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 239937 - Freeze after ProxyClassLoader error
Summary: Freeze after ProxyClassLoader error
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-02 19:39 UTC by kimsp
Modified: 2014-01-03 14:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kimsp 2014-01-02 19:39:19 UTC
[ JDK VERSION : 1.7.0_45 ]



STEPS:
   * Clear the Maven cache
   * Update Maven index
   
ACTUAL:
   An updated cache

EXPECTED:
   The hangs itself.

Here is what it writes in the console. The IDE is totally unresponsive. I'll
attach a heap dump.

INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not
(re-)index local
org.apache.lucene.store.NoSuchDirectoryException: directory
'/Users/kim/Library/Caches/NetBeans/dev/mavenindex/local' does not exist
	at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:218)
	at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:241)
	at
org.apache.maven.index.context.DefaultIndexingContext.deleteIndexFiles(DefaultIn
dexingContext.java:333)
	at
org.apache.maven.index.context.DefaultIndexingContext.replace(DefaultIndexingCon
text.java:570)
	at
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.scan(NexusReposito
ryIndexerImpl.java:647)
Caused: java.io.IOException: Error scanning context local
	at
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.scan(NexusReposito
ryIndexerImpl.java:651)
	at
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(Ne
xusRepositoryIndexerImpl.java:514)
	at
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRe
positoryIndexerImpl.java:118)
[catch] at
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusReposit
oryIndexerImpl.java:565)
	at
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusReposit
oryIndexerImpl.java:558)
	at org.openide.util.Mutex.writeAccess(Mutex.java:404)
	at
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRep
ositoryIndexerImpl.java:558)
	at
org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryInd
exer.java:58)
	at
org.netbeans.modules.maven.options.SettingsPanel$12.run(SettingsPanel.java:718)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
WARNING [org.netbeans.ProxyClassLoader]: Will not load class
org.apache.lucene.store.FSDirectory arbitrarily from one of
ModuleCL@5773b097[org.netbeans.libs.lucene] and
ModuleCL@36eec618[org.netbeans.modules.maven.indexer] starting from
SystemClassLoader[494 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
Comment 1 Milos Kleint 2014-01-03 07:11:44 UTC
(In reply to kimsp from comment #0)
> [ JDK VERSION : 1.7.0_45 ]
> 
> 
> 
> STEPS:
>    * Clear the Maven cache
>    * Update Maven index
>    
> ACTUAL:
>    An updated cache
> 
> EXPECTED:
>    The hangs itself.
> 

when exactly did you delete the cache directory? While the IDE was running? The only safe way is doing it while the IDE is not running.

Please provide a thread dump, not a heap dump.

a possible cause of the perceived hang could be the immense number of IO operations done when scanning the local repository.
Comment 2 Milos Kleint 2014-01-03 14:59:11 UTC
please reopen with the thread dump attached