Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2160

Platform project runs with JDK 11.0.1 but not with JDK 11.0.2

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The attached app3.zip is reproducing the problem:

      The problem is related to loading modules from the IDE cluster into Netbeans.

      Error:

      1) Import app3.zip

      2) Compile and run the project hangs

      Success:

      1) Import app3.zip

      2) Disable module External Execution Process into IDE cluster.

      3) Compile and run the project runs successfully.

       

      I think Netbeans is not detecting modules conflicts/dependencies, i don't know why this problem also occurs only on JDK 11.0.2 and not on 11.0.1.

       

       

       

      ====

      Our application based on the Netbeans Platform RCP isn't unable to boot hanging during the process, this problems happens with JDK 11.0.2 and JDK 12, i also tested with NetBeans 11 (preview) and it also hangs. With JDK 11.0.1 and JDK8 it runs perfectlly.

      The error that happens is:

      java.lang.ExceptionInInitializerError
          at org.netbeans.core.windows.view.ui.toolbars.DnDSupport.<clinit>(DnDSupport.java:95)
          at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(ToolbarConfiguration.java:107)
          at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(ToolbarConfiguration.java:287)
          at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.activate(ToolbarConfiguration.java:375)
          at org.openide.awt.ToolbarPool.activate(ToolbarPool.java:220)
          at org.openide.awt.ToolbarPool.setConfigurationNow(ToolbarPool.java:304)
          at org.openide.awt.ToolbarPool.setConfiguration(ToolbarPool.java:276)
          at org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:542)
          at org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:517)
          at org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:162)
          at org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:250)
          at org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:239)
          at org.netbeans.core.windows.ViewRequestor.postVisibilityRequest(ViewRequestor.java:176)
          at org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:96)
          at org.netbeans.core.windows.Central.setVisible(Central.java:115)
          at org.netbeans.core.windows.WindowManagerImpl.setVisible(WindowManagerImpl.java:907)
          at org.netbeans.core.windows.WindowSystemImpl.show(WindowSystemImpl.java:80)
          at org.netbeans.core.GuiRunLevel$InitWinSys.run(GuiRunLevel.java:215)
          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(Native Method)
          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)
          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)
      Caused by: java.lang.RuntimeException: failed to load system cursor: DnD.Cursor.CopyDrop : cannot load system cursor: CopyDrop.32x32
          at java.desktop/java.awt.dnd.DragSource.load(DragSource.java:137)
          at java.desktop/java.awt.dnd.DragSource.<clinit>(DragSource.java:150)
          ... 32 more

       

      =====

      One strange behavior that i identified is when i compile everything it hangs, but after hanging if i just compile one module again it launches.

      After launching it request me if i wish to install nb-javac into my platform application.

       

      =====

      Im trying to understand if the problem is related to JDK 11.0.2 or the Netbeans incompatibility with JDK 11 for platform applications.

       

      Attachments

        1. NETBEANS-2160-felix-stream-exception.txt
          5 kB
          Jan Lahoda
        2. messages.log
          77 kB
          Artur Sonnenhohl
        3. app3.zip
          12 kB
          Artur Sonnenhohl

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jtulach Jaroslav Tulach
            sonnenhohl Artur Sonnenhohl
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h

                Issue deployment