NullPointerException in Sketch.It v0.06.02

Issue #38 new
Former user created an issue

While running in Debian 9 / Intellij community edition... it's not possible to use the plugin.


Unexpected exception received while running Sketch It!: java.lang.NullPointerException

java.lang.Throwable: AWT events are not allowed inside write action: java.awt.event.MouseEvent[MOUSE_CLICKED,(181,243),absolute(616,301),button=1,modifiers=Button1,clickCount=1] on win7 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145) at com.intellij.openapi.application.impl.NoSwingUnderWriteAction.lambda$watchForEvents$0(NoSwingUnderWriteAction.java:22) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source) at java.desktop/java.awt.Dialog.show(Unknown Source) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:706) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:437) at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1682) at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1631) at com.intellij.openapi.ui.messages.MessageDialog.show(MessageDialog.java:181) at com.intellij.ui.messages.MessagesServiceImpl.showMessageDialog(MessagesServiceImpl.java:70) at com.intellij.openapi.ui.Messages.showDialog(Messages.java:218) at com.intellij.openapi.ui.Messages.showDialog(Messages.java:177) at com.intellij.openapi.ui.Messages.showErrorDialog(Messages.java:790) at org.pmesmeur.sketchit.ui.ExceptionDialog.show(ExceptionDialog.java:13) at org.pmesmeur.sketchit.SketchIt.generatePlantUmlDiagramWithExceptionHandling(SketchIt.java:63) at org.pmesmeur.sketchit.SketchIt.generatePlantUmlModel(SketchIt.java:53) at org.pmesmeur.sketchit.SketchIt.actionBody(SketchIt.java:45) at org.pmesmeur.sketchit.SketchIt.access$000(SketchIt.java:12) at org.pmesmeur.sketchit.SketchIt$1.run(SketchIt.java:32) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1054) at org.pmesmeur.sketchit.SketchIt.runInsideAnIntellijWriteAction(SketchIt.java:30) at org.pmesmeur.sketchit.SketchIt.actionPerformed(SketchIt.java:24) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:261) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:278) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:292) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:283) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:107) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:282) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:111) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111) at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120) at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:121) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:111) at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:524) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:35) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:546) at java.desktop/java.awt.Component.processMouseEvent(Unknown Source) at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source) at java.desktop/java.awt.Component.processEvent(Unknown Source) at java.desktop/java.awt.Container.processEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:729) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:674) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:373) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Comments (1)

  1. Philippe MESMEUR repo owner

    Honestly, I will need additional information to progress on this issue:

    • it seems that the exception occurs while trying to display the ExceptionDialog, i.e. while handling an exception
    • It seems that the exception occurs in at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145): don’t you have any issue with the logs inside your intellij?

    It would be precious help if you could provide me the logs of your IntelliJ

    Best regards,

    Philippe

  2. Log in to comment