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 242420

Summary: Classcast in Tasks
Product: connecteddeveloper Reporter: akobberup
Component: JiraAssignee: Tomas Stupka <tstupka>
Status: RESOLVED FIXED    
Severity: normal CC: mmirilovic
Priority: P1 Keywords: 8.0_HR_FIX
Version: 8.0   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: ide log

Description akobberup 2014-02-27 15:09:35 UTC
In the tasks window if i rightclick one of my queries under the Jira node, and select "open" i get this exception:


java.lang.ClassCastException: org.netbeans.modules.jira.xmlrpc.XmlRpcJiraConnectorProvider$NamedFilterImpl cannot be cast to org.netbeans.modules.jira.client.spi.FilterDefinition
	at org.netbeans.modules.jira.query.QueryController.onCancelChanges(QueryController.java:896)
	at org.netbeans.modules.jira.query.QueryController.setMode(QueryController.java:695)
	at org.netbeans.modules.jira.query.QueryController.getComponent(QueryController.java:678)
	at org.netbeans.modules.bugtracking.ui.query.QueryTopComponent.addQueryComponent(QueryTopComponent.java:681)
	at org.netbeans.modules.bugtracking.ui.query.QueryTopComponent.init(QueryTopComponent.java:234)
	at org.netbeans.modules.bugtracking.ui.query.QueryAction$1$1.run(QueryAction.java:124)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
	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.awt.EventQueue.dispatchEvent(EventQueue.java:703)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] 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)
Comment 1 Tomas Stupka 2014-02-28 10:40:09 UTC
what version of the jira plugin do you use?
Comment 2 Tomas Stupka 2014-02-28 10:47:26 UTC
couldn't reproduce on a recent nb build. this looks like some module mismatch. 
please reproduce the issue and then attach your whole messages.log to the issue.

thanks
Comment 3 akobberup 2014-03-03 08:27:45 UTC
Created attachment 145713 [details]
ide log

After having updated all modules, the exception is still there.
..along with a bunch others..

Maby i should just do a clean install of the dev build..
Comment 4 Tomas Stupka 2014-03-03 11:33:05 UTC
managed to reproduce - the exception appears only for server defined queries
Comment 5 Tomas Stupka 2014-03-03 11:38:07 UTC
there is no way to get the results table for a server defined query -> P1
Comment 6 Tomas Stupka 2014-03-03 11:40:41 UTC
fixed in core-main #721eeb084464
Comment 7 Jiri Rechtacek 2014-03-03 14:52:02 UTC
http://hg.netbeans.org/releases/rev/e519c4463690
Comment 8 Quality Engineering 2014-03-04 00:56:20 UTC
Integrated into 'releases/release80', will be available in build *201403032200* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/e519c4463690
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #242420 - Classcast in Tasks
(transplanted from 721eeb08446407cdf441bfbe7bdad0a507176fdd)
Comment 9 Quality Engineering 2014-03-04 02:56:07 UTC
Integrated into 'main-silver', will be available in build *201403040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/721eeb084464
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #242420 - Classcast in Tasks