[Bug 246157] HudsonInstanceImplTest.testJobWithoutSomePropertiesCanBeCreated cannot find NbPreferences

  • From:
  • To:
  • Subject: [Bug 246157] HudsonInstanceImplTest.testJobWithoutSomePropertiesCanBeCreated cannot find NbPreferences
  • Date: Thu, 31 Jul 2014 10:49:21 +0000
  • Auto-submitted: auto-generated

https://netbeans.org/bugzilla/show_bug.cgi?id=246157

--- Comment #1 from Ondrej Vrabec 
< >
 ---
failed also in NB-Core-build several times:
Jul 29, 2014 1:19:32 PM org.openide.util.NbPreferences getPreferencesProvider
WARNING: NetBeans implementation of Preferences not found
AWT blocker activation interrupted:
java.lang.InterruptedException
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:503)
    at sun.awt.AWTAutoShutdown.activateBlockerThread(AWTAutoShutdown.java:337)
    at sun.awt.AWTAutoShutdown.notifyThreadBusy(AWTAutoShutdown.java:171)
    at java.awt.EventQueue.initDispatchThread(EventQueue.java:1050)
    at java.awt.EventQueue.postEventPrivate(EventQueue.java:270)
    at java.awt.EventQueue.postEvent(EventQueue.java:245)
    at java.awt.EventQueue.invokeLater(EventQueue.java:1217)
    at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1290)
    at
org.netbeans.modules.progress.spi.Controller.runImmediately(Controller.java:217)
    at org.netbeans.modules.progress.spi.Controller.start(Controller.java:142)
    at
org.netbeans.modules.progress.spi.InternalHandle.start(InternalHandle.java:232)
    at org.netbeans.api.progress.ProgressHandle.start(ProgressHandle.java:99)
    at org.netbeans.api.progress.ProgressHandle.start(ProgressHandle.java:77)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceImpl.doSynchronize(HudsonInstanceImpl.java:361)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceImpl.access$000(HudsonInstanceImpl.java:93)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceImpl$1.run(HudsonInstanceImpl.java:136)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
    at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Jul 29, 2014 1:19:32 PM org.openide.util.RequestProcessor$Processor doNotify
SEVERE: Error in RequestProcessor
org.netbeans.modules.hudson.impl.HudsonInstanceProperties$2
org.openide.util.RequestProcessor$SlowItem: task failed due to:
java.lang.IllegalStateException: Node has been removed.
    at org.openide.util.RequestProcessor.post(RequestProcessor.java:419)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceProperties.loadPreferences(HudsonInstanceProperties.java:212)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceProperties.put(HudsonInstanceProperties.java:88)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceProperties.<init>(HudsonInstanceProperties.java:74)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceImpl.createHudsonInstance(HudsonInstanceImpl.java:183)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceImplTest.testHudsonInstanceImplPersistenceIsNotNull(HudsonInstanceImplTest.java:76)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:522)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1062)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:913)
Caused by: java.lang.IllegalStateException: Node has been removed.
    at java.util.prefs.AbstractPreferences.get(AbstractPreferences.java:283)
    at
org.netbeans.modules.hudson.impl.HudsonInstanceProperties$2.run(HudsonInstanceProperties.java:225)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
    at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)


There is a race condition in the test. HudsonManager.addInstance immediately
refreshes the hudson jobs in the constructor before .addHudsonChangeListener
has a chance to be called. Then hi.synchronize(false) does nothing actually 
and
does not notify the listener.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


[Bug 246157] New: HudsonInstanceImplTest.testJobWithoutSomePropertiesCanBeCreated cannot find NbPreferences

jtulach 07/31/2014

[Bug 246157] HudsonInstanceImplTest.testJobWithoutSomePropertiesCanBeCreated cannot find NbPreferences

ovrabec 07/31/2014

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 92 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150626.29986a4). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close