mbtsp / Databae-Tool

https://plugins.jetbrains.com/plugin/19161-database-tool
1 stars 1 forks source link

【Plugin submission】:: java.lang.Throwable: Too many element types regist... #167

Open zoulejiu opened 4 months ago

zoulejiu commented 4 months ago

:warning:[Auto Generated Report]-=D6604D253A6AB3FB9D3F64213C28B2A8=-

Environments

Plugin version: 2024.1.7

IntelliJ IDEA 2024.1.4"Ultimate Edition" Build #IU-241.18034.62,built on June 20, 2024 Runtime version: 17.0.11+1-b1207.24 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Operating system: Windows 11.0 Last action id: null

Stack Trace

java.lang.Throwable: Too many element types registered. Out of (short) range. Most of element types (2383) were registered for 'Language: DbOracle': 0, 'ABORT', 'ABS', 'ABSENT', 'ACCESS', 'ACCESSED', 'ACCESSIBLE', 'ACCOUNT', 'ACL', 'ACOS', 'ACROSS', 'ACTION', 'ACTIONS', 'ACTIVATE', 'ACTIVE', 'ACTIVE_COMPONENT', 'ACTIVE_DATA', 'ACTIVE_FUNCTION', 'ACTIVE_TAG', 'ACTIVITY', 'ADAPTIVE_PLAN', 'ADD', 'ADD_COLUMN', 'ADD_GROUP', 'ADD_MONTHS', 'ADJ_DATE',...
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
    at com.intellij.psi.tree.IElementType.<init>(IElementType.java:115)
    at com.intellij.psi.tree.IElementType.<init>(IElementType.java:92)
    at org.antlr.intellij.adaptor.lexer.TokenIElementType.<init>(TokenIElementType.java:26)
    at org.antlr.intellij.adaptor.lexer.PSIElementTypeFactory.lambda$createTokenIElementTypes$5(PSIElementTypeFactory.java:82)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
    at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:108)
    at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    at org.antlr.intellij.adaptor.lexer.PSIElementTypeFactory.createTokenIElementTypes(PSIElementTypeFactory.java:83)
    at org.antlr.intellij.adaptor.lexer.PSIElementTypeFactory.lambda$defineLanguageIElementTypes$0(PSIElementTypeFactory.java:40)
    at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
    at org.antlr.intellij.adaptor.lexer.PSIElementTypeFactory.defineLanguageIElementTypes(PSIElementTypeFactory.java:40)
    at com.database.B.d.jW.<clinit>(jW.java)
    at java.base/jdk.internal.misc.Unsafe.allocateInstance(Native Method)
    at java.base/java.lang.invoke.DirectMethodHandle.allocateInstance(DirectMethodHandle.java:520)
    at com.intellij.serviceContainer.ComponentManagerImpl.findConstructorAndInstantiateClass(ComponentManagerImpl.kt:908)
    at com.intellij.serviceContainer.ComponentManagerImpl.doInstantiateClass(ComponentManagerImpl.kt:917)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:902)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:943)
    at com.intellij.serviceContainer.LazyExtensionInstance.createInstance(LazyExtensionInstance.java:55)
    at com.intellij.serviceContainer.LazyExtensionInstance.getInstance(LazyExtensionInstance.java:44)
    at com.intellij.serviceContainer.BaseKeyedLazyInstance.getInstance(BaseKeyedLazyInstance.java:38)
    at com.intellij.psi.stubs.SerializationManagerImpl.getExtensions(SerializationManagerImpl.java:315)
    at com.intellij.psi.stubs.SerializationManagerImpl.instantiateElementTypesFromFields(SerializationManagerImpl.java:307)
    at com.intellij.psi.stubs.SerializationManagerImpl.lambda$initSerializers$4(SerializationManagerImpl.java:242)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:269)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:277)
    at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:57)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:277)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:268)
    at com.intellij.psi.stubs.SerializationManagerImpl.initSerializers(SerializationManagerImpl.java:241)
    at com.intellij.psi.stubs.StubUpdatingIndex$2.getSubIndexerVersion(StubUpdatingIndex.java:158)
    at com.intellij.psi.stubs.StubUpdatingIndex$2.getSubIndexerVersion(StubUpdatingIndex.java:145)
    at com.intellij.util.indexing.impl.perFileVersion.PersistentSubIndexerRetriever.getVersion(PersistentSubIndexerRetriever.java:121)
    at com.intellij.util.indexing.impl.perFileVersion.PersistentSubIndexerRetriever.getFileIndexerId(PersistentSubIndexerRetriever.java:107)
    at com.intellij.util.indexing.impl.perFileVersion.PersistentSubIndexerRetriever.getSubIndexerState(PersistentSubIndexerRetriever.java:100)
    at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.getIndexingStateForFile(VfsAwareMapReduceIndex.java:218)
    at com.intellij.indexing.composite.CompositeInvertedIndexBase.getIndexingStateForFile(CompositeInvertedIndexBase.java:223)
    at com.intellij.util.indexing.FileBasedIndexImpl.getIndexingState(FileBasedIndexImpl.java:1941)
    at com.intellij.util.indexing.UnindexedFilesFinder.applyOrScheduleRequiredIndex(UnindexedFilesFinder.java:302)
    at com.intellij.util.indexing.UnindexedFilesFinder.lambda$getFileStatus$3(UnindexedFilesFinder.java:252)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.lambda$freezeFileTypeTemporarilyWithProvidedValueIn$15(FileTypeManagerImpl.java:731)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.cacheFileTypesInside(FileTypeManagerImpl.java:795)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyWithProvidedValueIn(FileTypeManagerImpl.java:727)
    at com.intellij.util.indexing.UnindexedFilesFinder.lambda$getFileStatus$4(UnindexedFilesFinder.java:224)
    at com.intellij.openapi.application.impl.RwLockHolder.runReadAction(RwLockHolder.kt:289)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:850)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:65)
    at com.intellij.util.indexing.UnindexedFilesFinder.getFileStatus(UnindexedFilesFinder.java:183)
    at com.intellij.util.indexing.SingleProviderIterator.processFileRethrowExceptions(SingleProviderIterator.java:122)
    at com.intellij.util.indexing.SingleProviderIterator.processFile(SingleProviderIterator.java:98)
    at com.intellij.util.indexing.UnindexedFilesScanner.lambda$collectIndexableFilesConcurrently$9(UnindexedFilesScanner.java:506)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    at com.intellij.util.indexing.UnindexedFilesScanner.lambda$collectIndexableFilesConcurrently$10(UnindexedFilesScanner.java:506)
    at com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl.lambda$invokeConcurrentlyIfPossible$15(PushedFilePropertiesUpdaterImpl.java:392)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:217)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
    at com.intellij.openapi.roots.impl.FilesScanExecutor.runOnAllThreads$lambda$1(FilesScanExecutor.kt:56)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:244)
    at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:30)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:222)
    at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:210)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:840)
zoulejiu commented 3 months ago

idea's token can be used up to 15000, and if it is greater than this value, this warning will be reported, but dbOracle only uses 2383, whether your idea has installed other plugins and occupies a lot of tokens.