Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3296 Attaching JavaFX Javadoc and Sources
  3. NETBEANS-3301

Modular Ant project fails to run without nb-javac

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.2
    • None
    • None
    • None
    • OpenJDK 13.0.1 on Ubuntu 16.04.6 LTS

    Description

      In the description below, I'm using the JavaFX sample project for NetBeans defined in the Modular Ant directory of the openjfx/samples repository.

      Set up the project as instructed in the Getting Started guide, making adjustments as necessary to run with the latest OpenJDK 13.0.1 and JavaFX Linux SDK 13.0.1. The project builds and runs without problems.

      Next, uninstall the nb-javac plug-in. The project still builds without problems, but when you click the green Run Project button, an error notification appears in the lower right corner of the IDE.

      Clicking the red balloon shows the following Unexpected Exception.

      Clicking the link shows the full stack trace as follows.

      java.lang.UnsupportedOperationException

      java.lang.UnsupportedOperationException: command: run, JavaRunner impls: [org.netbeans.modules.java.source.ant.ProjectRunnerImpl@1fd321e0]
          at org.netbeans.api.java.project.runner.JavaRunner.execute(JavaRunner.java:303)
          at org.netbeans.modules.java.api.common.project.ActionProviderSupport.bypassAntBuildScript(ActionProviderSupport.java:583)
          at org.netbeans.modules.java.api.common.project.JavaActionProvider$9.performCompileOnSave(JavaActionProvider.java:1591)
          at org.netbeans.modules.java.api.common.project.ActionProviderSupport$JavaModelWork.execute(ActionProviderSupport.java:1310)
          at org.netbeans.modules.java.api.common.project.ActionProviderSupport$JavaModelWork.run(ActionProviderSupport.java:1287)
          at org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:133)
          at org.netbeans.modules.java.api.common.project.ActionProviderSupport.invokeTarget(ActionProviderSupport.java:202)
          at org.netbeans.modules.java.api.common.project.JavaActionProvider$ScriptAction.invoke(JavaActionProvider.java:465)
          at org.netbeans.modules.java.api.common.project.JavaActionProvider.lambda$invokeAction$1(JavaActionProvider.java:895)
          at java.base/java.util.Optional.ifPresent(Optional.java:176)
          at org.netbeans.modules.java.api.common.project.JavaActionProvider.invokeAction(JavaActionProvider.java:888)
          at org.netbeans.spi.project.support.LookupProviderSupport$MergedActionProvider.invokeAction(LookupProviderSupport.java:262)
          at org.netbeans.modules.project.ui.actions.ProjectAction$2.run(ProjectAction.java:162)
          at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:95)
          at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.writeAccess(NbMutexEventProvider.java:60)
          at org.netbeans.modules.openide.util.LazyMutexImplementation.writeAccess(LazyMutexImplementation.java:56)
          at org.openide.util.Mutex.writeAccess(Mutex.java:285)
          at org.netbeans.modules.project.ui.actions.ProjectAction.runSequentially(ProjectAction.java:159)
          at org.netbeans.modules.project.ui.actions.MainProjectAction$1$1.run(MainProjectAction.java:115)
          at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
          at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
          at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
          at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
          at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
          at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
          at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
          at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
          at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
          at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
          at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      

      Attachments

        1. ide-log.txt
          402 kB
          John Neffenger
        2. notification.png
          3 kB
          John Neffenger
        3. ui-log.txt
          541 kB
          John Neffenger
        4. unexpected-exception.png
          7 kB
          John Neffenger

        Activity

          People

            Unassigned Unassigned
            jgneff John Neffenger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: