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 28318 - NPE due to hack of jdk bug #4620540
Summary: NPE due to hack of jdk bug #4620540
Status: VERIFIED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: -S1S-
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2002-10-29 13:09 UTC by dmladek
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
neverending stacktraces (47.73 KB, text/plain)
2002-10-29 13:10 UTC, dmladek
Details
my full ide.log (335.19 KB, text/plain)
2002-10-29 15:30 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2002-10-29 13:09:39 UTC
Product Version       = NetBeans IDE Dev (Build
200210250100)
  IDE Versioning        = IDE/1 spec=3.16
impl=200210250100
  Operating System      = Linux version 2.4.18
running on i386
  Java; VM; Vendor      = 1.4.1_01; Java
HotSpot(TM) Client VM 1.4.1_01-b01; Sun
Microsystems Inc.
  Java Home             =
/usr/java/j2sdk1.4/sun/jdk1.4.1_01/jre
  System Locale; Encod. = cs_CZ; ISO-8859-2
  Home Dir; Current Dir = /home.local/danielm;
/DISKS/storage3/forte/NBdev-last/netbeans/bin
  IDE Install; User Dir =
/home.local/danielm/NBdev-last;
/home.local/danielm/.netbeans/dev
-------------------------------------------------------------------------------

I played with windows in my IDE (SDI mode):
un/docking them.
Suddenly I (my PC) was almost overflowen with
unfinished stacktraces 
of Exceptions...
see part of it attached as stacktrace
Comment 1 dmladek 2002-10-29 13:10:46 UTC
Created attachment 7789 [details]
neverending stacktraces
Comment 2 mslama 2002-10-29 13:32:16 UTC
It seems to me that it is bug in JDK. We just call
JTabbedPane.getBoundsAt(). Peter please can you check it?
Comment 3 Peter Zavadsky 2002-10-29 14:44:55 UTC
BoxLayout has got into inconsistent state (partially intited). From
the code it is not
possible to see how it could happen.

To the log you posted. What happened before the NPE's? Those aren't
interesting enough, just a consequence showing BoxLayout is in
inconsistent state, but the problem is how it got into that.

I suppose there could have been some exception thrown before, when
initialization of the BoxLayout was in progress, left it just
partially inited.


Comment 4 dmladek 2002-10-29 15:02:10 UTC
Adding a keyword:RANDOM 'cause it's unreproductable
Comment 5 dmladek 2002-10-29 15:28:08 UTC
I was looking into my ide.log and attaching it whole from my last
start when problem occured. Realy there's nothing before NPE:-/

And my latest steps which I was doing before were:
I have a testing class (which I could also attach here),
 which invokes Explorer, switchs into FileSystems TAB, then 
 finds a JavaCVS FS node and invokes VCS Groups dialog from 
 Main->Versioning menu, which is then verified and docked into
 explorer via Main->Window->Dock View Into -> Explorer ->Center
 and the same is for Versioning Explorer...

My tests got little bit into troubles with one of Editor's TAB
where I had opened VersioningExplorerOperator and wchi was selected
instead of Versioning Window ... (that is what I was adjusting
and solving this problem)....
So repeatedly  I made changes, compiled and executed, etc...
Sometimes I killed the running process (which is not sometimes easy if
NetBeans is rulled via GUI and you're trying be stronger the n automat:)
and then it happens....
Comment 6 dmladek 2002-10-29 15:30:58 UTC
Created attachment 7790 [details]
my full ide.log
Comment 7 Peter Zavadsky 2002-10-29 17:34:59 UTC
Hm, that's complicated. 
Anyway the Boxlayout is connected to the toolbar which is shown in the
source editor component. 

I don't know how it is implemented and where (java or editor?), and if
affects this issue.
But assigning there so the guys take a look on it too.
Comment 8 Svata Dedic 2003-01-14 09:08:36 UTC
The toolbar is realized by Editor module AFAIK -> reassigning
Comment 9 Miloslav Metelka 2003-03-05 17:46:13 UTC
I've found JDK issue
http://developer.java.sun.com/developer/bugParade/bugs/4411096.html
that is the same issue (xTotal or yTotal are null) just entered
against jdk1.3.
It's true that the toolbar instances are shared among the opened files
with the same corresponding mimetype and therefore they are
dynamically added/removed to/from the existing components which is
somewhat unusual. However the operations are done properly in the AWT
thread so there should be no ill behavior seen.
I'll update the JDK bug with link to this issue and then close this issue.
Comment 10 Miloslav Metelka 2003-03-06 09:57:41 UTC
I've updated the JDK issue. Closing as INVALID.
Comment 11 dmladek 2003-07-08 18:37:40 UTC
OK, agree with invalid