This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241190 - Saved JIRA queries not persisted
Summary: Saved JIRA queries not persisted
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Jira (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 18:33 UTC by Tomas Pavek
Modified: 2014-02-12 10:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Pavek 2014-01-30 18:33:29 UTC
1) Create a new repository for https://issues.apache.org/jira.
2) Switch to JIRA connector 5.0+, restart.
3) Create a new query: Project - ActiveMQ, Task Type - Bug, Status - Open, Priorities - Blocker+Critical.
4) Save the query as "ActiveMQ Bugs".

First strange thing is that there is no progress about running the query, issues just slowly appear in the table, one by one. (But this is for another bug.)

After the query is complete, restart the IDE. The saved query is gone.

On exit, there's the following exception logged:

org.netbeans.modules.jira.repository.JiraStorageManager storeQueries
SEVERE: null
java.io.NotSerializableException: org.netbeans.modules.jira.client.spi.JiraConnectorProvider$WrapperInvocationHandler
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181)
  at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
  at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
  at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
  at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
  at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
  at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
  at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
  at org.netbeans.modules.jira.repository.JiraStorageManager.storeQueries(JiraStorageManager.java:222)
  at org.netbeans.modules.jira.repository.JiraStorageManager.shutdown(JiraStorageManager.java:268)
  at org.netbeans.modules.jira.Jira.shutdown(Jira.java:146)
  at org.netbeans.modules.jira.ModuleLifecycleManager.close(ModuleLifecycleManager.java:66)
  at org.netbeans.core.startup.NbInstaller.closeAsync(NbInstaller.java:743)
  at org.netbeans.ModuleManager.shutDownAsync(ModuleManager.java:1999)
  at org.netbeans.core.startup.ModuleSystem.shutDownAsync(ModuleSystem.java:349)
  at org.netbeans.core.NbLifeExit.doExit(NbLifeExit.java:137)
  at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:94)
  at org.openide.util.Mutex.doEvent(Mutex.java:1356)
  at org.openide.util.Mutex.readAccess(Mutex.java:355)
  at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:213)
  at com.oracle.jdeveloper.nbwindowsystem.NbMainWindow.beforeShutDown(NbMainWindow.java:1109)
  at oracle.ide.cmd.ExitCommand.doit(ExitCommand.java:589)
  at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:377)
  at oracle.ide.IdeCore.quit(IdeCore.java:835)
  at oracle.ide.Ide.quit(Ide.java:652)
  at oracle.ide.IdeController.handleEvent(IdeController.java:642)
  at oracle.ide.controller.IdeAction.performAction(IdeAction.java:663)
  at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1153)
  at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:618)
  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
  at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
  at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
  at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
  at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
  at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
  at java.awt.Component.processMouseEvent(Component.java:6505)
  at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
  at java.awt.Component.processEvent(Component.java:6270)
  at java.awt.Container.processEvent(Container.java:2229)
  at java.awt.Component.dispatchEventImpl(Component.java:4861)
  at java.awt.Container.dispatchEventImpl(Container.java:2287)
  at java.awt.Component.dispatchEvent(Component.java:4687)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
  at java.awt.Container.dispatchEventImpl(Container.java:2273)
  at java.awt.Window.dispatchEventImpl(Window.java:2719)
  at java.awt.Component.dispatchEvent(Component.java:4687)
  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
  at java.awt.EventQueue.access$200(EventQueue.java:103)
  at java.awt.EventQueue$3.run(EventQueue.java:694)
  at java.awt.EventQueue$3.run(EventQueue.java:692)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
  at java.awt.EventQueue$4.run(EventQueue.java:708)
  at java.awt.EventQueue$4.run(EventQueue.java:706)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
  at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
  at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 1 adam_felix_fps 2014-02-06 10:34:11 UTC
I am having this issue also.  Query has to be created on every restart.  I am on latest nightly version.
Comment 2 Tomas Stupka 2014-02-10 11:54:59 UTC
fixed in core-main #3738407c9470
Comment 3 Quality Engineering 2014-02-12 02:40:42 UTC
Integrated into 'main-silver', will be available in build *201402120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3738407c9470
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #241190 - Saved JIRA queries not persisted
Comment 4 adam_felix_fps 2014-02-12 09:30:11 UTC
Just installed the latest nightly and I was told that the JIRA connector could not be installed as there were was an issue with dependencies - Did I want to Disable the module and continue? I would say this possibly isn;t fixed if I cannot even enable the module now! :)
Comment 5 adam_felix_fps 2014-02-12 09:31:31 UTC
This is the message I get when I try and reenable the module:

Not all requested modules can be enabled: [StandardModule:org.netbeans.modules.jira jarFile: [Local Path to]\modules\org-netbeans-modules-jira.jar]
Comment 6 adam_felix_fps 2014-02-12 09:46:28 UTC
This is getting worse now.  I decided to uninstall and reinstall the module but no dice with the latest version so I went back to the previous version and now JIRA issues are not working in the old version either.  I get a Null Pointer Exception when I try to complete a task -
java.lang.NullPointerException
	at com.atlassian.connector.eclipse.internal.jira.core.JiraClientFactory.getJiraClient(JiraClientFactory.java:72)
	at org.netbeans.modules.jira.xmlrpc.XmlRpcJiraConnectorProvider.getClient(XmlRpcJiraConnectorProvider.java:136)
	at org.netbeans.modules.jira.Jira.getClient(Jira.java:128)
	at org.netbeans.modules.jira.repository.JiraRepository$1ConfigurationCommand.execute(JiraRepository.java:563)
[catch] at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:123)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:102)
	at org.netbeans.modules.jira.repository.JiraRepository.getConfigurationIntern(JiraRepository.java:575)
	at org.netbeans.modules.jira.repository.JiraRepository.getConfiguration(JiraRepository.java:539)
	at org.netbeans.modules.jira.repository.JiraRepository.createQuery(JiraRepository.java:172)
	at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:78)
	at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:54)
	at org.netbeans.modules.bugtracking.RepositoryImpl.createNewQuery(RepositoryImpl.java:260)
	at org.netbeans.modules.bugtracking.ui.query.QueryTopComponent$9.run(QueryTopComponent.java:649)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 7 Tomas Stupka 2014-02-12 10:40:48 UTC
(In reply to adam_felix_fps from comment #4)
> Just installed the latest nightly and I was told that the JIRA connector
> could not be installed as there were was an issue with dependencies - Did I
> want to Disable the module and continue? I would say this possibly isn;t
> fixed if I cannot even enable the module now! :)
this issue was originally filed to cover the problem that queries aren't persisted between sessions. Not being able to install the JIRA plugin sounds like a different problem - please file a new issue to track it (one problem - one issue - http://wiki.netbeans.org/IssueReportingGuidelines) 

also please attach your whole messages.log from the session where you encountered the problem. 

thanks