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.

Bug 191112 - Repaint problem makes Netbeans unusable
Summary: Repaint problem makes Netbeans unusable
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
: 191111 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-19 01:57 UTC by invented0
Modified: 2011-06-09 19:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description invented0 2010-10-19 01:57:00 UTC
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
Comment 1 Dusan Balek 2010-10-19 07:50:14 UTC
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)?
Comment 2 Dusan Balek 2010-10-19 12:16:49 UTC
*** Bug 191111 has been marked as a duplicate of this bug. ***
Comment 3 invented0 2010-10-19 14:25:05 UTC
(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.
Comment 4 Antonin Nebuzelsky 2010-10-19 14:35:06 UTC
> 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?
Comment 5 invented0 2010-10-20 14:08:23 UTC
(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.
Comment 6 Antonin Nebuzelsky 2010-10-22 13:39:42 UTC
Closing wontfix now.
Comment 7 Marian Mirilovic 2011-06-09 19:25:31 UTC
6629522 is still opened with priority P4