You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2026/01/22 23:19:31 UTC

[I] Clearing output window fails on JDK ea 26 [netbeans]

mbien opened a new issue, #9155:
URL: https://github.com/apache/netbeans/issues/9155

   ### Apache NetBeans version
   
   Apache NetBeans 29 latest release candidate
   
   ### What happened
   
   works fine on JDK 25.0.2
   
   ```
   SEVERE [global]
   java.lang.NullPointerException: Cannot invoke "java.awt.Component.addPropertyChangeListener(String, java.beans.PropertyChangeListener)" because "invoker" is null
   	at java.desktop/javax.swing.JPopupMenu.setInvoker(JPopupMenu.java:963)
   	at org.netbeans.core.output2.OutputTab$PMListener.popupMenuWillBecomeInvisible(OutputTab.java:1309)
   	at java.desktop/javax.swing.JPopupMenu.firePopupMenuWillBecomeInvisible(JPopupMenu.java:713)
   	at java.desktop/javax.swing.JPopupMenu.setVisible(JPopupMenu.java:824)
   	at java.desktop/javax.swing.JPopupMenu.menuSelectionChanged(JPopupMenu.java:1556)
   	at java.desktop/javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:128)
   	at java.desktop/javax.swing.MenuSelectionManager.clearSelectedPath(MenuSelectionManager.java:160)
   	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:980)
   	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1026)
   	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6570)
   	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3390)
   	at java.desktop/java.awt.Component.processEvent(Component.java:6335)
   	at java.desktop/java.awt.Container.processEvent(Container.java:2260)
   	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4952)
   	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
   	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4784)
   	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4917)
   	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4560)
   	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4501)
   	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2304)
   	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2667)
   	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4784)
   	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:716)
   	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
   	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)
   ```
   
   method in question:
   
   https://github.com/apache/netbeans/blob/0a82a1f93171e0c490e02fac5b3b30c5c450d142/platform/core.output2/src/org/netbeans/core/output2/OutputTab.java#L1306-L1321
   
   
   ### Language / Project Type / NetBeans Component
   
   any
   
   ### How to reproduce
   
   open output window and build a project to fill it, now try to clear it via right click context menu
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   linux
   
   ### JDK
   
   Oracle JDK 26 ea build 31
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] Clearing output window fails on ea JDK 26 [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #9155:
URL: https://github.com/apache/netbeans/issues/9155#issuecomment-3817691785

   regarding the code which calls it: the hack grew over time and was originally in a different class:
   
   https://github.com/neilcsmith-net/netbeans-releases/commit/710c209196373937886b73fd146ab388a8fa22f0
   https://github.com/neilcsmith-net/netbeans-releases/commit/892020c2e6b440759f332858d7b737828390c963
   https://github.com/neilcsmith-net/netbeans-releases/commit/b5bfff45c596a6d93b6554317a79bce62de5514c
   
   I am not planning to make changes to it for now, so if the regression fix is merged to JDK 26 ga (which is now likely) I would also close this issue here too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] Clearing output window fails on ea JDK 26 [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #9155:
URL: https://github.com/apache/netbeans/issues/9155#issuecomment-3812739642

   > tracked via https://bugs.openjdk.org/browse/JDK-8376169
   
   I tested the proposed fix and it did work, however it [won't make it into JDK 26 ga](https://github.com/openjdk/jdk/pull/26407#discussion_r2736891691), earliest backport would be 26.0.1.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] Clearing output window fails on ea JDK 26 [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #9155:
URL: https://github.com/apache/netbeans/issues/9155#issuecomment-3789573580

   tracked via https://bugs.openjdk.org/browse/JDK-8376169


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] Clearing output window fails on ea JDK 26 [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #9155:
URL: https://github.com/apache/netbeans/issues/9155#issuecomment-3787269632

   jdk commit: https://github.com/openjdk/jdk/commit/7fbeede14c558221ae0e5b8d65f50e50c0e3737a#diff-5a6689fb25b4cb54fb6854c16bd892cb8c25803fc8e4f02aa9d41bc05eff1c3e


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] Clearing output window fails on ea JDK 26 [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #9155:
URL: https://github.com/apache/netbeans/issues/9155#issuecomment-3835784839

   closing. Fix landed in the JDK 26 branch.
   
   https://github.com/openjdk/jdk/commit/21a3ed36d48f1d86e4d84eb0e84ccdbe4fd1a57e


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] Clearing output window fails on ea JDK 26 [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien closed issue #9155: Clearing output window fails on ea JDK 26
URL: https://github.com/apache/netbeans/issues/9155


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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