com.atlassian.studio.host.common.DataSetupException: Error reindexing

Atlassian JIRA | Robin Fernandes | 4 years ago
  1. 0

    JIRA import can fail in OD during re-indexing with a message like the one below in the logs. The problem is that 2 re-indexes are kicked off in parallel when the upgrade tasks run during the import. One is triggered by {{UT055UseDefaultPaths}} in a new thread, and the other is triggered by {{UT066StripCustomSearchFieldDescriptions}} in the import thread, which leads to a race condition. Both re-index jobs [identify a message from a prior re-index|https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-components/jira-core/src/main/java/com/atlassian/jira/issue/index/DefaultIndexManager.java#312] to be deleted, but the first wins the [race to delete of the message|https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-components/jira-core/src/main/java/com/atlassian/jira/issue/index/DefaultIndexManager.java#349], such that when the second attempts to do so, it [fails with the NPE here|https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-components/jira-core/src/main/java/com/atlassian/jira/config/DefaultReindexMessageManager.java#211]. I suspect the parallel triggered by {{UT055UseDefaultPaths}} is unnecessary. {noformat} 2013-01-21 18:17:30,427 JiraImportTaskExecutionThread-1 ERROR sysadmin 1090x540x1 gzijnl 59.167.133.100,59.167.29.201 /secure/admin/StudioImport!import.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. Indexer: DefaultIndexManager: paths: [/data/jirastudio/jira/home/caches/indexes/comments, /data/jirastudio/jira/home/caches/indexes/issues, /data/jirastudio/jira/home/caches/indexes/changes] java.lang.NullPointerException at java.util.Date.getMillisOf(Date.java:939) at java.util.Date.before(Date.java:898) at com.atlassian.jira.config.DefaultReindexMessageManager.clearMessageForTimestamp(DefaultReindexMessageManager.java:212) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:349) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:301) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:81) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy157.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy388.reIndexAll(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at $Proxy388.reIndexAll(Unknown Source) at com.atlassian.studio.jira.importer.impl.LegacyStudioImportManager.postImportStudify(LegacyStudioImportManager.java:134) at com.atlassian.studio.jira.importer.impl.StudioImporterFacade.postImportStudify(StudioImporterFacade.java:99) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.doStudioImportTasks(StudioDataImportAsyncCommand.java:264) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:146) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:48) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:146) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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) 2013-01-21 18:17:30,430 JiraImportTaskExecutionThread-1 ERROR sysadmin 1090x540x1 gzijnl 59.167.133.100,59.167.29.201 /secure/admin/StudioImport!import.jspa [jira.studio.importer.StudioImport] Unexpected error while restoring data: com.atlassian.studio.host.common.DataSetupException: Error reindexing com.atlassian.studio.host.common.DataSetupException: Error reindexing at com.atlassian.studio.jira.importer.impl.LegacyStudioImportManager.postImportStudify(LegacyStudioImportManager.java:139) at com.atlassian.studio.jira.importer.impl.StudioImporterFacade.postImportStudify(StudioImporterFacade.java:99) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.doStudioImportTasks(StudioDataImportAsyncCommand.java:264) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:146) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:48) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:146) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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) Caused by: java.lang.NullPointerException at java.util.Date.getMillisOf(Date.java:939) at java.util.Date.before(Date.java:898) at com.atlassian.jira.config.DefaultReindexMessageManager.clearMessageForTimestamp(DefaultReindexMessageManager.java:212) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:349) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:301) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:81) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy157.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy388.reIndexAll(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at $Proxy388.reIndexAll(Unknown Source) at com.atlassian.studio.jira.importer.impl.LegacyStudioImportManager.postImportStudify(LegacyStudioImportManager.java:134) ... 13 more {noformat} This was originally identified in support case [JST-54019|https://support.atlassian.com/browse/JST-54019].

    Atlassian JIRA | 4 years ago | Robin Fernandes [Atlassian]
    com.atlassian.studio.host.common.DataSetupException: Error reindexing
  2. 0

    JIRA import can fail in OD during re-indexing with a message like the one below in the logs. The problem is that 2 re-indexes are kicked off in parallel when the upgrade tasks run during the import. One is triggered by {{UT055UseDefaultPaths}} in a new thread, and the other is triggered by {{UT066StripCustomSearchFieldDescriptions}} in the import thread, which leads to a race condition. Both re-index jobs [identify a message from a prior re-index|https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-components/jira-core/src/main/java/com/atlassian/jira/issue/index/DefaultIndexManager.java#312] to be deleted, but the first wins the [race to delete of the message|https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-components/jira-core/src/main/java/com/atlassian/jira/issue/index/DefaultIndexManager.java#349], such that when the second attempts to do so, it [fails with the NPE here|https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-components/jira-core/src/main/java/com/atlassian/jira/config/DefaultReindexMessageManager.java#211]. I suspect the parallel triggered by {{UT055UseDefaultPaths}} is unnecessary. {noformat} 2013-01-21 18:17:30,427 JiraImportTaskExecutionThread-1 ERROR sysadmin 1090x540x1 gzijnl 59.167.133.100,59.167.29.201 /secure/admin/StudioImport!import.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. Indexer: DefaultIndexManager: paths: [/data/jirastudio/jira/home/caches/indexes/comments, /data/jirastudio/jira/home/caches/indexes/issues, /data/jirastudio/jira/home/caches/indexes/changes] java.lang.NullPointerException at java.util.Date.getMillisOf(Date.java:939) at java.util.Date.before(Date.java:898) at com.atlassian.jira.config.DefaultReindexMessageManager.clearMessageForTimestamp(DefaultReindexMessageManager.java:212) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:349) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:301) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:81) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy157.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy388.reIndexAll(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at $Proxy388.reIndexAll(Unknown Source) at com.atlassian.studio.jira.importer.impl.LegacyStudioImportManager.postImportStudify(LegacyStudioImportManager.java:134) at com.atlassian.studio.jira.importer.impl.StudioImporterFacade.postImportStudify(StudioImporterFacade.java:99) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.doStudioImportTasks(StudioDataImportAsyncCommand.java:264) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:146) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:48) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:146) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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) 2013-01-21 18:17:30,430 JiraImportTaskExecutionThread-1 ERROR sysadmin 1090x540x1 gzijnl 59.167.133.100,59.167.29.201 /secure/admin/StudioImport!import.jspa [jira.studio.importer.StudioImport] Unexpected error while restoring data: com.atlassian.studio.host.common.DataSetupException: Error reindexing com.atlassian.studio.host.common.DataSetupException: Error reindexing at com.atlassian.studio.jira.importer.impl.LegacyStudioImportManager.postImportStudify(LegacyStudioImportManager.java:139) at com.atlassian.studio.jira.importer.impl.StudioImporterFacade.postImportStudify(StudioImporterFacade.java:99) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.doStudioImportTasks(StudioDataImportAsyncCommand.java:264) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:146) at com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:48) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:146) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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) Caused by: java.lang.NullPointerException at java.util.Date.getMillisOf(Date.java:939) at java.util.Date.before(Date.java:898) at com.atlassian.jira.config.DefaultReindexMessageManager.clearMessageForTimestamp(DefaultReindexMessageManager.java:212) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:349) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:301) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:81) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy157.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at $Proxy388.reIndexAll(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at $Proxy388.reIndexAll(Unknown Source) at com.atlassian.studio.jira.importer.impl.LegacyStudioImportManager.postImportStudify(LegacyStudioImportManager.java:134) ... 13 more {noformat} This was originally identified in support case [JST-54019|https://support.atlassian.com/browse/JST-54019].

    Atlassian JIRA | 4 years ago | Robin Fernandes
    com.atlassian.studio.host.common.DataSetupException: Error reindexing
  3. 0

    After pressing the "Change" button, no dialog comes up, but the following error occurs in IntelliJ, which prevent logging of time in the past. Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(295,155),absolute(733,545),button=1,modifiers=Button1,clickCount=1] on dialog7 java.lang.NullPointerException at java.util.Date.getMillisOf(Date.java:939) at java.util.Date.before(Date.java:898) at net.sf.nachocalendar.components.CalendarPanel.isShowing(CalendarPanel.java:1049) at net.sf.nachocalendar.components.CalendarPanel.setDate(CalendarPanel.java:636) at net.sf.nachocalendar.components.CalendarPanel.setValue(CalendarPanel.java:1100) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:235) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:193) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:188) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:170) at com.atlassian.theplugin.idea.jira.WorkLogCreate$TimeDatePicker.<init>(WorkLogCreate.java:563) at com.atlassian.theplugin.idea.jira.WorkLogCreate$2.actionPerformed(WorkLogCreate.java:450) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5806) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4413) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2440) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146) at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:118) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:87) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177) at java.awt.Dialog$1.run(Dialog.java:1045) at java.awt.Dialog$3.run(Dialog.java:1097) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1095) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:22) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:18) at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:813) at com.atlassian.theplugin.idea.jira.IssuesToolWindowPanel.logWorkForIssue(IssuesToolWindowPanel.java:586) at com.atlassian.theplugin.idea.action.issues.LogWorkAction.actionPerformed(LogWorkAction.java:8) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:4) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:64) at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:137) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:220) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:8) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5806) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4413) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2440) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146) at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:118) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:87) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    Ecosystem JIRA | 8 years ago | chris kingsbury
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(321,154),button=1,modifiers=Button1,clickCount=1] on dialog17 java.lang.NullPointerException at java.util.Date.getMillisOf(Date.java:939) at java.util.Date.before(Date.java:898) at net.sf.nachocalendar.components.CalendarPanel.isShowing(CalendarPanel.java:1049) at net.sf.nachocalendar.components.CalendarPanel.setDate(CalendarPanel.java:636) at net.sf.nachocalendar.components.CalendarPanel.setValue(CalendarPanel.java:1100) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:235) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:193) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:188) at net.sf.nachocalendar.components.CalendarPanel.<init>(CalendarPanel.java:170) at com.atlassian.theplugin.idea.jira.WorkLogCreate$TimeDatePicker.<init>(WorkLogCreate.java:563) at com.atlassian.theplugin.idea.jira.WorkLogCreate$2.actionPerformed(WorkLogCreate.java:450) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:5602) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5367) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4068) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3903) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) at java.awt.Container.dispatchEventImpl(Container.java:2054) at java.awt.Window.dispatchEventImpl(Window.java:1801) at java.awt.Component.dispatchEvent(Component.java:3903) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35) at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:223) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180) at java.awt.Dialog$1.run(Dialog.java:535) at java.awt.Dialog$2.run(Dialog.java:565) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:563) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:3) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:148) at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:849)

    Ecosystem JIRA | 8 years ago | Leszek GruchaƂa
    java.lang.NullPointerException
  6. 0

    Junit Test NullPointerException with Date.before

    Stack Overflow | 2 years ago | gasmyr
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.Date.getMillisOf()
    2. Java RT
      Date.before
      1. java.util.Date.getMillisOf(Date.java:939)
      2. java.util.Date.before(Date.java:898)
      2 frames
    3. com.atlassian.jira
      DefaultIndexManager.reIndexAll
      1. com.atlassian.jira.config.DefaultReindexMessageManager.clearMessageForTimestamp(DefaultReindexMessageManager.java:212)
      2. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:349)
      3. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:301)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. com.atlassian.util
      ObjectProfiler.profiledInvoke
      1. com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:81)
      1 frame
    6. com.atlassian.jira
      SwitchingInvocationHandler.invoke
      1. com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)
      1 frame
    7. Unknown
      $Proxy157.reIndexAll
      1. $Proxy157.reIndexAll(Unknown Source)
      1 frame
    8. com.atlassian.jira
      CompositeIndexLifecycleManager.reIndexAll
      1. com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:54)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    10. com.atlassian.plugin
      DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      1 frame
    11. Unknown
      $Proxy388.reIndexAll
      1. $Proxy388.reIndexAll(Unknown Source)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    13. com.atlassian.plugin
      HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
      1 frame
    14. Unknown
      $Proxy388.reIndexAll
      1. $Proxy388.reIndexAll(Unknown Source)
      1 frame
    15. com.atlassian.studio
      StudioImporterFacade.postImportStudify
      1. com.atlassian.studio.jira.importer.impl.LegacyStudioImportManager.postImportStudify(LegacyStudioImportManager.java:134)
      2. com.atlassian.studio.jira.importer.impl.StudioImporterFacade.postImportStudify(StudioImporterFacade.java:99)
      2 frames
    16. com.atlassian.jira
      ImportTaskManagerImpl$TaskCallableDecorator.call
      1. com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.doStudioImportTasks(StudioDataImportAsyncCommand.java:264)
      2. com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:146)
      3. com.atlassian.jira.studio.importer.StudioDataImportAsyncCommand.call(StudioDataImportAsyncCommand.java:48)
      4. com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:146)
      4 frames
    17. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      4. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      5. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      8. java.lang.Thread.run(Thread.java:662)
      8 frames