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.
XMLData object throws NPE and the exception is rethrown always a key is tyed in the XML editor. The XML module is unusable, user is not able to write layer file <==> develop NB nodule.
Created attachment 11737 [details] Stack Trace
It's possible that there is some non Node.Cookie subclass registered by loaders.XMLDataObject.Processor. Anyway it looks rather like some AbstractLookup problem (casting to Object[]?).
I talked with Tomas and it is OK for him to wait till Yarda is back on Monday.
*** Issue 36361 has been marked as a duplicate of this issue. ***
I have created XML file from template (XML/XML Document), switched to editor and typed a key. No exception shown. As the bug says always it seems to me that it works for me.
Created attachment 11788 [details] If there was a way to reproduce the problem, this would probably be the fix
Sorry, I am able to reproduce the issue even with attached patch.
That is bad, but I need a way to reproduce that bug. I still have not succeeded. The intermitent nature of the issue probably lowers its priority.
No new info? I could add some logging code there, but I need the issue to be reproducible.
No reliable steps to reproduce provided, closing.
*** Issue 36430 has been marked as a duplicate of this issue. ***
*** Issue 37262 has been marked as a duplicate of this issue. ***
I found I can reproduce this at home by disabling *any* module. I don't know if it makes a difference that I'm running a dual processor machine. I'll do a build tonight off of today's trunk and re-close if I can't reproduce it.
Created attachment 12278 [details] Adds logging
Tim, I have added a patch to enable logging of AbstractLookup operations. If you can run the ide as ./netbeans/bin/runide.sh -userdir testuserdir -J-Dorg.openide.util.lookup.AbstractLookup=true reproduce the problem and send me the output I would be very thankful.
Still no way to reproduce. Lowering priority.
Still not reproducible.
FYI, with the current build I just got a very similar stack trace on *startup* (and the IDE never started). Starting the next time worked fine. Reopening - perhaps it's unrelated, but it's close enough that I'm not so sure.
Created attachment 12360 [details] stack trace from startup
Tim you are right, this is a related exception. As you are only one who can reproduce the problem have you had a chance to try the patched version with logging? It would be very valuable to reproduce that problem and have additional information.
Okay, which diff do I apply, the first, the second or both?
The one that adds logging.
Petr, is not here somebody who could reproduce this problem on multiprocessor machine? Otherwise I am affraid I am not going to have a chance to fix it as it works for me.
Just reproduced again on Netbeans startup using today's trunk, with a popup dialog saying Xerces is already on the boot classpath (note the entry at the end - "New modules:org.netbeans.libs.xerces/1 [1.3.1 2.4.0]" ------------------------------------------------------------------------------- >Log Session: Tuesday, December 9, 2003 10:16:18 PM CET >System Info: Product Version = NetBeans IDE Dev (Build ${buildnumber}) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.4.2-beta; Java HotSpot(TM) Client VM 1.4.2-beta-b19; Sun M icrosystems Inc. Java Home = C:\j2sdk1.4.2\jre System Locale; Encod. = en_US; Cp1252 Home Dir; Current Dir = C:\Documents and Settings\Tim; F:\space\nb_all\nbbuild\netbe ans\bin IDE Install; User Dir = F:\space\nb_all\nbbuild\netbeans; C:\Documents and Settings\ Tim\.netbeans\dev CLASSPATH = F:\space\nb_all\nbbuild\netbeans\lib\ext\boot.jar;C:\j2sdk1. 4.2\lib\dt.jar;C:\j2sdk1.4.2\lib\tools.jar Boot & ext classpath = C:\j2sdk1.4.2\jre\lib\rt.jar;C:\j2sdk1.4.2\jre\lib\i18n.jar; C:\j2sdk1.4.2\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2\jre\lib\jsse.jar;C:\j2sdk1.4.2\jre\ lib\jce.jar;C:\j2sdk1.4.2\jre\lib\charsets.jar;C:\j2sdk1.4.2\jre\classes;C:\j2sdk1.4.2 \jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2\jre\lib\ext \sunjce_provider.jar;C:\j2sdk1.4.2\jre\lib\ext\localedata.jar Dynamic classpath = F:\space\nb_all\nbbuild\netbeans\lib\core.jar;F:\space\nb_al l\nbbuild\netbeans\lib\openfile-cli.jar;F:\space\nb_all\nbbuild\netbeans\lib\openide-l oaders.jar;F:\space\nb_all\nbbuild\netbeans\lib\openide.jar ------------------------------------------------------------------------------- [org.netbeans.core.modules] *********** Exception occurred ************ at Tue Dec 09 22:16:19 CET 2003 Annotation: Error encountered while reading Modules/org-netbeans-libs-xerces.xml java.lang.ClassCastException at org.openide.util.lookup.AbstractLookup$R.getInstancesCache(AbstractLookup.j ava:572) at org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:6 74) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:369) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:320) at org.openide.modules.InstalledFileLocator$1.locate(InstalledFileLocator.java :144) at org.netbeans.core.modules.Util.findLocaleVariantsOf(Util.java:119) at org.netbeans.core.modules.Module.findExtensionsAndVariants(Module.java:586) at org.netbeans.core.modules.Module.<init>(Module.java:140) at org.netbeans.core.modules.ModuleManager.create(ModuleManager.java:460) [catch] at org.netbeans.core.modules.ModuleList$1.run(ModuleList.java:379) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:89) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:415) at org.netbeans.core.modules.ModuleList.readInitial(ModuleList.java:259) at org.netbeans.core.modules.ModuleSystem.readList(ModuleSystem.java:262) at org.netbeans.core.NonGui.run(NonGui.java:340) at org.netbeans.core.Main.run(Main.java:271) at org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:231) at org.netbeans.core.NbTopManager.get(NbTopManager.java:190) at org.netbeans.core.Main.start(Main.java:460) at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:86) at java.lang.Thread.run(Thread.java:534) [org.netbeans.core.modules #4] Warning - had to upgrade dependencies for module org.ne tbeans.modules.cvsclient: added = [module org.netbeans.libs.regexp > 1.2] removed = [p ackage [org.apache.regexp.RE]]; details: [Regexp is now available only as an autoload module, not on classpath: http://libs.netbeans.org/#regexp] [org.netbeans.core.modules #4] WARNING: Class-Path value ../../ant/lib/ant.jar from F: \space\nb_all\nbbuild\netbeans\modules\eager\jsp-parser.jar is illegal according to th e Java Extension Mechanism: must be relative and not move up directories New modules: org.netbeans.libs.xerces/1 [1.3.1 2.4.0]
Well, cool, Jarda, I tried your logging patch and the problem appeared on the very first run with it (maybe the logging affects the timing of it?). Good luck reading it, though - startup took over a minute of logging streaming by. Whatever AbstractLookup is doing, I hope we've optimized the heck out of it. Whoa, and lots more logging when I shut down.
Created attachment 12490 [details] 2Mb of AbstractLookup logging when the problem happened for your reading pleasure
Changing the priority, sorry, it doesn't seem like P5 to me if it's producing strange error messages about duplicate libraries on startup.
BTW, are you aware that simply holding down the CTRL key in the editor generates hundreds of calls per second to the AbstractLookup code that's logging?
Checking in src/org/openide/util/lookup/AbstractLookup.java; /cvs/openide/src/org/openide/util/lookup/AbstractLookup.java,v <-- AbstractLookup.java new revision: 1.45; previous revision: 1.44 done Processing log script arguments... More commits to come... Checking in test/unit/src/org/openide/util/lookup/AbstractLookupTest.java; /cvs/openide/test/unit/src/org/openide/util/lookup/AbstractLookupTest.java,v <-- AbstractLookupTest.java new revision: 1.25; previous revision: 1.24
*** Issue 38054 has been marked as a duplicate of this issue. ***
verified duplicate