This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 7.2 Beta (Build 201205031832) VM: Java HotSpot(TM) 64-Bit Server VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20 OS: Windows 7 Stacktrace: java.lang.NullPointerException at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.mouseWheelMoved(BasicScrollPaneUI.java:866) at java.awt.AWTEventMulticaster.mouseWheelMoved(AWTEventMulticaster.java:532) at java.awt.AWTEventMulticaster.mouseWheelMoved(AWTEventMulticaster.java:531) at java.awt.Component.processMouseWheelEvent(Component.java:6593) at java.awt.Component.processEvent(Component.java:6277) at java.awt.Container.processEvent(Container.java:2229)
Created attachment 120098 [details] stacktrace
There's no NetBeans code in the stack trace. Please reopen if you can provide steps to reproduce, thanks.
*** Bug 217752 has been marked as a duplicate of this bug. ***
*** Bug 211695 has been marked as a duplicate of this bug. ***
*** Bug 221890 has been marked as a duplicate of this bug. ***
Text editor is manipulating with ScrollPane's mouse wheel listener in org.netbeans.modules.editor.lib2.view.DocumentViewOp Please evaluate, thanks.
*** Bug 224073 has been marked as a duplicate of this bug. ***
another one came ...
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=188674
*** Bug 249969 has been marked as a duplicate of this bug. ***
40 exception reports, most of them from 8.0 and dev builds.
*** Bug 254047 has been marked as a duplicate of this bug. ***
I cannot reproduce but it looks like restoration of the original mouse-wheel listener may come at point when the BasicScrollPaneUI is already in uninstalled state. Not sure why the uninstalling happens for a ordinarily opened component (some sort of L&F change??) but I'll attempt to either do scrollpane.setWheelScrollingEnabled(false) and copy the scrolling code or I comment out the original MW listener restoration code.
Fixed by http://hg.netbeans.org/jet-main/rev/e91df292ccb2
Miloslav, You can reproduce this (and other bugs) using the following repro steps: 1. Open Netbeans in a local Windows session. 2. "Switch users" (WindowsKey+L) 3. Remote Desktop into the machine using Colors = High Color (16bit) 4. If you try scrolling downward using the mouse wheel you will get this exception. 5. If you try CTRL+F in the editor, it will not work. (This bug isn't covered by this issue, should I open a separate report for it?) It seems that a lot of things go wrong if you Remote Desktop into the machine with a different color depth than you originally opened Netbeans with. Can you please take a look and fix these bugs? It's pretty commonplace to Remote Desktop into the machine with a lower color depth than native.
Integrated into 'main-silver', will be available in build *201508060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e91df292ccb2 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #213268 - NullPointerException at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.mouseWheelMoved.
(In reply to _ gtzabari from comment #15) > 5. If you try CTRL+F in the editor, it will not work. (This bug isn't > covered by this issue, should I open a separate report for it?) > Yes, please file them.
(In reply to Miloslav Metelka from comment #17) > (In reply to _ gtzabari from comment #15) > > > 5. If you try CTRL+F in the editor, it will not work. (This bug isn't > > covered by this issue, should I open a separate report for it?) > > > Yes, please file them. Done: https://netbeans.org/bugzilla/show_bug.cgi?id=254200
*** Bug 253698 has been marked as a duplicate of this bug. ***
The present fix was undone due to issue #255420. There is a new fix for the original NPE. http://hg.netbeans.org/jet-main/rev/06eb62020dee
*** Bug 255420 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201510010328* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/06eb62020dee User: Miloslav Metelka <mmetelka@netbeans.org> Log: #213268 - NullPointerException at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.mouseWheelMoved - the present fix was undone and there is a new fix for the original NPE.
I don't think this issue is fixed. I just reproduced this problem in: Product Version: NetBeans IDE Dev (Build 201510270002) Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b17 Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b17 System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb) User directory: C:\dev\Netbeans\user\dev Cache directory: C:\dev\Netbeans\cache\dev The exception reporter opened a new bug #256330 with an almost-identical stacktrace.
*** Bug 256330 has been marked as a duplicate of this bug. ***
This bug already has 150 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=188674
I've reworked the fix but I'm unable to reproduce the NPE so I'll be grateful if anyone can test the fix once it gets into the daily build. Thanks. http://hg.netbeans.org/jet-main/rev/a3bf117c58a3
Miloslav, Did you try using Remote Desktop as mentioned in comment 15?
Integrated into 'main-silver', will be available in build *201512040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a3bf117c58a3 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #213268 - NullPointerException at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.mouseWheelMoved.
I've checked using build 20151205-c96149a5249f. Checked several disconnects and reconnects of the RDP session - problem seems solved. Also i can't reproduce the 'greyed-out' Find option bug(With it's non-working Ctrl-F counterpart) bug this time. Can be that the fix fixed both of those issues? Or my moving to JDK8 as complier and JRE8 as run-time have affected it somehow?
*** Bug 257437 has been marked as a duplicate of this bug. ***
I believe this bug is fixed. I haven't run into it in a while. Can you merge this change into the release branch?
*** Bug 257672 has been marked as a duplicate of this bug. ***
I have the latest update and i still have the issue.
to andreasxjohansson@netbeans.org: Which version and build do you use?
Product Version: NetBeans IDE 8.1 (Build 201510222201) Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1 Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows Server 2008 R2 version 6.1 running on amd64; UTF-8; en_US (nb)
The issue was fixed only in dev build, the patch is not propagated to previous releases. Restoring the issue status to fixed and marking it as candidate for back port.
Reproducable in Product Version: NetBeans IDE 8.1 (Build 201510222201) Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1 Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows 10 version 10.0 running on amd64; Cp1251; en_US (nb)
As was mentioned in Comment 36, this issue is currently fixed only in dev builds. It is marked as patch candidate, so it will be included in the next patch.