Having Issues With Stub Serialization And Index Updating

I have been trying to track down this cause of this error for quite a while now. I figured it was something I did, but I could not track down the change, I have tried many things to fix it with (almost) no success.

Then recently I see this: https://github.com/JetBrains/intellij-community/commit/f6045d29d03a529be17789be7231f119da3342d8

So, I look, and there is a change that occurred right around the time my issue started:

https://github.com/JetBrains/intellij-community/commit/cbd1de59a899cc4e8460c93a531913d720a98236

Can you tell me anything more about this that might help me fix the issues in my plugin?

Also opened: http://youtrack.jetbrains.com/issue/IDEA-91880


2012-09-21 02:35:56,506 [ 204701]   INFO - il.indexing.FileBasedIndexImpl - com.intellij.psi.stubs.SerializerNotFoundException: No serializer registered for stub: ID=108; parent stub class=com.sylvanaar.idea.Lua.lang.psi.stubs.impl.LuaCompoundIdentifierStubImpl com.intellij.util.indexing.StorageException: com.intellij.psi.stubs.SerializerNotFoundException: No serializer registered for stub: ID=108; parent stub class=com.sylvanaar.idea.Lua.lang.psi.stubs.impl.LuaCompoundIdentifierStubImpl      at com.intellij.psi.stubs.StubUpdatingIndex$MyIndex.updateWithMap(StubUpdatingIndex.java:282)      at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:217)      at com.intellij.util.indexing.FileBasedIndexImpl$22.run(FileBasedIndexImpl.java:1483)      at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeNonCancelableSection(ProgressManagerImpl.java:143)      at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1451)      at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1343)      at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:775)      at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:749)      at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:207)      at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:196)      at com.intellij.psi.stubs.StubIndexImpl.safeGet(StubIndexImpl.java:509)      at com.sylvanaar.idea.Lua.lang.psi.stubs.index.LuaGlobalDeclarationIndex.get(LuaGlobalDeclarationIndex.java:45)      at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver._resolve(LuaResolver.java:62)      at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver.resolve(LuaResolver.java:24)      at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver.resolve(LuaResolver.java:18)      at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:112)      at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)      at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:117)      at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:132)      at com.sylvanaar.idea.Lua.lang.psi.impl.symbols.LuaReferenceElementImpl.multiResolve(LuaReferenceElementImpl.java:130)      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.a(PsiMultiReference.java:60)      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.access$000(PsiMultiReference.java:36)      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:43)      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:37)      at java.util.Arrays.mergeSort(Arrays.java:1270)      at java.util.Arrays.sort(Arrays.java:1210)      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.a(PsiMultiReference.java:79)      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.getRangeInElement(PsiMultiReference.java:92)      at com.intellij.psi.ReferenceRange.getRanges(ReferenceRange.java:36)      at com.intellij.codeInsight.completion.CompletionData.getReferencePrefix(CompletionData.java:178)      at com.intellij.codeInsight.completion.CompletionData.findPrefixStatic(CompletionData.java:209)      at com.intellij.codeInsight.completion.CompletionData.findPrefixStatic(CompletionData.java:220)      at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.createResultSet(CompletionServiceImpl.java:86)      at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:82)      at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:114)      at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:748)      at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$900(CompletionProgressIndicator.java:88)      at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:730)      at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:93)      at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:920)      at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:88)      at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:191)      at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:231)      at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:181)      at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:84)      at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:459)      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)      at java.util.concurrent.FutureTask.run(FutureTask.java:138)      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)      at java.lang.Thread.run(Thread.java:662)      at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:150) Caused by: com.intellij.psi.stubs.SerializerNotFoundException: No serializer registered for stub: ID=108; parent stub class=com.sylvanaar.idea.Lua.lang.psi.stubs.impl.LuaCompoundIdentifierStubImpl      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:178)      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:184)      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:184)      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:171)      at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:165)      at com.intellij.psi.stubs.SerializedStubTree.getStub(SerializedStubTree.java:59)      at com.intellij.psi.stubs.StubUpdatingIndex$MyIndex.a(StubUpdatingIndex.java:322)      at com.intellij.psi.stubs.StubUpdatingIndex$MyIndex.updateWithMap(StubUpdatingIndex.java:279)

1 comment
Comment actions Permalink

http://youtrack.jetbrains.com/issue/IDEA-91880

On 9/21/2012 11:01 AM, Jon Akhtar wrote:

I have been trying to track down this cause of this error for quite a while now. I figured it was something I did, but I could not track down the change, I have tried many things to fix it with (almost) no success.

>

Then recently I see this: https://github.com/JetBrains/intellij-community/commit/f6045d29d03a529be17789be7231f119da3342d8

>

So, I look, and there is a change that occurred right around the time my issue started:

>

https://github.com/JetBrains/intellij-community/commit/cbd1de59a899cc4e8460c93a531913d720a98236

>

Can you tell me anything more about this that might help me fix the issues in my plugin?

>
>

 com.intellij.util.indexing.StorageException: com.intellij.psi.stubs.SerializerNotFoundException: No serializer registered for stub: ID=108; parent stub class=com.sylvanaar.idea.Lua.lang.psi.stubs.impl.LuaCompoundIdentifierStubImpl
>      at com.intellij.psi.stubs.StubUpdatingIndex$MyIndex.updateWithMap(StubUpdatingIndex.java:282)
>      at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:217)
>      at com.intellij.util.indexing.FileBasedIndexImpl$22.run(FileBasedIndexImpl.java:1483)
>      at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeNonCancelableSection(ProgressManagerImpl.java:143)
>      at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1451)
>      at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1343)
>      at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:775)
>      at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:749)
>      at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:207)
>      at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:196)
>      at com.intellij.psi.stubs.StubIndexImpl.safeGet(StubIndexImpl.java:509)
>      at com.sylvanaar.idea.Lua.lang.psi.stubs.index.LuaGlobalDeclarationIndex.get(LuaGlobalDeclarationIndex.java:45)
>      at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver._resolve(LuaResolver.java:62)
>      at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver.resolve(LuaResolver.java:24)
>      at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver.resolve(LuaResolver.java:18)
>      at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:112)
>      at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
>      at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:117)
>      at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:132)
>      at com.sylvanaar.idea.Lua.lang.psi.impl.symbols.LuaReferenceElementImpl.multiResolve(LuaReferenceElementImpl.java:130)
>      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.a(PsiMultiReference.java:60)
>      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.access$000(PsiMultiReference.java:36)
>      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:43)
>      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:37)
>      at java.util.Arrays.mergeSort(Arrays.java:1270)
>      at java.util.Arrays.sort(Arrays.java:1210)
>      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.a(PsiMultiReference.java:79)
>      at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.getRangeInElement(PsiMultiReference.java:92)
>      at com.intellij.psi.ReferenceRange.getRanges(ReferenceRange.java:36)
>      at com.intellij.codeInsight.completion.CompletionData.getReferencePrefix(CompletionData.java:178)
>      at com.intellij.codeInsight.completion.CompletionData.findPrefixStatic(CompletionData.java:209)
>      at com.intellij.codeInsight.completion.CompletionData.findPrefixStatic(CompletionData.java:220)
>      at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.createResultSet(CompletionServiceImpl.java:86)
>      at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:82)
>      at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:114)
>      at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:748)
>      at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$900(CompletionProgressIndicator.java:88)
>      at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:730)
>      at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:93)
>      at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:920)
>      at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:88)
>      at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:191)
>      at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:231)
>      at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:181)
>      at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:84)
>      at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:459)
>      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>      at java.lang.Thread.run(Thread.java:662)
>      at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:150)
> Caused by: com.intellij.psi.stubs.SerializerNotFoundException: No serializer registered for stub: ID=108; parent stub class=com.sylvanaar.idea.Lua.lang.psi.stubs.impl.LuaCompoundIdentifierStubImpl
>      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:178)
>      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:184)
>      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:184)
>      at com.intellij.psi.stubs.StubSerializationHelper.deserialize(StubSerializationHelper.java:171)
>      at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:165)
>      at com.intellij.psi.stubs.SerializedStubTree.getStub(SerializedStubTree.java:59)
>      at com.intellij.psi.stubs.StubUpdatingIndex$MyIndex.a(StubUpdatingIndex.java:322)
>      at com.intellij.psi.stubs.StubUpdatingIndex$MyIndex.updateWithMap(StubUpdatingIndex.java:279)]]>

>

---
Original message URL: http://devnet.jetbrains.net/message/5468231#5468231

>

0

Please sign in to leave a comment.