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 40729 - [JDK1.5.0] NullPointerException in PersistenceManager while changing projects
Summary: [JDK1.5.0] NullPointerException in PersistenceManager while changing projects
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: PERFORMANCE, RANDOM
: 39686 40751 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-03 14:55 UTC by jekewa
Modified: 2008-12-22 20:55 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
2 FTDs created with delay 5-10 minutes (16.68 KB, text/plain)
2004-03-10 15:24 UTC, dmladek
Details
Checks for getMessage() (1.89 KB, patch)
2004-03-11 14:51 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jekewa 2004-03-03 14:55:15 UTC
This is probably in the wrong Issuezilla component...

While switching between the previous
(automatically opened) project and the Default
project (the only other one in my list at the
moment), a NullPointerException was thrown with a
message box urging me to notify NetBeans/issues.

Upon starting NetBeans, I selected the Project
menu Project Manager item, selected the Default
project from the list, and then selected the Open
button. The IDE cleared the Explorer view, seemed
to pause (presumably parsing the project), and
presented the error.

This is a test configuration with NetBeans 3.6Beta
and J2SE SDK 1.5.0 (Beta).

I have experienced this problem in previous
versions of NetBeans with no apparent ill effects
other than the message. I submit this only to aid
debugging of the new release.

The log for this session (to this point) follows.

-------------------------------------------------------------------------------
>Log Session: Wednesday, March 3, 2004 8:35:44 AM CST
>System Info:
  Product Version       = NetBeans IDE 3.6 Beta
(Build 200402042050)
  Operating System      = SunOS version 5.9
running on sparc
  Java; VM; Vendor      = 1.5.0-beta; Java
HotSpot(TM) Client VM 1.5.0-beta-b32c; Sun
Microsystems Inc.
  Java Home             = /usr/local/j2sdk1.5.0/jre
  System Locale; Encod. = en_US; ISO8859-1
  Home Dir; Current Dir = /u1/jkwarren; /u1/jkwarren
  IDE Install; User Dir =
/usr/local/NetBeans3.6Beta;
/u1/jkwarren/.netbeans/3.6_Beta
  CLASSPATH             =
/usr/local/NetBeans3.6Beta/lib/ext/boot.jar:/usr/local/j2sdk1.5.0/lib/dt.jar:/usr/local/j2sdk1.5.0/lib/htmlconverter.jar:/usr/local/j2sdk1.5.0/lib/sa-jdi.jar:/usr/local/j2sdk1.5.0/lib/tools.jar
  Boot & ext classpath  =
/usr/local/NetBeans3.6Beta/modules/autoload/ext/jh-2.0_01.jar:/usr/local/j2sdk1.5.0/jre/lib/rt.jar:/usr/local/j2sdk1.5.0/jre/lib/i18n.jar:/usr/local/j2sdk1.5.0/jre/lib/sunrsasign.jar:/usr/local/j2sdk1.5.0/jre/lib/jsse.jar:/usr/local/j2sdk1.5.0/jre/lib/jce.jar:/usr/local/j2sdk1.5.0/jre/lib/charsets.jar:/usr/local/j2sdk1.5.0/jre/classes:/usr/local/j2sdk1.5.0/jre/lib/ext/sunjce_provider.jar:/usr/local/j2sdk1.5.0/jre/lib/ext/sunpkcs11.jar:/usr/local/j2sdk1.5.0/jre/lib/ext/dnsns.jar:/usr/local/j2sdk1.5.0/jre/lib/ext/localedata.jar
  Dynamic classpath     =
/usr/local/NetBeans3.6Beta/lib/core.jar:/usr/local/NetBeans3.6Beta/lib/openide.jar:/usr/local/NetBeans3.6Beta/lib/openide-loaders.jar:/usr/local/NetBeans3.6Beta/lib/openfile-cli.jar
-------------------------------------------------------------------------------
[org.netbeans.core.modules #4] WARNING: Class-Path
value ../../ant/lib/ant.jar from
/usr/local/NetBeans3.6Beta/modules/eager/jsp-parser.jar
is illegal according to the Java Extension
Mechanism: must be relative and not move up
directories
[org.netbeans.core.modules #6] Warning: the module
org.netbeans.modules.jarpackager uses
org.netbeans.libs.regexp which is deprecated: JDK
1.4 includes regular expression support which
should be used instead:
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#4.0-jre-regexp
[org.netbeans.core.modules #6] Warning: the module
org.netbeans.modules.projects uses
org.openide.deprecated which is deprecated:
Clients of obsoleted Open APIs are encouraged to
remove this dependency. See
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-I
[org.netbeans.core.modules #6] Warning: the module
org.netbeans.modules.i18n uses
org.netbeans.libs.regexp which is deprecated: JDK
1.4 includes regular expression support which
should be used instead:
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#4.0-jre-regexp
Turning on modules:
        org.openide/1 [4.23 200402042050]
        org.openide.loaders [4.11 200402042050]
        org.netbeans.core/1 [1.21 200402042050]
        org.openide.io [1.1 200402042050]
        org.netbeans.lib.terminalemulator [1.1
200402042050]
        org.netbeans.core.output/1 [1.1 200402042050]
        org.openide.execution [1.1 200402042050]
        org.openide.src [1.1 200402042050]
        org.openide.compiler [1.2 200402042050]
        org.netbeans.core.compiler/1 [1.4
200402042050]
        org.openide.debugger [1.1 200402042050]
        org.netbeans.core.execution/1 [1.3
200402042050]
        org.openide.deprecated [1.3 200402042050]
        org.netbeans.core.deprecated [1.3
200402042050]
        org.netbeans.modules.servletapi24/1 [2.0
2.0 200402042050]
        org.netbeans.libs.xalan/1 [1.4 2.5.2]
        org.netbeans.libs.jaxp/1 [1.2 1.1.2]
        org.netbeans.api.xml/1 [1.2.3.6.0 3.6.0
200402042050]
        org.netbeans.modules.xml.core/2 [1.0.3.6.0
3.6.0 200402042050]
        org.netbeans.modules.xml.catalog/2
[1.0.3.6.0 3.6.0 200402042050]
        org.netbeans.modules.settings/1 [1.4
200402042050]
        org.netbeans.modules.text/1 [1.12
200402042050]
        org.netbeans.modules.extbrowser/1 [1.3
200402042050]
        org.netbeans.modules.servletapi/1 [1.3
200402042050]
        org.netbeans.libs.regexp [1.2 1.2]
        org.netbeans.modules.jarpackager/2 [1.14
200402042050]
        org.openidex.util/2 [2.7 200402042050]
        org.netbeans.modules.web.jspparser/2 [2.0
200402042050]
        org.netbeans.modules.j2eeapis/1 [1.0
200402042050]
        org.netbeans.modules.javahelp/1 [2.1
200402042050]
        org.netbeans.modules.schema2beans/1 [1.7
200402042050]
        org.netbeans.api.java/1 [1.3 200402042050]
        org.netbeans.libs.j2eeeditor/1 [1.1
200402042050]
        org.netbeans.modules.debugger.core/3 [2.10
200402042050]
        org.netbeans.modules.j2eeserver/3 [1.1
200402042050]
        org.netbeans.modules.projects/1 [1.14
200402042050]
        org.netbeans.api.web.dd/1 [1.1 1.0
200402042050]
        org.netbeans.modules.editor/1 [1.14
200402042050]
        org.netbeans.modules.xml.text/2 [1.0.3.6.0
3.6.0 200402042050]
        org.netbeans.modules.html/1 [1.12
200402042050]
        org.netbeans.modules.web.core.syntax/1
[1.13 200402042050]
        org.netbeans.modules.classfile/1 [1.8
200402042050]
        org.netbeans.modules.java/1 [1.16
200402042050]
        org.netbeans.modules.web.core/1 [1.17
200402042050]
        org.netbeans.modules.web.taglibed/1
[1.12.3.6.0 200402042050]
        org.netbeans.tasklistapi/1 [1.6.2 2
200402042050]
        org.netbeans.modules.tasklist.core/2
[1.21.22 2 200402042050]
        org.netbeans.modules.properties/1 [1.11
200402042050]
        org.netbeans.modules.properties.syntax/1
[1.11 200402042050]
        org.netbeans.modules.vcscore/1 [1.9
200402042050]
        org.netbeans.modules.css/2 [1.0.3.6.0
3.6.0 200402042050]
        org.netbeans.modules.debugger.jpda/1 [1.17
200402042050]
        org.netbeans.modules.web.ie/1 [1.16
200402042050]
        org.netbeans.modules.httpserver/1 [1.13
200402042050]
        org.netbeans.modules.web.monitor/1 [1.9
200402042050]
        org.netbeans.modules.xsl/1 [1.0.3.6.0
3.6.0 200402042050]
        org.netbeans.modules.diff/1 [1.7 200402042050]
        org.netbeans.modules.vcs.advanced/1 [1.9
200402042050]
        org.netbeans.lib.cvsclient/1 [1.8
200402042050]
       
org.netbeans.modules.vcs.profiles.cvsprofiles/1
[1.3 200402042050]
        org.netbeans.modules.cvsclient/1 [2.0
200402042050]
        org.netbeans.core.windows/2 [2.0 200402042050]
        org.netbeans.modules.group/1 [1.0
200402042050]
        org.netbeans.modules.beans/1 [1.11
200402042050]
        org.netbeans.modules.vcs.profiles.vss/1
[1.3 200402042050]
        org.netbeans.modules.junit/2 [2.11
200402042050]
        org.netbeans.modules.clazz/1 [1.13
200402042050]
        org.netbeans.core.ui/1 [1.3 200402042050]
        org.netbeans.core.ide/1 [1.3 200402042050]
        org.netbeans.modules.vcs.profiles.pvcs/1
[1.3 200402042050]
        org.netbeans.modules.utilities/1 [1.15
200402042050]
        org.netbeans.modules.autoupdate/1 [2.8
200402042050]
        org.netbeans.modules.welcome/1 [1.5
200402042050]
        org.netbeans.libs.xerces/1 [1.4 2.6.0]
        org.netbeans.modules.usersguide/1 [1.13
200402042050]
        org.netbeans.modules.xml.tax/2 [1.0.3.6.0
3.6.0 200402042050]
       
org.netbeans.modules.suggestions_framework/2
[1.1.224 4 200402042050]
        org.netbeans.modules.image/1 [1.11
200402042050]
        org.netbeans.modules.xml.tools/2
[1.0.3.6.0 3.6.0 200402042050]
        org.netbeans.modules.vcs.cmdline.compat/1
[1.3 200402042050]
        org.netbeans.modules.form/2 [1.13
200402042050]
        org.netbeans.modules.i18n/1 [1.13
200402042050]
        org.netbeans.modules.i18n.form/2 [1.12
200402042050]
        org.netbeans.modules.xml.schema/1
[1.0.3.6.0 3.6.0 200402042050]
        org.netbeans.modules.db/1 [1.8 200402042050]
        org.netbeans.modules.applet/1 [1.14
200402042050]
        org.apache.tools.ant.module/3 [3.6
200402042050]
        org.netbeans.modules.updatecenters/1 [1.0
200402042050]
        org.netbeans.modules.javadoc/1 [1.11
200402042050]
        org.netbeans.modules.tomcat5/1 [1.0
200402042050]
        org.netbeans.modules.tomcat5.bundled/1
[1.0 200402042050]
        org.netbeans.modules.web.debug/1 [2.0
200402042050]
        org.netbeans.modules.tasklist.docscan/2
[1.12.2243 3 200402042050]
Warning: unknown module code base:
org.netbeans.modules.kjava in
Services/org-netbeans-modules-kjava-settings-J2MESettings.settings
[org.openide.loaders.XMLDataObject[J2EE/DeploymentPlugins/Tomcat5/DeploymentFileNames/WAR/META-INF\context.xml]]
INFORMATIONAL *********** Exception occurred
************ at Wed Mar 03 08:36:39 CST 2004
Annotation: DocListener should not throw
SAXException but STOP one.
Thread:Folder recognizer
org.xml.sax.SAXException: STOP
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
[catch] at
org.openide.loaders.XMLDataObject$InfoParser.waitFinished(XMLDataObject.java:1151)
        at
org.openide.loaders.XMLDataObject.getCookie(XMLDataObject.java:266)
        at
org.openide.loaders.FolderInstance.acceptDataObject(FolderInstance.java:337)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:619)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at
org.openide.loaders.FolderLookup.postCreationTask(FolderLookup.java:234)
        at
org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:589)
        at
org.openide.loaders.FolderInstance$Listener.finished(FolderInstance.java:864)
        at
org.openide.loaders.FolderList.createBoth(FolderList.java:770)
        at
org.openide.loaders.FolderList.getObjects(FolderList.java:476)
        at
org.openide.loaders.FolderList.access$200(FolderList.java:50)
        at
org.openide.loaders.FolderList$ListTask.run(FolderList.java:841)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
        at
org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:429)
        at
org.openide.loaders.FolderInstance.waitFinished(FolderInstance.java:273)
        at
org.openide.loaders.FolderInstance.instanceCreate(FolderInstance.java:229)
        at
org.openide.loaders.FolderLookup.instanceForCookie(FolderLookup.java:196)
        at
org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:961)
        at
org.openide.loaders.FolderLookup.createInstance(FolderLookup.java:140)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:704)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at
org.openide.loaders.FolderLookup.postCreationTask(FolderLookup.java:234)
        at
org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:589)
        at
org.openide.loaders.FolderInstance$Listener.finished(FolderInstance.java:864)
        at
org.openide.loaders.FolderList.createBoth(FolderList.java:770)
        at
org.openide.loaders.FolderList.getObjects(FolderList.java:476)
        at
org.openide.loaders.FolderList.access$200(FolderList.java:50)
        at
org.openide.loaders.FolderList$ListTask.run(FolderList.java:841)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
        at
org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:429)
        at
org.openide.loaders.FolderInstance.waitFinished(FolderInstance.java:273)
        at
org.openide.loaders.FolderInstance.instanceCreate(FolderInstance.java:229)
        at
org.openide.loaders.FolderLookup.instanceForCookie(FolderLookup.java:196)
        at
org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:961)
        at
org.openide.loaders.FolderLookup.createInstance(FolderLookup.java:140)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:704)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at
org.openide.loaders.FolderLookup.postCreationTask(FolderLookup.java:234)
        at
org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:589)
        at
org.openide.loaders.FolderInstance$Listener.finished(FolderInstance.java:864)
        at
org.openide.loaders.FolderList.createBoth(FolderList.java:770)
        at
org.openide.loaders.FolderList.getObjects(FolderList.java:476)
        at
org.openide.loaders.FolderList.access$200(FolderList.java:50)
        at
org.openide.loaders.FolderList$ListTask.run(FolderList.java:841)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:680)
*********** Exception occurred ************ at Wed
Mar 03 08:37:19 CST 2004
Annotation: Cannot create components folder Components
org.openide.filesystems.FileStateInvalidException:
File Components cannot be found in folder
Windows2Local.
        at
org.openide.filesystems.MultiFileObject.createFolder(MultiFileObject.java:879)
        at
org.openide.filesystems.FileUtil.createFolder(FileUtil.java:176)
[catch] at
org.netbeans.core.windows.persistence.PersistenceManager.getComponentsLocalFolder(PersistenceManager.java:246)
        at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:453)
        at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:565)
        at
org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:203)
        at
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab.findDefault(CurrentProjectNode.java:413)
        at
org.netbeans.modules.projects.SelectInProjectsTabAction.enable(SelectInProjectsTabAction.java:43)
        at
org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:121)
        at
org.openide.awt.Actions$MenuBridge.updateState(Actions.java:458)
        at
org.openide.awt.Actions.connect(Actions.java:104)
        at
org.openide.awt.Actions.connect(Actions.java:91)
        at
org.openide.awt.Actions$MenuItem.<init>(Actions.java:716)
        at
org.netbeans.modules.openide.awt.DefaultAWTBridge.createMenuPresenter(DefaultAWTBridge.java:33)
        at
org.openide.util.actions.CallableSystemAction.getMenuPresenter(CallableSystemAction.java:41)
        at
org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:445)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:704)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.awt.AWTTask.run(AWTTask.java:29)
        at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:201)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
*********** Exception occurred ************ at Wed
Mar 03 08:37:19 CST 2004
java.lang.NullPointerException
        at
org.netbeans.core.windows.persistence.PersistenceManager.findTopComponentDataObject(PersistenceManager.java:586)
        at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:453)
        at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:565)
        at
org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:203)
        at
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab.findDefault(CurrentProjectNode.java:413)
        at
org.netbeans.modules.projects.SelectInProjectsTabAction.enable(SelectInProjectsTabAction.java:43)
        at
org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:121)
        at
org.openide.awt.Actions$MenuBridge.updateState(Actions.java:458)
        at
org.openide.awt.Actions.connect(Actions.java:104)
        at
org.openide.awt.Actions.connect(Actions.java:91)
        at
org.openide.awt.Actions$MenuItem.<init>(Actions.java:716)
        at
org.netbeans.modules.openide.awt.DefaultAWTBridge.createMenuPresenter(DefaultAWTBridge.java:33)
        at
org.openide.util.actions.CallableSystemAction.getMenuPresenter(CallableSystemAction.java:41)
        at
org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:445)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:704)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.awt.AWTTask.run(AWTTask.java:29)
        at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:201)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 psuk 2004-03-04 11:21:57 UTC
Assigning to core for evaluation
Comment 2 _ ttran 2004-03-06 10:48:30 UTC
Jeff: is the bug reproducible or did it happen only randomly?

Jesse: I remember you mentioned there is a bug in jdk 1.5? can it
cause this one?
Comment 3 Jesse Glick 2004-03-06 22:50:55 UTC
Don't know anything about it.
Comment 4 Marian Mirilovic 2004-03-08 10:50:40 UTC
I'm sorry but I can't reproduce it.

Jeff,
have you used new userdir , what have you opened in "old project" and
what in the new one,.... ?

decreasing priority to P3, I think you can use IDE and open not opened
window again .....
Comment 5 Jiri Rechtacek 2004-03-10 09:46:54 UTC
*** Issue 40831 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Rechtacek 2004-03-10 09:47:19 UTC
*** Issue 40831 has been marked as a duplicate of this issue. ***
Comment 7 dmladek 2004-03-10 11:07:53 UTC
Please, see my last comments in marked duplicate...
I'm afraid of this is big problem in NB36 (not sure how it is related
yet to JDK1.5) Thus I'm increasing the priority to P2.
Comment 8 _ ttran 2004-03-10 13:18:16 UTC
this is probably not window system.  Yarda, please

Annotation: DocListener should not throw
SAXException but STOP one.
Thread:Folder recognizer
org.xml.sax.SAXException: STOP
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
[catch] at
org.openide.loaders.XMLDataObject$InfoParser.waitFinished(XMLDataObject.java:1151)
        at
org.openide.loaders.XMLDataObject.getCookie(XMLDataObject.java:266)
        at
org.openide.loaders.FolderInstance.acceptDataObject(FolderInstance.java:337)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:619)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at
org.openide.loaders.FolderLookup.postCreationTask(FolderLookup.java:234)
        at
org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:589)

Comment 9 dmladek 2004-03-10 15:10:44 UTC
Removing JDK1.5 kw 'cause it's happening on jdk1.4.2_03 too.
(I've used yesturday dev build 2004-03-08-1900)
Comment 10 dmladek 2004-03-10 15:19:40 UTC
I've spoke with Marian and he still think it is jdk1.5 specific and
doeasn't accept my reproduction because I'm alwas using my old user
dir and once run on jdk1.5 and then on jdk1.4

Also removing NO36 kw 'cause originaly it was reproted on the NB36
Beta branch. Also it is in current DEV. Thus I think it must be in
NB36 branch too.
Comment 11 dmladek 2004-03-10 15:24:45 UTC
Created attachment 13924 [details]
2 FTDs created with delay 5-10 minutes
Comment 12 dmladek 2004-03-10 15:30:23 UTC
In  the first FTD you could see Automount thread to do something after
I've expand CVS FS with nb_all sources.
Explorer became unusable for this 5-10 minutes. Then I've created
second FTD (the CPU usage became normal) and no automount thread is
present...


things get very strange :-/
Seems that on jdk1.4 it is more stable....
Comment 13 _ ttran 2004-03-10 16:17:08 UTC
dmladek, don't mix things together.  This bug is about NPE when
changing  projects.  What your thread dumps have to do with that?
Comment 14 dmladek 2004-03-10 17:00:19 UTC
Trung, my bug was marked as duplicate of this one... And in that bug I
express doubt that it is not duplicate...
So I only continue reporting to my bug (which by marking duplicate
somehow became forgotten:-(
Thanks for comfirming they are differnet.
Comment 15 dmladek 2004-03-10 17:08:15 UTC
adding back kw JDK_1.5 kw and lowering the priority back to P3 (it's
not the same bug as mentioned duplicate)
Comment 16 jekewa 2004-03-10 22:50:25 UTC
My bad for not keeping on top of this.

It is not reliably reproducable, in that I cannot "force" it to
happen, but it is just a little less than infrequent, but more than
rare. It happens when NB is the first thing I do, or one of the last,
after starting a system.

It does happen from time-to-time on both NB3.5.1 and NB3.6 Beta, and
on both JDK 1.4 and JDK 1.5 Beta. And on both Windows and Solaris. I
don't do as much on my LINUX as the other two boxes seriously
outperform that one; I don't recall it occurring there, but again it's
not happening frequently.

Also, as mentioned, I only brought this up to help the development of
NB3.6 and the use of JDK 1.5. It did happen before, and I am able to
work after the error without any apparent ill effect.

I will try to keep my eyes opened for the occurrances and post the
appropriate log portions as attachments. I'll also try to throw my
fresh eyes at the code, too.
Comment 17 _ ttran 2004-03-11 13:08:35 UTC
-> pnejedly

please implement the hotfix, check for folder == null ...
Comment 18 Jaroslav Tulach 2004-03-11 14:50:34 UTC
In my opinion the 

Annotation: DocListener should not throw
SAXException but STOP one.
Thread:Folder recognizer
org.xml.sax.SAXException: STOP

could be caused by our sax parser handler throwing StopSaxException
(which is expected), but somewhere in the middle the parse probably
catches the SAXException and wraps it by its own. Simple hotfix could
be to check for ex.getMessage(), imho.
Comment 19 Jaroslav Tulach 2004-03-11 14:51:12 UTC
Created attachment 13948 [details]
Checks for getMessage()
Comment 20 Petr Nejedly 2004-03-11 15:55:13 UTC
Yes, it seems so.
I'm going to apply the hotfix to trunk and drive the review process.
Comment 21 Petr Nejedly 2004-03-11 15:58:37 UTC
Yarda's hotfix applied.
I'd like to apply it to release36 as well.
Comment 22 Petr Nejedly 2004-03-11 16:03:54 UTC
Fix by Yarda, reviewed by me.
Comment 23 _ ttran 2004-03-11 16:10:27 UTC
I am not sure if this really fixes the problem.  The patch provides
better diagnostics but I don't see how it can prevent the NPE in
winsys.  Wrong?
Comment 24 Petr Nejedly 2004-03-11 16:21:50 UTC
My understanding:
The problem is neither winsys nor broken xml file.

What happens: XML is correct but during recognition, our stop-marker
is not recognized->xml file is treated as broken and can't give out
correct instance -> NPE
Comment 25 Petr Nejedly 2004-03-12 10:46:04 UTC
Integrated to release36 branch
openide/loaders/src/org/openide/loaders/XMLDataObject.java,v1.10.2.1

Comment 26 Marian Mirilovic 2004-03-13 11:44:36 UTC
verified in [nb_36](200403121830)
Comment 27 David Konecny 2004-04-02 07:55:36 UTC
*** Issue 40751 has been marked as a duplicate of this issue. ***
Comment 28 David Konecny 2004-04-02 07:56:16 UTC
*** Issue 39686 has been marked as a duplicate of this issue. ***