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

AssertionError loading Designer pallete

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 9.0
    • 9.0
    • third-party - Other

    Description

      context

      • Starting Netbeans from command-line
      • Reset windows

      expected / desirable

      • Windows should be reset to default state

      actual

      • The pallete sub-panel was not painting ... It just showed "Loading ..." for quite some time.
      • I used reset windows to try to get it back
      • Errors in the attached messages.log file.
      • Assertion Error, see AssertionError.logs attachment.
        • AssertionError stacktrace:
          java.lang.AssertionError: file:/D:/work/products/FourAbs/FourAbsClientCommon/build/classes/groovy/main
          	at org.netbeans.modules.form.project.ClassSource.getClasspath(ClassSource.java:81)
          	at org.netbeans.modules.form.project.ClassPathUtils.loadClass(ClassPathUtils.java:164)
          	at org.netbeans.modules.form.palette.PaletteItem.loadComponentClass(PaletteItem.java:318)
          	at org.netbeans.modules.form.palette.PaletteItem.getComponentClass(PaletteItem.java:146)
          	at org.netbeans.modules.form.palette.PaletteItem.getBeanDescriptor(PaletteItem.java:346)
          	at org.netbeans.modules.form.palette.PaletteItem.getTooltip(PaletteItem.java:264)
          	at org.netbeans.modules.form.palette.PaletteItemDataObject$ItemNode.getShortDescription(PaletteItemDataObject.java:333)
          	at org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:526)
          	at org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:526)
          	at org.netbeans.modules.palette.DefaultItem.getShortDescription(DefaultItem.java:64)
          	at org.netbeans.modules.palette.ui.CategoryList$ItemRenderer.getListCellRendererComponent(CategoryList.java:305)
          	at java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1439)
          	at org.netbeans.modules.palette.ui.CategoryList$CategoryListUI.updateLayoutState(CategoryList.java:386)
          	at java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1389)
          	at java.desktop/javax.swing.plaf.basic.BasicListUI.getCellBounds(BasicListUI.java:1027)
          	at java.desktop/javax.swing.JList.getCellBounds(JList.java:1641)
          	at java.desktop/javax.swing.JList.ensureIndexIsVisible(JList.java:1153)
          	at org.netbeans.modules.palette.ui.CategoryDescriptor.doSetOpened(CategoryDescriptor.java:200)
          	at org.netbeans.modules.palette.ui.CategoryDescriptor.<init>(CategoryDescriptor.java:99)
          	at org.netbeans.modules.palette.ui.PalettePanel.computeDescriptors(PalettePanel.java:186)
          	at org.netbeans.modules.palette.ui.PalettePanel.access$500(PalettePanel.java:87)
          	at org.netbeans.modules.palette.ui.PalettePanel$2.run(PalettePanel.java:284)
          	at org.netbeans.modules.palette.ui.PalettePanel.refresh(PalettePanel.java:301)
          	at org.netbeans.modules.palette.ui.PalettePanel.setContent(PalettePanel.java:403)
          	at org.netbeans.spi.palette.PaletteTopComponent.setPaletteController(PaletteTopComponent.java:134)
          	at org.netbeans.spi.palette.PaletteTopComponent.propertyChange(PaletteTopComponent.java:128)
          	at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
          	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
          	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
          	at org.netbeans.spi.palette.PaletteSwitch.showHidePaletteTopComponent(PaletteSwitch.java:226)
          	at org.netbeans.spi.palette.PaletteSwitch.access$400(PaletteSwitch.java:54)
          	at org.netbeans.spi.palette.PaletteSwitch$3.run(PaletteSwitch.java:341)
          	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.access$600(EventQueue.java:97)
          	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:87)
          	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)
          
      • I closed the form painting window and shut-down netbeans
      • Restarted Netbeans - Again the palette did not load
      • I received a different pop-up error this time
        Start-up error

      • Stack trace:
        java.lang.AssertionError: file:/D:/work/products/FourAbs/FourAbsClientCommon/build/classes/groovy/main
            at org.netbeans.modules.form.project.ClassSource.getClasspath(ClassSource.java:81)
            at org.netbeans.modules.form.project.ClassPathUtils.loadClass(ClassPathUtils.java:164)
            at org.netbeans.modules.form.palette.PaletteItem.loadComponentClass(PaletteItem.java:318)
            at org.netbeans.modules.form.palette.PaletteItem.getComponentClass(PaletteItem.java:146)
            at org.netbeans.modules.form.palette.PaletteItem.getBeanDescriptor(PaletteItem.java:346)
            at org.netbeans.modules.form.palette.PaletteItem.getDisplayName(PaletteItem.java:259)
            at org.netbeans.modules.form.palette.PaletteItemDataObject$ItemNode.getDisplayName(PaletteItemDataObject.java:307)
            at org.openide.nodes.FilterNode.getDisplayName(FilterNode.java:503)
            at org.openide.nodes.FilterNode.getDisplayName(FilterNode.java:503)
            at org.netbeans.modules.form.palette.PaletteUtils$1.run(PaletteUtils.java:224)
            at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
            at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
            at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
            at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
        Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
            at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
            at org.netbeans.modules.form.palette.PaletteUtils.preparePalette(PaletteUtils.java:211)
            at org.netbeans.modules.form.palette.PaletteUtils.getPaletteLookup(PaletteUtils.java:161)
            at org.netbeans.modules.form.FormDesigner.initLookup(FormDesigner.java:346)
            at org.netbeans.modules.form.FormDesigner.<init>(FormDesigner.java:164)
            at org.netbeans.modules.nbform.FormDesignerTC.createDesigner(FormDesignerTC.java:97)
            at org.netbeans.modules.nbform.FormDesignerTC.<init>(FormDesignerTC.java:89)
            at org.netbeans.modules.nbform.FormDesignerTC.<init>(FormDesignerTC.java:83)
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
            at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.createElement(MultiViewFactory.java:422)
            at org.netbeans.core.multiview.MultiViewModel.getElementForDescription(MultiViewModel.java:197)
            at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:107)
            at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:103)
            at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:445)
            at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:437)
            at org.netbeans.core.multiview.MultiViewPeer$SelectionListener.selectionChanged(MultiViewPeer.java:904)
            at org.netbeans.core.multiview.MultiViewModel.fireSelectionChanged(MultiViewModel.java:234)
            at org.netbeans.core.multiview.MultiViewModel.setActiveDescription(MultiViewModel.java:95)
            at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:297)
            at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:346)
            at java.desktop/javax.swing.ButtonGroup.setSelected(ButtonGroup.java:168)
            at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:293)
            at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:346)
            at java.desktop/javax.swing.AbstractButton.setSelected(AbstractButton.java:341)
            at org.netbeans.core.multiview.TabsComponent.changeActiveManually(TabsComponent.java:541)
            at org.netbeans.core.multiview.MultiViewPeer$MVTCHandler.requestActive(MultiViewPeer.java:931)
            at org.netbeans.core.api.multiview.MultiViewHandler.requestActive(MultiViewHandler.java:74)
            at org.netbeans.modules.nbform.FormEditorSupport.openFormEditor(FormEditorSupport.java:224)
            at org.netbeans.modules.nbform.FormDataNode$1.actionPerformed(FormDataNode.java:66)
            at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1584)
            at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:278)
            at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
            at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
            at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
            at java.desktop/java.awt.Component.processMouseEvent(Component.java:6592)
            at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
            at java.desktop/java.awt.Component.processEvent(Component.java:6354)
            at java.desktop/java.awt.Container.processEvent(Container.java:2260)
            at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
            at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
            at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
            at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4906)
            at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
            at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
            at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2304)
            at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
            at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
            at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
            at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
            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:87)
            at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
            at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
            at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
            at java.base/java.security.AccessController.doPrivileged(Native Method)
            at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
            at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
            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)
        [catch] at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
        

      impact

      • My project is GUI development - netbeans is unusable in this state
      • I  have not seen any updates coming for the 9-beta
      • I really think you should put a beata update channel to gether and let Netbeans testers get the later builds and fixes.

      supporting information

      • screen shot
      • messages.log
      • AssertionError.logs - contains ...
        • stacktrace
        • UI log
        • IDE log
      • messages-02.log
      • AssertionError-02.logs
      • stacktrace
      • UI log
      • IDE log
        *

      Attachments

        1. AssertionError.logs
          1.16 MB
          aplatypus
        2. AssertionError-02.logs
          1.54 MB
          aplatypus
        3. image-2018-04-19-10-26-25-919.png
          31 kB
          aplatypus
        4. messages.log
          410 kB
          aplatypus
        5. messages-02.log
          405 kB
          aplatypus

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aplatypus aplatypus
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: