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 30089 - TreeException on generate DTD from XML file
Summary: TreeException on generate DTD from XML file
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
: 34359 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-14 16:33 UTC by pzajac
Modified: 2003-06-16 09:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2003-01-14 16:33:46 UTC
build [200301090100]. Create any valid xml file.
On Generate DTD Action exception thrown. On
generate DTD exception throw. 
  

org.netbeans.tax.TreeException
        at
org.netbeans.modules.xml.core.tree.TreeEditorCookieImpl.parseTree(TreeEditorCookieImpl.java:363)
        at
org.netbeans.modules.xml.core.tree.TreeEditorCookieImpl.access$200(TreeEditorCookieImpl.java:49)
        at
org.netbeans.modules.xml.core.tree.TreeEditorCookieImpl$1.run(TreeEditorCookieImpl.java:143)
        at org.openide.util.Task.run(Task.java:136)
[catch] at java.lang.Thread.run(Thread.java:536)
Comment 1 _ pkuzel 2003-01-29 10:22:22 UTC
Petr, could you attach zipped XML doc, please. I cannot reproduce.
Comment 2 pzajac 2003-01-29 12:51:11 UTC
I don't generate DTD from xml in NetBeans.  I cannot reproduce the
same bug. But I tried investigate and found other bugs. If xml
document is not valid or URL in DOCTYPE doesn't exist :-) exception
thrown. These exceptions need to annotate. 

See bellow:

 org.netbeans.tax.TreeException: The element type "aaa" must be
terminated by the matching end-tag "</aaa>".
        at
org.netbeans.tax.io.XNIBuilder.buildDocument(XNIBuilder.java:163)
        at
org.netbeans.modules.xml.tax.parser.XMLParsingSupport.parse(XMLParsingSupport.java:40)
        at
org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.parseTree(TreeEditorCookieImpl.java:341)
        at
org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.access$200(TreeEditorCookieImpl.java:56)
        at
org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl$1.run(TreeEditorCookieImpl.java:150)
        at org.openide.util.Task.run(Task.java:136)
----------

org.netbeans.tax.TreeException: no protocol:
        at
org.netbeans.tax.io.XNIBuilder.buildDocument(XNIBuilder.java:171)
        at
org.netbeans.modules.xml.tax.parser.XMLParsingSupport.parse(XMLParsingSupport.java:40)
        at
org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.parseTree(TreeEditorCookieImpl.java:341)
        at
org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.access$200(TreeEditorCookieImpl.java:56)
        at
org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl$1.run(TreeEditorCookieImpl.java:150)
        at org.openide.util.Task.run(Task.java:136)
Comment 3 _ pkuzel 2003-02-24 17:34:19 UTC
Low level annotation added: Cannot load the document!
Comment 4 pzajac 2003-02-27 15:28:08 UTC
verified
Comment 5 Martin Schovanek 2003-06-16 09:45:31 UTC
*** Issue 34359 has been marked as a duplicate of this issue. ***