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 176167 - Unexpected exceptions found in message.log
Summary: Unexpected exceptions found in message.log
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 02:17 UTC by Alexander Pepin
Modified: 2009-11-11 05:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test log + message.log (3.06 MB, text/plain)
2009-11-09 02:19 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-11-09 02:17:57 UTC
Many tests failed in the latest testrun with that message.
Comment 1 Alexander Pepin 2009-11-09 02:19:23 UTC
Created attachment 90576 [details]
test log + message.log
Comment 2 Alexander Simon 2009-11-09 05:54:12 UTC
Is bug reproducible?
Is it possible that test uses not fresh user dir?
Comment 3 Alexander Simon 2009-11-09 06:27:42 UTC
It seems two IDE was started in same time.
Could you try to divorce CND caches by key:
  -J-Dcnd.repository.cache.path=/var/tmp/<name of the cache folder>
By default both IDE will use one cache:
 /var/tmp/<username>-cnd68-caches-0
Comment 4 Alexander Pepin 2009-11-09 06:42:52 UTC
Yes, it's possible that we have several IDE working in parallel. We will try to eliminate such situation.
Comment 5 Alexander Simon 2009-11-10 02:47:57 UTC
resolved by QA team
Comment 6 Alexander Simon 2009-11-10 02:49:32 UTC
CND team: Is it possible move cnd cache to user dir?
Comment 7 Vladimir Voskresensky 2009-11-11 03:45:05 UTC
Egor has the same problems (with clean userdir) +
       at java.util.ArrayList.RangeCheck(ArrayList.java:546)
       at java.util.ArrayList.get(ArrayList.java:321)
       at org.netbeans.modules.cnd.repository.util.IntToStringCache.getValueById(IntToStringCache.java:166)
       at org.netbeans.modules.cnd.repository.translator.RepositoryTranslatorImpl.getUnitName(RepositoryTranslatorImpl.java:152)
       at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.getUnitName(RepositoryUtils.java:350)
       at org.netbeans.modules.cnd.modelimpl.repository.KeyUtilities.getUnitName(KeyUtilities.java:119)
       at org.netbeans.modules.cnd.modelimpl.repository.ProjectNameBasedKey.getUnit(ProjectNameBasedKey.java:105)
       at org.netbeans.modules.cnd.modelimpl.repository.FileContainerKey.getUnit(FileContainerKey.java:52)
       at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.getCreateUnit(DiskRepositoryManager.java:112)
       at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.get(DiskRepositoryManager.java:173)
       at org.netbeans.modules.cnd.repository.impl.DelegateRepository.get(DelegateRepository.java:75)
       at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:119)
       at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getFileContainer(ProjectBase.java:2807)
       at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.checkConsistency(ProjectBase.java:153)
       at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.readInstance(ProjectBase.java:209)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl.createInstance(LibProjectImpl.java:74)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryEntry.createUID(LibraryManager.java:438)
Comment 8 Vladimir Voskresensky 2009-11-11 03:46:12 UTC
java.lang.IndexOutOfBoundsException: Index: 5, Size: 4
       at java.util.ArrayList.RangeCheck(ArrayList.java:546)
       at java.util.ArrayList.get(ArrayList.java:321)
       at org.netbeans.modules.cnd.repository.util.IntToStringCache.getValueById(IntToStringCache.java:166)
       at org.netbeans.modules.cnd.repository.translator.RepositoryTranslatorImpl.getUnitName(RepositoryTranslatorImpl.java:152)
       at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.getUnitName(RepositoryUtils.java:350)
       at org.netbeans.modules.cnd.modelimpl.repository.KeyUtilities.getUnitName(KeyUtilities.java:119)
       at org.netbeans.modules.cnd.modelimpl.repository.ProjectNameBasedKey.getUnit(ProjectNameBasedKey.java:105)
       at org.netbeans.modules.cnd.modelimpl.repository.FileContainerKey.getUnit(FileContainerKey.java:52)
       at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.getCreateUnit(DiskRepositoryManager.java:112)
       at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.get(DiskRepositoryManager.java:173)
       at org.netbeans.modules.cnd.repository.impl.DelegateRepository.get(DelegateRepository.java:75)
       at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:119)
       at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getFileContainer(ProjectBase.java:2807)
       at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.checkConsistency(ProjectBase.java:153)
       at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.readInstance(ProjectBase.java:209)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl.createInstance(LibProjectImpl.java:74)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryEntry.createUID(LibraryManager.java:438)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryEntry.getLibrary(LibraryManager.java:430)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager$LibraryEntry.access$200(LibraryManager.java:413)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager.getLibrary(LibraryManager.java:315)
       at org.netbeans.modules.cnd.modelimpl.csm.core.LibraryManager.resolveFileProjectOnInclude(LibraryManager.java:170)
Comment 9 Vladimir Voskresensky 2009-11-11 03:49:16 UTC
I agree to move model cache into 
${userdir}/var/cache/cnd/model/
it will simplify life of users who think, that caches are in
${userdir}/var/cache
Comment 10 Vladimir Voskresensky 2009-11-11 03:51:25 UTC
+ we will not corrupt our own caches when opening two IDEs
+ in case of invalid cache version we can just remove it
Comment 11 soldatov 2009-11-11 04:28:12 UTC
What about /tmp/dlight_* or /var/tmp/dlight_*?
Can we corrupt it, if 2 IDE is started?
Comment 12 Alexander Simon 2009-11-11 05:42:59 UTC
fixed model part, change set:
http://hg.netbeans.org/cnd-main/rev/a795d8b2ac45

File new issue for dlight cache.