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.
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)
Created attachment 2234 [details] log
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.
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
fixed in [maintrunk]
As we are currently not able to reproduce the issue we only fix it in trunk not in 3.2.1.
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.
Hi, if it is OK to you, could you please send us your storage.ser file and listing of files in your ParserDB directory?
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.
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
Verified in 200210150100
Resolved for 3.3.x or earlier, no new info since then -> closing.