Apex Class & Trigger Trace Flags Not Saving.

Issue #1672 resolved
Justin Julicher created an issue

Tried saving a Apex Class Trace Flag and got this in the log:

07-15 20:14:06,375 [130066230]  ERROR - llij.ide.plugins.PluginManager - Argument for @NotNull parameter 'element' of com/illuminatedcloud/intellij/psi/util/ApexPsiUtil.getStartOffset must not be null 
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'element' of com/illuminatedcloud/intellij/psi/util/ApexPsiUtil.getStartOffset must not be null
    at com.illuminatedcloud.intellij.psi.util.ApexPsiUtil.$$$reportNull$$$0(SourceFile)
    at com.illuminatedcloud.intellij.psi.util.ApexPsiUtil.getStartOffset(SourceFile)
    at com.illuminatedcloud.intellij.refactoring.implementOverride.AbstractApexImplementOverrideMethodHandler.invoke(SourceFile:136)
    at com.intellij.codeInsight.generation.OverrideMethodsHandler.invoke(OverrideMethodsHandler.java:42)
    at com.intellij.codeInsight.actions.CodeInsightAction.lambda$null$0(CodeInsightAction.java:54)
    at com.intellij.codeInsight.actions.CodeInsightAction.lambda$actionPerformedImpl$1(CodeInsightAction.java:60)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:159)
    at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformedImpl(CodeInsightAction.java:51)
    at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformed(CodeInsightAction.java:29)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:609)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:670)
    at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:669)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:619)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:516)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:470)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:219)
    at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:896)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:841)
    at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Tried adding in a Start value for the trace flag but that didn’t work either.

Comments (4)

  1. Justin Julicher reporter

    Also found this in there as well:

    2:08,954 [119148809]   INFO - agnostic.FrequentEventDetector - Too many events posted, #5. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.application.impl.FlushQueue$FlushNow@2569484d,notifier=null,catchExceptions=false,when=1594797128954] on sun.awt.X11.XToolkit@65fb21fb 
    2020-07-15 17:12:09,646 [119149501]   INFO - rationStore.ComponentStoreImpl - Saving Project (name=Cortex-GitFlow, containerState=ACTIVE, componentStore=/home/justin/WebstormProjects/Cortex-GitFlow) IlluminatedCloudWorkspaceSettings took 55 ms 
    2020-07-15 17:12:25,356 [119165211]   INFO - onfigCache.FilePropertiesCache - Enumerated metadata for connection cortexFull in 15 s 827 ms. 
    2020-07-15 17:13:12,268 [119212123]   INFO - agnostic.FrequentEventDetector - Too many events posted, #5. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.application.impl.FlushQueue$FlushNow@635f718,notifier=null,catchExceptions=false,when=1594797192268] on sun.awt.X11.XToolkit@65fb21fb 
    2020-07-15 17:13:22,629 [119222484]   INFO - mentation.DocumentationManager -  
    java.lang.NullPointerException
        at com.illuminatedcloud.intellij.editor.ApexDocumentationProvider.getDocumentationCommentElement(SourceFile:297)
        at com.illuminatedcloud.intellij.editor.ApexDocumentationProvider.getDocumentationCommentText(SourceFile:331)
        at com.illuminatedcloud.intellij.editor.ApexDocumentationProvider.getCommentText(SourceFile:265)
        at com.illuminatedcloud.intellij.editor.ApexDocumentationProvider.generateDoc(SourceFile:615)
        at com.illuminatedcloud.intellij.editor.ApexDocumentationProvider.generateDoc(SourceFile:229)
        at com.intellij.lang.documentation.CompositeDocumentationProvider.generateDoc(CompositeDocumentationProvider.java:138)
        at com.intellij.codeInsight.documentation.DocumentationManager$MyCollector.lambda$getDocumentation$2(DocumentationManager.java:1176)
        at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:486)
        at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$2(NonBlockingReadActionImpl.java:443)
        at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1106)
        at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:75)
        at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:129)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166)
        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
        at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153)
        at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:118)
        at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:75)
        at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:451)
        at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.executeSynchronously(NonBlockingReadActionImpl.java:398)
        at com.intellij.openapi.application.impl.NonBlockingReadActionImpl.executeSynchronously(NonBlockingReadActionImpl.java:176)
        at com.intellij.codeInsight.documentation.DocumentationManager$MyCollector.getDocumentation(DocumentationManager.java:1184)
        at com.intellij.codeInsight.documentation.DocumentationManager.lambda$doFetchDocInfo$14(DocumentationManager.java:802)
        at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
        at com.intellij.util.Alarm$Request.runSafely(Alarm.java:367)
        at com.intellij.util.Alarm$Request.run(Alarm.java:357)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:220)
        at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
        at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
        at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
        at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:210)
        at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:190)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
    2020-07-15 17:13:29,472 [119229327]   INFO - agnostic.FrequentEventDetector - Too many events posted, #3. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.application.impl.FlushQueue$FlushNow@449d8dad,notifier=null,catchExceptions=false,when=1594797209471] on sun.awt.X11.XToolkit@65fb21fb 
    

  2. Scott Wells repo owner

    I've made both of these more defensive against null objects and will include that in the next build.

  3. Scott Wells repo owner

    Resolving given the changes that were delivered several builds back. If you're still seeing this, please reopen with new logs.

  4. Log in to comment