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 20487 - null pointer exception at TreeEditorComponent.closeLast()
Summary: null pointer exception at TreeEditorComponent.closeLast()
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-13 00:23 UTC by Kolin Ohi
Modified: 2003-07-02 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (ide.log) w/exception (207.19 KB, text/plain)
2002-02-13 00:24 UTC, Kolin Ohi
Details
screenshot of error (96.89 KB, image/gif)
2002-02-13 19:33 UTC, Kolin Ohi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kolin Ohi 2002-02-13 00:23:03 UTC
not sure where the problem is, but it seems to be in the some new XML I 
downloaded today - exception happens in XMLSettingsSupport.java
Comment 1 Kolin Ohi 2002-02-13 00:24:07 UTC
Created attachment 4669 [details]
log file (ide.log) w/exception
Comment 2 _ lkramolis 2002-02-13 14:44:49 UTC
Please, could you add steps to reproduce it? I am not able to do it.
Try to remove your userdir before start IDE.
Comment 3 Kolin Ohi 2002-02-13 18:21:33 UTC
It seems to happen only when I first start.  But it's not 
predictable - I'm having a hard time reproducing it, too - I removed 
the userdir, and I didn't get the exception, so maybe it's unrelated 
to the source?

When I put the userdir back again, I got the exception again.  It 
happens on switching to the "edit" tab when there are no files open 
(except the default 'untitled').  After the exception, the untitled 
window locks up. If I want to get rid of it, I have to start the IDE 
again- I am able, however, to open other files, etc. -

(Sorry - I'm a Java novice and am probably not providing helpful 
information.)

I also know that I've had a lot of strange problems with Java in 
Oracle because I'm working on a dual P4 and there's some conflict 
between the P4 and the JIT compiler...

Here's the info on my system from the log:
----------------------------------------------------------------------
---------
>Log Session: Tuesday, February 12, 2002 1:23:17 PM PST
>System Info: 
  Product Version       = NetBeans IDE Version 3.3 (Build 
200112102331)
  IDE Versioning        = IDE/1 spec=1.43.1.1 impl=200112102331
  Operating System      = Windows 2000 version 5.0 running on x86
  Java; VM; Vendor      = 1.3.1_02; Java HotSpot(TM) Client VM 
1.3.1_02-b02; Sun Microsystems Inc.
  Java Home             = C:\JDK13~1.1_0\jre
  System Locale         = en_US
  Home Dir; Current Dir = C:\Documents and Settings\Kolin; c:\netbeans
  IDE Install; User Dir = C:\netbeans; c:\netbeans\stuff
  CLASSPATH             = C:\netbeans\lib\patches\openide-
compat.jar;C:\netbeans\lib\core.jar;C:\netbeans\lib\openide.jar;C:\net
beans\lib\ext\locale\ddl_ja.jar;C:\netbeans\lib\ext\crimson.jar;C:\net
beans\lib\ext\ddl.jar;C:\netbeans\lib\ext\idlcompilers.jar;C:\netbeans
\lib\ext\jh.jar;C:\netbeans\lib\ext\logger.jar;C:\netbeans\lib\ext\ope
norb-1.0.2.jar;C:\netbeans\lib\ext\regexp.jar;C:\netbeans\lib\ext\rmi-
ext.jar;C:\netbeans\lib\ext\terminalemulator.jar;C:\netbeans\lib\ext\x
erces.jar;C:\JDK13~1.1_0\lib\dt.jar;C:\JDK13~1.1_0\lib\tools.jar
Comment 4 _ lkramolis 2002-02-13 18:45:09 UTC
Thanks for reply.

Please, could explain 'untitled' window? What kind of window it is?
Source Editor, XML Tree Editor, ...? Screen shot would help me. Thanks.
Comment 5 Kolin Ohi 2002-02-13 19:33:15 UTC
Created attachment 4695 [details]
screenshot of error
Comment 6 Kolin Ohi 2002-02-13 19:34:15 UTC
hey - just attached a screenshot - by the untitled window, I meant 
the one that pops up on startup (Source editor - Untitled) - 

-k
Comment 7 _ lkramolis 2002-02-14 16:51:46 UTC
I sorry, I am not able to find, where the problem is.

I would like to suggest ugly workaround. Find in folder
c:\netbeans\stuff\system\Projects\*\system\Windows\ folowing files:

    Components\struts-form.settings
    WindowManager\*\editor\struts-form.wstcref

and remove them.

Please tyr it and let me know. Thanks.
Comment 8 _ lkramolis 2002-02-14 17:17:23 UTC
Beginning of problem is described in issue 19687.
Comment 9 _ lkramolis 2002-02-14 17:33:34 UTC
I probably found problem and already fixed it in dev build.
Comment 10 Martin Schovanek 2002-07-24 14:51:44 UTC
VERIFIED
Comment 11 Quality Engineering 2003-07-02 08:38:26 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.