[ 
https://issues.apache.org/jira/browse/NETBEANS-5627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413720#comment-17413720
 ] 

Eric Bresie commented on NETBEANS-5627:
---------------------------------------

Not sure if this helps but I've been working some on an unrelated issue during 
which I've been having test failures during the Gradle Java Project

* For testCompilePreTrusted() it fails on this assertTrue in the case.  Has 
anything changed maybe in NbGradleProject that could have impacted the behavior 
here?  I see some recent changes relating to quality calls associated with this 
ticket.  Is there something up with this?

        NbGradleProject ngp = NbGradleProject.get(prj2);
        assertTrue("Closed project should be at least EVALUATED", 
ngp.getQuality().atLeast(NbGradleProject.Quality.EVALUATED));

* For testGradleProjectTemplates it indicates the following.  Is there a java 
version restriction here?  It looks if I read this right to be using JDK 11 
which is on my system at the moment.

* It seems like some things are timing out or not completing in a timely 
fashion.  It seems like some sort of deadlock condition coming in to play here?

The test testGradleProjectTemplates did not finish in 293519ms
"main" Id=1 in RUNNABLE
         at 
java.management@11.0.10/sun.management.ThreadImpl.dumpThreads0(Native Method)
         at 
java.management@11.0.10/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:521)
         at 
java.management@11.0.10/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:509)
         at app//org.netbeans.junit.NbTestCase.threadDump(NbTestCase.java:355)
         at app//org.netbeans.junit.NbTestCase.access$000(NbTestCase.java:77)
         at 
app//org.netbeans.junit.NbTestCase$1Guard.waitFinished(NbTestCase.java:444)
          - locked org.netbeans.junit.NbTestCase$2@8f2ef19
         at app//org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:501)
         at app//junit.framework.TestResult$1.protect(TestResult.java:122)
         at app//junit.framework.TestResult.runProtected(TestResult.java:142)
         at app//junit.framework.TestResult.run(TestResult.java:125)
         at app//junit.framework.TestCase.run(TestCase.java:130)
         at app//org.netbeans.junit.NbTestCase.run(NbTestCase.java:291)
         at app//junit.framework.TestSuite.runTest(TestSuite.java:241)
         at 
app//org.netbeans.junit.NbModuleSuite$NbTestSuiteLogCheck.runTest(NbModuleSuite.java:1611)
         at app//junit.framework.TestSuite.run(TestSuite.java:236)
         at app//junit.framework.TestSuite.runTest(TestSuite.java:241)
         at app//junit.framework.TestSuite.run(TestSuite.java:236)
         at 
app//org.netbeans.junit.NbModuleSuite$S.runInRuntimeContainer(NbModuleSuite.java:939)
         at 
app//org.netbeans.junit.NbModuleSuite$S.access$100(NbModuleSuite.java:660)
         at 
app//org.netbeans.junit.NbModuleSuite$S$1.protect(NbModuleSuite.java:681)
         at app//junit.framework.TestResult.runProtected(TestResult.java:142)
         at app//org.netbeans.junit.NbModuleSuite$S.run(NbModuleSuite.java:677)
         at 
app//org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:534)
         at 
app//org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1196)
         at 
app//org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1041)

"Reference Handler" Id=2 in RUNNABLE
         at 
java.base@11.0.10/java.lang.ref.Reference.waitForReferencePendingList(Native 
Method)
         at 
java.base@11.0.10/java.lang.ref.Reference.processPendingReferences(Reference.java:241)
         at 
java.base@11.0.10/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:213)

"Finalizer" Id=3 in WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@7674f035
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176)
         at 
java.base@11.0.10/java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:170)

"Signal Dispatcher" Id=4 in RUNNABLE

"Attach Listener" Id=5 in RUNNABLE

"Common-Cleaner" Id=20 in TIMED_WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@69e153c5
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
         at 
java.base@11.0.10/jdk.internal.ref.CleanerImpl.run(CleanerImpl.java:148)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)
         at 
java.base@11.0.10/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:134)

"Active Reference Queue Daemon" Id=23 in WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@173ed316
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
         at 
org.openide.util.lookup.implspi.ActiveQueue$Impl.removeSuper(ActiveQueue.java:70)
         at 
org.openide.util.lookup.implspi.ActiveQueue$Daemon.run(ActiveQueue.java:115)

"CLI Requests Server" Id=24 in RUNNABLE (running in native)
         at java.base@11.0.10/java.net.PlainSocketImpl.accept0(Native Method)
         at 
java.base@11.0.10/java.net.PlainSocketImpl.socketAccept(PlainSocketImpl.java:159)
         at 
java.base@11.0.10/java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:458)
         at 
java.base@11.0.10/java.net.ServerSocket.implAccept(ServerSocket.java:551)
         at 
java.base@11.0.10/java.net.ServerSocket.accept(ServerSocket.java:519)
         at org.netbeans.CLIHandler$Server.run(CLIHandler.java:1079)

"Java2D Disposer" Id=29 in WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@25ce9dc4
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176)
         at java.desktop@11.0.10/sun.java2d.Disposer.run(Disposer.java:144)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

"AWT-Windows" Id=31 in RUNNABLE (running in native)
         at java.desktop@11.0.10/sun.awt.windows.WToolkit.eventLoop(Native 
Method)
         at java.desktop@11.0.10/sun.awt.windows.WToolkit.run(WToolkit.java:305)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

"Framework Active Thread" Id=33 in TIMED_WAITING waiting on 
lock=org.eclipse.osgi.framework.internal.core.Framework@74ea2410
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at 
org.eclipse.osgi.framework.internal.core.Framework.run(Framework.java:1870)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

"Framework Event Dispatcher" Id=36 in WAITING waiting on 
lock=org.eclipse.osgi.framework.eventmgr.EventManager$EventThread@17f62e33
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at java.base@11.0.10/java.lang.Object.wait(Object.java:328)
         at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
         at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

"Bundle File Closer" Id=37 in WAITING waiting on 
lock=org.eclipse.osgi.framework.eventmgr.EventManager$EventThread@76b1e9b8
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at java.base@11.0.10/java.lang.Object.wait(Object.java:328)
         at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
         at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)

"File Watcher" Id=47 in WAITING waiting on 
lock=java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@27406a17
         at java.base@11.0.10/jdk.internal.misc.Unsafe.park(Native Method)
         at 
java.base@11.0.10/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
         at 
java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)
         at 
java.base@11.0.10/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:433)
         at 
org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.nextEvent(WindowsNotifier.java:229)
         at 
org.netbeans.modules.masterfs.providers.Notifier$1.nextEvent(Notifier.java:99)
         at 
org.netbeans.modules.masterfs.watcher.Watcher$Ext.run(Watcher.java:322)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

"TimerQueue" Id=48 in WAITING waiting on 
lock=java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@248e319b
         at java.base@11.0.10/jdk.internal.misc.Unsafe.park(Native Method)
         at 
java.base@11.0.10/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
         at 
java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)
         at 
java.base@11.0.10/java.util.concurrent.DelayQueue.take(DelayQueue.java:217)
         at java.desktop@11.0.10/javax.swing.TimerQueue.run(TimerQueue.java:171)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

"Event Dispatch Thread" Id=49 in WAITING waiting on 
lock=java.util.LinkedList@5d0bf09b
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at java.base@11.0.10/java.lang.Object.wait(Object.java:328)
         at 
java.prefs@11.0.10/java.util.prefs.AbstractPreferences$EventDispatchThread.run(AbstractPreferences.java:1529)

"W32 File Monitor" Id=51 in RUNNABLE (running in native)
         at com.sun.jna.Native.invokeInt(Native Method)
         at com.sun.jna.Function.invoke(Function.java:426)
         at com.sun.jna.Function.invoke(Function.java:361)
         at com.sun.jna.Library$Handler.invoke(Library.java:265)
         at 
org.netbeans.modules.masterfs.watcher.windows.$Proxy4.GetQueuedCompletionStatus(Unknown
 Source)
         at 
org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.waitForChange(WindowsNotifier.java:415)
         at 
org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier.access$100(WindowsNotifier.java:56)
         at 
org.netbeans.modules.masterfs.watcher.windows.WindowsNotifier$1.run(WindowsNotifier.java:346)

"Worker-JM" Id=52 in WAITING waiting on lock=java.util.ArrayList@793f29ff
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at 
org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:58)

"Test Watch Dog: testGradleProjectTemplates" Id=55 in WAITING waiting on 
lock=java.util.concurrent.CountDownLatch$Sync@3e8c3cb
         at java.base@11.0.10/jdk.internal.misc.Unsafe.park(Native Method)
         at 
java.base@11.0.10/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
         at 
java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:885)
         at 
java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1039)
         at 
java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1345)
         at 
java.base@11.0.10/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:232)
         at 
org.netbeans.modules.gradle.VerifyGradleProjectTemplatesTest.invokeProjectAction(VerifyGradleProjectTemplatesTest.java:153)
         at 
org.netbeans.modules.gradle.VerifyGradleProjectTemplatesTest.assertProjectAction(VerifyGradleProjectTemplatesTest.java:123)
         at 
org.netbeans.modules.gradle.VerifyGradleProjectTemplatesTest.verifySingleTemplate(VerifyGradleProjectTemplatesTest.java:110)
         at 
org.netbeans.modules.gradle.VerifyGradleProjectTemplatesTest.testGradleProjectTemplates(VerifyGradleProjectTemplatesTest.java:79)
         at 
java.base@11.0.10/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
         at 
java.base@11.0.10/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at 
java.base@11.0.10/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.base@11.0.10/java.lang.reflect.Method.invoke(Method.java:566)
         at app//junit.framework.TestCase.runTest(TestCase.java:177)
         at app//org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
         at 
app//org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
         at app//org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

"JGit-WorkQueue" Id=65 in TIMED_WAITING waiting on 
lock=java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@563f38c4
         at java.base@11.0.10/jdk.internal.misc.Unsafe.park(Native Method)
         at 
java.base@11.0.10/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234)
         at 
java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2123)
         at 
java.base@11.0.10/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182)
         at 
java.base@11.0.10/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899)
         at 
java.base@11.0.10/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1054)
         at 
java.base@11.0.10/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1114)
         at 
java.base@11.0.10/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
         at java.base@11.0.10/java.lang.Thread.run(Thread.java:834)

"Batik CleanerThread" Id=105 in WAITING waiting on 
lock=java.lang.ref.ReferenceQueue$Lock@543295b0
         at java.base@11.0.10/java.lang.Object.wait(Native Method)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
         at 
java.base@11.0.10/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176)
         at org.apache.batik.util.CleanerThread.run(CleanerThread.java:106)


junit.framework.AssertionFailedError
        at 
org.netbeans.junit.NbTestCase$1Guard.waitFinished(NbTestCase.java:444)
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:501)
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:291)
        at 
org.netbeans.junit.NbModuleSuite$NbTestSuiteLogCheck.runTest(NbModuleSuite.java:1611)
        at 
org.netbeans.junit.NbModuleSuite$S.runInRuntimeContainer(NbModuleSuite.java:939)
        at org.netbeans.junit.NbModuleSuite$S.access$100(NbModuleSuite.java:660)
        at org.netbeans.junit.NbModuleSuite$S$1.protect(NbModuleSuite.java:681)
        at org.netbeans.junit.NbModuleSuite$S.run(NbModuleSuite.java:677)

> Gradle project Lookup inconsistent until OpenProjects.open()
> ------------------------------------------------------------
>
>                 Key: NETBEANS-5627
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5627
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>            Reporter: Svatopluk Dedic
>            Assignee: Svatopluk Dedic
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Gradle fallback support recognizes several plugins from the directory 
> structure (without reading the {{build.gradle}} file): groovy, java,  scala, 
> war.
> However project Lookup does not contain services for those Plugins, until 
> OpenProjects.open() is called. The Project, however still untrusted, and 
> unevaluated, starts to serve java-related services.
> This is inconsistent with project API's philosophy: 
> [https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-projectuiapi-base/org/netbeans/api/project/ui/OpenProjects.html]
> {quote}*Only certain operations should actually be aware of which projects 
> are "open"; by default, all project functionality should be available whether 
> it is open or not.*
> {quote}
> In this particular situation, ClassPath.getClassPath(sourceFile, SOURCE) does 
> not return ClassPath even though Gradle fallback support recognizes 'java' 
> and 'java-base' plugins until the project opens in the UI. For the rest of 
> the IDE, the project appears as not having any sources in it - the returned 
> ClassPath is not marked as incomplete, but simply does not exist.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to