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 36578

Summary: [JDK1.5.0] IAE from XMLUtil
Product: platform Reporter: Milan Kubec <mkubec>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: VERIFIED FIXED    
Severity: blocker CC: pkuzel
Priority: P3 Keywords: JDK_SPECIFIC
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: exc stack trace
exc stack trace

Description Milan Kubec 2003-10-14 14:09:51 UTC
Informational IllegalStateException is thrown when
IDE is doing warmup after startup on JDK 1.5.0.
Comment 1 Milan Kubec 2003-10-14 14:10:15 UTC
Created attachment 11853 [details]
exc stack trace
Comment 2 pzajac 2003-10-14 14:17:10 UTC
reasigned to openide/code. 
Problem is at
org.openide.xml.XMLUtil.getDOMImplementation(XMLUtil.java:212)

Comment 3 Jesse Glick 2003-10-14 14:56:34 UTC
Probably some weirdness with the JDK's packaging of DOM classes vs.
Xerces; the JDK has been known to omit certain classes from a package
inexplicably. NbInstaller.isSpecialResource already has such a
workaround for org.w3c.dom, maybe it is needed also for org.w3c.dom.ls.
Comment 4 _ pkuzel 2003-10-14 15:11:08 UTC
or DOM2 (Xerces) vs. DOM3 (Tiger) ...
Comment 5 Jesse Glick 2003-10-14 15:22:11 UTC
Tiger has DOM3? Then that would surely cause some problems, yes...
looks like it in fact has some version of Xerces, too, unlike JDK 1.4.
Comment 6 _ pkuzel 2003-10-14 15:45:43 UTC
dom.ls is DOM3 package.

I remember that DOM3 was planned to be a part of Tiger.
Still, JSR #206 talks about DOM2.
Comment 7 Jesse Glick 2003-10-14 16:49:35 UTC
I can reproduce.
Comment 8 Jesse Glick 2003-10-14 17:28:29 UTC
Patching NbInstaller to special-case this package seems to work.
Comment 9 Jesse Glick 2003-10-14 17:29:24 UTC
1. Occurs on Linux too. 2. Not necessarily informational; can block
opening the main window completely.
Comment 10 Milan Kubec 2003-10-16 12:37:12 UTC
You are right Jesse, just happened to me that IDE didn't startup and
exception was thrown to console and window as well.
Comment 11 Milan Kubec 2003-10-16 12:37:47 UTC
Created attachment 11883 [details]
exc stack trace
Comment 12 Jesse Glick 2003-10-16 15:55:51 UTC
Hopefully fixed:

committed     Up-To-Date  1.72       
core/src/org/netbeans/core/modules/NbInstaller.java
Comment 13 Milan Kubec 2003-11-10 09:25:32 UTC
Verified. This exc is not thrown during startup.