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 250331 - Testrunner is not up to date
Summary: Testrunner is not up to date
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 09:50 UTC by markiewb
Modified: 2015-07-16 09:54 UTC (History)
0 users

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 markiewb 2015-02-10 09:50:08 UTC
I have a maven project. When I run the test sometimes testrunner does not show the new results. It does not even prints out "running". It still shows the previous result. The test run green (can be seen in the maven output), but the test result window does not reflect this. Once this issue occured, I had to restart NB to make it work again. 

I haven't seen this behaviour in the stable 8.0.2 version, so I guess this is an regression in 8.1dev

The only relevant information in the log file was this one

WARNING [null]: Tried toset a selected component that was not in the array of open components.  ToSelect: org.netbeans.modules.gsf.testrunner.ui.ResultWindow[gsf-testrunner-results,0,0,1062x1085,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=256,maximumSize=,minimumSize=,preferredSize=] components: [org.netbeans.core.io.ui.IOWindow$IOWindowImpl[Output,0,0,1062x1085,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=256,maximumSize=,minimumSize=,preferredSize=]]

FYI: The outputwindow and the testrunner window are one TC-Group undocked on the secondary screen.


Product Version: NetBeans IDE Dev (Build 201502090001)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 markiewb 2015-02-10 10:00:59 UTC
FYI: I cannot close the window too

SEVERE [global]
java.lang.NullPointerException
	at org.netbeans.core.windows.Central.userClosedTopComponent(Central.java:2026)
	at org.netbeans.core.windows.view.DefaultView.userClosedTopComponent(DefaultView.java:794)
	at org.netbeans.core.windows.view.ui.TabbedHandler.actionPerformed(TabbedHandler.java:337)
	at org.netbeans.swing.tabcontrol.TabbedContainer.postActionEvent(TabbedContainer.java:730)
	at org.netbeans.swing.tabcontrol.TabbedContainerUI.shouldPerformAction(TabbedContainerUI.java:165)
	at org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI.access$2700(DefaultTabbedContainerUI.java:112)
	at org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI$DisplayerActionListener.actionPerformed(DefaultTabbedContainerUI.java:1286)
	at org.netbeans.swing.tabcontrol.TabDisplayer.postActionEvent(TabDisplayer.java:614)
	at org.netbeans.swing.tabcontrol.TabDisplayerUI.shouldPerformAction(TabDisplayerUI.java:213)
	at org.netbeans.swing.tabcontrol.TabDisplayerUI.postTabAction(TabDisplayerUI.java:298)
	at org.netbeans.swing.tabcontrol.plaf.TabControlButton.performAction(TabControlButton.java:215)
	at org.netbeans.swing.tabcontrol.plaf.TabControlButton.fireActionPerformed(TabControlButton.java:206)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6525)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6290)
	at java.awt.Container.processEvent(Container.java:2234)
	at java.awt.Component.dispatchEventImpl(Component.java:4881)
	at java.awt.Container.dispatchEventImpl(Container.java:2292)
	at java.awt.Component.dispatchEvent(Component.java:4703)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
	at java.awt.Container.dispatchEventImpl(Container.java:2278)
	at java.awt.Window.dispatchEventImpl(Window.java:2739)
	at java.awt.Component.dispatchEvent(Component.java:4703)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:719)
	at java.awt.EventQueue$4.run(EventQueue.java:717)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 2 markiewb 2015-02-10 10:28:14 UTC
Now I had this exception. I hope that helps

INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent for tcID:'gsf-testrunner-results'. Reason: java.lang.ClassNotFoundException: org.netbeans.modules.gsf.testrunner.api.ResultWindow starting from SystemClassLoader[581 modules] with possible defining loaders [ModuleCL@17eba430[org.netbeans.modules.gsf.testrunner]] and declared parents [org.netbeans.MainImpl$BootClassLoader@7cc355be, ModuleCL@5abce4be[org.netbeans.api.annotations.common], ModuleCL@ac85a72[org.openide.awt], ModuleCL@5f2dd908[org.netbeans.modules.queries], ModuleCL@38793621[org.netbeans.api.templates], Netigso[reference:file:ide/modules/org-eclipse-jgit.jar], ModuleCL@1c17160e[org.netbeans.libs.jna], ModuleCL@22d9fbff[org.netbeans.libs.jna.platform], ModuleCL@5a1b1705[org.netbeans.libs.jsch.agentproxy], Netigso[reference:file:ide/modules/com-jcraft-jsch.jar], ...559 more]
java.lang.ClassNotFoundException: org.netbeans.modules.gsf.testrunner.api.ResultWindow
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: org.netbeans.modules.gsf.testrunner.api.ResultWindow starting from SystemClassLoader[581 modules] with possible defining loaders [ModuleCL@17eba430[org.netbeans.modules.gsf.testrunner]] and declared parents [org.netbeans.MainImpl$BootClassLoader@7cc355be, ModuleCL@5abce4be[org.netbeans.api.annotations.common], ModuleCL@ac85a72[org.openide.awt], ModuleCL@5f2dd908[org.netbeans.modules.queries], ModuleCL@38793621[org.netbeans.api.templates], Netigso[reference:file:ide/modules/org-eclipse-jgit.jar], ModuleCL@1c17160e[org.netbeans.libs.jna], ModuleCL@22d9fbff[org.netbeans.libs.jna.platform], ModuleCL@5a1b1705[org.netbeans.libs.jsch.agentproxy], Netigso[reference:file:ide/modules/com-jcraft-jsch.jar], ...559 more]
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
	at org.netbeans.ModuleManager$SystemClassLoader.loadClass(ModuleManager.java:766)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:340)
	at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1846)
Caused: java.io.IOException
	at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1906)
	at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
	at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:571)
	at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:603)
	at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:426)
[catch] at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:571)
	at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:681)
	at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:478)
	at org.netbeans.core.windows.WindowManagerImpl.getTopComponentForID(WindowManagerImpl.java:962)
	at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:292)
	at org.netbeans.modules.gsf.testrunner.ui.ResultWindow.getResultWindow(ResultWindow.java:135)
	at org.netbeans.modules.gsf.testrunner.ui.ResultWindow.access$000(ResultWindow.java:88)
	at org.netbeans.modules.gsf.testrunner.ui.ResultWindow$1.run(ResultWindow.java:119)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 3 Theofanis Oikonomou 2015-03-02 16:31:59 UTC
This looks like an issue with windowing system not being able to locate the test results window, thus no update. Probably something to do with the dual screen? Not sure though as there is no log message. Re-assigning for further investigation. Thank you.
Comment 4 Theofanis Oikonomou 2015-07-16 09:25:38 UTC
(In reply to markiewb from comment #2)
> Now I had this exception. I hope that helps
> 
> INFO [org.netbeans.core.windows.persistence]:
> [PersistenceManager.getTopComponentForID] Problem when deserializing
> TopComponent for tcID:'gsf-testrunner-results'. Reason:
> java.lang.ClassNotFoundException:
> org.netbeans.modules.gsf.testrunner.api.ResultWindow starting from

This seems unrelated to the reported problem as in dev builds ResultWindow was refactor to different package and probably old settings were being loaded. I will investigate the warning from comment 1 as it looks most promising.
Comment 5 Theofanis Oikonomou 2015-07-16 09:54:30 UTC
On second thought the exception from comment 3 might be the root cause of this. Unfortunately I do not currently have a dual screen set-up so I cannot really test this but the warning from comment 1 might be caused as test results top component could not be found as window system was trying to load it from previously saved settings file. I am not able to reproduce it in latest dev builds, so closing. If it still happens for you please reopen attaching the log file and a zip of the exported options. Thank you