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 14600 - Exception thrown EVERY time file is saved.
Summary: Exception thrown EVERY time file is saved.
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-20 23:39 UTC by Peter Luttrell
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (26 bytes, text/plain)
2001-08-20 23:40 UTC, Peter Luttrell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Luttrell 2001-08-20 23:39:59 UTC
This is rc2 build for nb3.2. This bug is NEW to this build. It just started 
happening today AFTER i upgraded from rc1.

Whenever I hit control-s to save the current file (if it has been modified) I 
get the following exception. The file is still saved and the ui reflects.

Exception is very annoying and could cause some users to wonder if their work 
is being saved:

Mon Aug 20 17:37:23 CDT 2001: java.lang.NullPointerException: Posted StackTrace
Annotation: Exception occurred in Request Processor
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task 
org.netbeans.modules.editor.DORegistryListener$1@783c8a [-220, 1, -1])
        at org.openide.util.RequestProcessor$Task.createHolder
(RequestProcessor.java:322)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:100)
        at org.openide.util.RequestProcessor.postRequest
(RequestProcessor.java:185)
        at 
org.netbeans.modules.editor.DORegistryListener.addSavedSourcesToParserDB
(DORegistryListener.java:71)
        at org.netbeans.modules.editor.DORegistryListener.stateChanged
(DORegistryListener.java:62)
        at org.openide.util.WeakListener$Change.stateChanged
(WeakListener.java:583)
        at org.openide.loaders.DataObject$ModifiedRegistry.fireChangeEvent
(DataObject.java:976)
        at org.openide.loaders.DataObject$ModifiedRegistry.remove
(DataObject.java:960)
        at java.util.Collections$SynchronizedCollection.remove
(Collections.java:1108)
        at org.openide.loaders.DataObject.setModified(DataObject.java:387)
        at org.netbeans.modules.java.JavaDataObject.setModified
(JavaDataObject.java:433)
        at org.openide.text.DataEditorSupport$Env.unmarkModified
(DataEditorSupport.java:372)
        at org.openide.text.CloneableEditorSupport.notifyUnmodified
(CloneableEditorSupport.java:838)
        at org.openide.text.EditorSupport$Del.superNotifyUnmodified
(EditorSupport.java:614)
        at org.openide.text.EditorSupport.notifyUnmodified
(EditorSupport.java:435)
        at org.openide.text.EditorSupport$Del.notifyUnmodified
(EditorSupport.java:602)
        at org.openide.text.CloneableEditorSupport.saveDocument
(CloneableEditorSupport.java:395)
        at org.openide.text.EditorSupport$Del.superSaveDocument
(EditorSupport.java:739)
        at org.openide.text.EditorSupport.saveDocument(EditorSupport.java:263)
        at org.netbeans.modules.java.JavaEditor.saveDocument
(JavaEditor.java:379)
        at org.netbeans.modules.java.JavaEditor.saveDocument
(JavaEditor.java:361)
        at org.openide.text.EditorSupport$EntryEnv.save(EditorSupport.java:838)
        at org.openide.actions.SaveAction.performAction(SaveAction.java:46)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:92)
        at org.openide.util.actions.NodeAction.actionPerformed
(NodeAction.java:83)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:76)
        at org.openide.util.Task.run(Task.java:124)
[catch] at org.openide.util.RequestProcessor$ProcessorThread.run
(RequestProcessor.java:626)
 
Mon Aug 20 17:37:23 CDT 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at org.netbeans.modules.editor.java.JCUpdater.appendSource
(JCUpdater.java:224)
        at org.netbeans.modules.editor.java.JCUpdater.updateProviderOnBackground
(JCUpdater.java:420)
        at org.netbeans.modules.editor.java.JCUpdater.processNode
(JCUpdater.java:170)
        at org.netbeans.modules.editor.DORegistryListener$1.run
(DORegistryListener.java:79)
        at org.openide.util.Task.run(Task.java:124)
[catch] at org.openide.util.RequestProcessor$ProcessorThread.run
(RequestProcessor.java:626)
Comment 1 Peter Luttrell 2001-08-20 23:40:41 UTC
Created attachment 2234 [details]
log
Comment 2 Jan Zajicek 2001-08-21 10:56:03 UTC
The NPE is from editor module. Reassigning.

Note, that I tried to reproduce it with NB 3.2.1 build #98, with
userdir from nb 3.2 fcs and have to say that without success.
Comment 3 Miloslav Metelka 2001-08-21 13:47:13 UTC
Peter, could you please check whether the following steps would help?
1. Goto <userdir>/system/ParserDB
2. Remove (or move into another dir) the file storage.ser
3. Check whether the problem persists.

By removing storage.ser you will lose the parser db settings for
particular filesystems - name of the .jc? files that correspond to the
mounted filesystems and the storage levels for classes/fields/methods
but your parser databases will still work.

If this does not help could you please remove the parser db files (all
the files with .jcs and .jcb suffixes) too
and check whether it helps?

Thank you.
Mila
Comment 4 Martin Roskanin 2001-08-21 15:26:35 UTC
fixed in [maintrunk]
Comment 5 Miloslav Metelka 2001-08-21 16:59:26 UTC
As we are currently not able to reproduce the issue we only fix it in
trunk not in 3.2.1.
Comment 6 Peter Luttrell 2001-08-21 20:40:00 UTC
Mila-

I did the 3 steps that you indicated and the problem stopped 
happening.

This kind of bug is really nasty to the user because it relates to 
saving their work [even though the work appears to be saved]. 

In my opinion, it is not acceptable to ignore this issue in the 3.2.1 
branch, as this is going to hit users and users are going to stop 
using the tool. 

If this gets released this way, i sure as hell am not going to use it.
Comment 7 Jan Lahoda 2001-08-23 15:47:16 UTC
Hi, if it is OK to you, could you please send us your storage.ser file
and listing of files in your ParserDB directory?
Comment 8 David Konecny 2001-08-23 15:57:08 UTC
The problem is that 3.2.1 has already been released and so we are not 
able to put the fix there. I'm sorry. I'm going to close this issue, 
because it has been fixed.

Please, feel free to join nbusers mailing list and discuss this in 
public if you still feel that this is not right process and that it 
should be corrected.

Also if you can, please send us the files Jan asked you for, because 
it can help us to identify the exact cause of the problem.
Comment 9 Peter Luttrell 2001-08-23 17:59:24 UTC
Actually my storage.ser file is gone. When you guys mentioned i 
should remove it, i deleted it.

The contents of my paserdb folder are:
pd_prefix.jcb
pd_prefix.jcs
xerces_pd_prefix.jcb
xerces_pd_prefix.jcs
Comment 10 ehucka 2002-10-15 12:42:14 UTC
Verified in 200210150100
Comment 11 Quality Engineering 2003-06-30 18:11:30 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.