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 199103 - java.lang.IllegalStateException: Failed to get container sorage during tests on Windows
Summary: java.lang.IllegalStateException: Failed to get container sorage during tests ...
Status: RESOLVED DUPLICATE of bug 201086
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: All Windows XP
: P3 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 10:17 UTC by Egor Ushakov
Modified: 2011-10-17 07:44 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 Egor Ushakov 2011-06-02 10:17:16 UTC
A lot of exceptions like this during tests on windows:
java.lang.IllegalStateException: Failed to get container sorage by key ClassifierContainerKey /usr/includeLdev-tester1@tulos
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$WeakContainer.getContainer(ProjectBase.java:3056)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getClassifierSorage(ProjectBase.java:2959)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.findClassifiers(ProjectBase.java:419)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.impl.services.ClassifierResolverImpl.findVisibleDeclaration(ClassifierResolverImpl.java:161)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.impl.services.ClassifierResolverImpl.findClassifierUsedInFile(ClassifierResolverImpl.java:147)
    [junit] 	at org.netbeans.modules.cnd.api.model.services.CsmClassifierResolver$Default.findClassifierUsedInFile(CsmClassifierResolver.java:143)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.resolver.Resolver3.findClassifierUsedInFile(Resolver3.java:156)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.resolver.Resolver3.resolveSimpleName(Resolver3.java:679)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.resolver.Resolver3.resolve(Resolver3.java:646)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.FunctionImplEx.findOwner(FunctionImplEx.java:106)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.FunctionImplEx.findQualifiedName(FunctionImplEx.java:208)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.FunctionDefinitionImpl.findQualifiedName(FunctionDefinitionImpl.java:238)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.FunctionImplEx.getQualifiedName(FunctionImplEx.java:202)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl.getUniqueNameWithoutPrefix(FunctionImpl.java:409)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableDeclarationBase.getUniqueName(OffsetableDeclarationBase.java:85)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.DeclarationContainer.putDeclaration(DeclarationContainer.java:149)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.DeclarationContainerProject.putDeclaration(DeclarationContainerProject.java:189)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.registerDeclaration(ProjectBase.java:513)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl.registerInProject(FunctionImpl.java:368)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.FunctionImplEx.registerInProject(FunctionImplEx.java:239)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableDeclarationBase.postObjectCreateRegistration(OffsetableDeclarationBase.java:290)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.ConstructorDefinitionImpl.create(ConstructorDefinitionImpl.java:75)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:162)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:91)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.parser.ParserProviderImpl$Antlr2CppParser.render(ParserProviderImpl.java:156)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:833)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:513)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:130)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:72)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:91)
Comment 1 Alexander Simon 2011-09-08 07:29:55 UTC
It seems root cause of exceptions is:

Cannot delete repository folder
D:\hudson\workspace\cnd-test-winxp\unit\userdir\var\cache\cnd\model\D%3A%2Fhudson%2Fworkspace%2Fcnd-test-winxp%2Funit%2Fwork%2Forg-n--1_rfs_endif_7348545391525627369N-1618523133\D%3A%2Fhudson%2Fworkspace%2Fcnd-test-winxp%2Funit%2Fwork%2Forg-n--fs_endif_7348545391525627369N20--2119740724

Probably:
- two IDE session with same user dir
- length of repository name is too long (example has 288 chars)
Comment 2 Alexander Simon 2011-10-17 07:44:42 UTC

*** This bug has been marked as a duplicate of bug 201086 ***