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.
I use HOBLink, a Java-based product, to access MS Windows Terminal Servers for remote desktop connection. (http://www.hobsoft.com/products/connect/jwt.jsp) This works perfectly well with Netbeans except in one case. If I have Netbeans 6.9.1 open already on the desktop and I remote into the desktop, Netbeans window is not visible and usable but other applications work just fine. I have to kill Netbeans, (which I don't want to do) and reopen it in the remote session to be able to use it again. Then it works perfectly well (after that). This is reproducible every time. I see the following error in the status bar before the Netbeans restart. java.lang.NullPointerException at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(XPStyle.java:513) at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(XPStyle.java:517) at com.sun.java.swing.plaf.windows.WindowsScrollBarUI.paintThumb(WindowsScrollBarUI.java:175) at javax.swing.plaf.basic.BasicScrollBarUI.paint(BasicScrollBarUI.java:409) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:143) at javax.swing.JComponent.paintComponent(JComponent.java:752) at javax.swing.JComponent.paint(JComponent.java:1029) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124) at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278) at javax.swing.RepaintManager.paint(RepaintManager.java:1224) at javax.swing.JComponent._paintImmediately(JComponent.java:5072) at javax.swing.JComponent.paintImmediately(JComponent.java:4882) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785) ************************************************************************* I really like Netbeans but it is really frustrating to lose the changes everyday. It is also not a good sight to see one Java product making the other not work properly. Java: 1.6.21 Netbeans: 6.9.1 OS: Windows XP SP2 HOBLink JWT: 3.2.1051 Reproducible: everytime
It seems more like a problem in Java than a NetBeans specific problem. Have you tried the same scenario with another Java application (e.g. JEdit)?
*** Bug 191111 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > It seems more like a problem in Java than a NetBeans specific problem. Have you > tried the same scenario with another Java application (e.g. JEdit)? Thanks for the quick attention and sorry for the duplicate bug, which got submitted inadvertently. I will try another application, hopefully, today and post the results. But, irrespective of how other apps behave, Netbeans, I am guessing, should be able to fix/cope with the problem, or have some kind of work around. I feel Netbeans should be more robust and that is one of the main reasons for me to choose Netbans over Eclipse.
> java.lang.NullPointerException > at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(XPStyle.java:513) see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6629522 Is your Windows changing Style when you are connecting/disconnecting the remote access?
(In reply to comment #4) > > java.lang.NullPointerException > > at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(XPStyle.java:513) > > see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6629522 > > Is your Windows changing Style when you are connecting/disconnecting the remote > access? I am not changing any style but I don't know if the HOBLink software is doing anything. One issue of note is that my work computer runs Windows XP SP2 but my home computer, where I am "remoting" from, is running Windows Vista Business. Looking at the above bug link and the exception trace, it looks like mine is a similar (or may be the same) problem and that the problem may be reproducible with other Java applications and not just Netbeans.
Closing wontfix now.
6629522 is still opened with priority P4