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 234193 - Exception in repository from go to type
Summary: Exception in repository from go to type
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 234200 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-09 14:48 UTC by Egor Ushakov
Modified: 2013-08-13 12:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (3.12 KB, application/octet-stream)
2013-08-09 14:48 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2013-08-09 14:48:57 UTC
Created attachment 138502 [details]
stacktrace

see attached exception, happened after go to type
Comment 1 Vladimir Voskresensky 2013-08-09 16:00:19 UTC
Also issues from Semantic HL

java.nio.channels.ClosedChannelException
	at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:94)
	at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:665)
	at org.netbeans.modules.cnd.repository.sfs.BufferedRWAccess.read(BufferedRWAccess.java:111)
	at org.netbeans.modules.cnd.repository.sfs.IndexedStorageFile.read(IndexedStorageFile.java:142)
	at org.netbeans.modules.cnd.repository.sfs.DoubleFileStorage.read(DoubleFileStorage.java:137)
	at org.netbeans.modules.cnd.repository.disk.UnitImpl.get(UnitImpl.java:139)
	at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.get(DiskRepositoryManager.java:187)
	at org.netbeans.modules.cnd.repository.impl.DelegateRepository.get(DelegateRepository.java:108)
	at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:124)
	at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:96)
	at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$CachedUID.getObject(UIDUtilities.java:497)
	at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoCsmObject(UIDCsmConverter.java:111)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection.convertToObject(LazyCsmCollection.java:76)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection.access$400(LazyCsmCollection.java:65)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.getNextNonNull(LazyCsmCollection.java:300)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.next(LazyCsmCollection.java:308)
	at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.filterDeclarations(CsmProjectContentResolver.java:1422)
	at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceMembers(CsmProjectContentResolver.java:1408)
	at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceEnumerators(CsmProjectContentResolver.java:959)
	at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.getGlobalEnumerators(CompletionResolverImpl.java:1022)
	at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:603)
	at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:255)
	at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolve(CompletionResolverImpl.java:201)
	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolve(CsmCompletionQuery.java:1270)
	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:1709)
	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:1635)
	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:564)
	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:413)
	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:364)
	at org.netbeans.modules.cnd.completion.csm.CompletionUtilities.findItemsReferencedAtCaretPos(CompletionUtilities.java:154)
	at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:468)
	at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:424)
	at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findReferencedObject(ReferencesSupport.java:245)
	at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObject(ReferenceImpl.java:105)
	at org.netbeans.modules.cnd.highlight.semantic.ModelUtils$FieldReferenceCollector.visit(ModelUtils.java:133)
	at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter$2.visit(SemanticHighlighter.java:251)
	at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl._accept(FileReferencesImpl.java:147)
	at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.accept(FileReferencesImpl.java:104)
	at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.update(SemanticHighlighter.java:243)
	at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.update(SemanticHighlighter.java:166)
	at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.run(SemanticHighlighter.java:315)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$5.run(CsmFileTaskFactory.java:474)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:491)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 2 Vladimir Voskresensky 2013-08-12 14:07:03 UTC
*** Bug 234200 has been marked as a duplicate of this bug. ***
Comment 3 Vladimir Voskresensky 2013-08-12 14:08:19 UTC
caused by http://hg.netbeans.org/cnd-main/rev/592f0531bfc1
Comment 4 Vladimir Voskresensky 2013-08-12 14:46:32 UTC
http://hg.netbeans.org/cnd-main/rev/e60601420a5f
Comment 5 Quality Engineering 2013-08-13 02:25:34 UTC
Integrated into 'main-silver', will be available in build *201308122300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e60601420a5f
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #234193 - Exception in repository from go to type
Comment 6 Vladimir Voskresensky 2013-08-13 12:56:05 UTC
fix in repository to handle closed channels
http://hg.netbeans.org/cnd-main/rev/647d21e833d4