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 39094 - Avoid direct use of Xerces
Summary: Avoid direct use of Xerces
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: ARCH
Depends on:
Blocks: 33168
  Show dependency tree
 
Reported: 2004-01-21 15:49 UTC by Jesse Glick
Modified: 2004-02-06 12:05 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Suggested patch - compiles but otherwise untested (9.52 KB, patch)
2004-01-21 15:50 UTC, Jesse Glick
Details | Diff
a appeared deadlock when updating (3.26 KB, text/plain)
2004-02-04 10:26 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-01-21 15:49:23 UTC
Currently XMLUtil in updater.jar has a bunch of
reflection crap in it to write out XML documents,
which you can and should do with plain JAXP.
Comment 1 Jesse Glick 2004-01-21 15:50:24 UTC
Created attachment 13005 [details]
Suggested patch - compiles but otherwise untested
Comment 2 Jiri Rechtacek 2004-02-04 08:32:33 UTC
I'm going to try apply this patch in nb3.6, if no problems will be
integrated.
Comment 3 Jiri Rechtacek 2004-02-04 10:26:38 UTC
Created attachment 13237 [details]
a appeared deadlock when updating
Comment 4 Jiri Rechtacek 2004-02-04 10:28:34 UTC
When updating downloaded NBM from AU then NPE is thrown and followed
the deadlock, see attachment.
Comment 5 Jesse Glick 2004-02-04 16:34:27 UTC
Sorry, the createDocument method was wrong; in place of

  return factory.newDocumentBuilder().newDocument();

there should of course be

  return
factory.newDocumentBuilder().getDOMImplementation().createDocument(null,
rootQName, null);
Comment 6 Jiri Rechtacek 2004-02-05 16:46:12 UTC
Good, it works ok now. I'll apply the patch.
Comment 7 Jiri Rechtacek 2004-02-06 12:05:25 UTC
fixed