Menu

#4 External DTDs are not loading

open
nobody
None
5
2015-01-14
2004-10-14
Gabor Nagy
No

Loading external DTDs does not seem to work for me.
(Maybe I do something wrong, example files attached)

The following is the output log, including Xerces
exception.
The UI does not report anything to the user, but none
of the validations related to the DTD will be carried out.

14 Oct 2004 09:04:48,436 DEBUG - attempting to invoke
action:butterfly.actions.
interfaces.IFileOpenAction (javax.swing.JTextPane)
14 Oct 2004 09:04:48,436 DEBUG -
OpenAction.actionPerformed() (butterfly.action
s.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - component lookup
is:butterfly.xmlview.Butterfl
yApplication@1cf4a2c (butterfly.actions.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - looking up the
content handler for the file ex
tension: .xml (butterfly.actions.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - content handler for
type:.xml is:butterfly.act
ions.contenthandlers.XmlContentHandler@1d59d3c
(butterfly.actions.contenthandler
s.ContentHandlerLookup)
14 Oct 2004 09:04:48,436 DEBUG - looking in the cache
for:D:\tmp\test1.xml (but
terfly.actions.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - is new file=false
(butterfly.actions.OpenActio
n)
14 Oct 2004 09:04:48,436 DEBUG -
inputsource:org.xml.sax.InputSource@fd0a62 (bu
tterfly.xmlview.parsers.XmlViewParser)
14 Oct 2004 09:04:48,436 DEBUG - loading external
dtd... (butterfly.xmlview.mod
el.DTDDeclaration)
14 Oct 2004 09:04:48,436 DEBUG -
OpenAction.actionPerformed() (butterfly.action
s.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - component lookup
is:butterfly.xmlview.Butterfl
yApplication@1cf4a2c (butterfly.actions.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - looking up the
content handler for the file ex
tension: .dtd (butterfly.actions.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - content handler for
type:.dtd is:butterfly.act
ions.contenthandlers.DTDContentHandler@391da0
(butterfly.actions.contenthandlers
.ContentHandlerLookup)
14 Oct 2004 09:04:48,436 DEBUG - looking in the cache
for:\tmp\test2.dtd (butte
rfly.actions.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - is new file=false
(butterfly.actions.OpenActio
n)
14 Oct 2004 09:04:48,436 DEBUG - open document
successful=true (butterfly.actio
ns.OpenAction)
14 Oct 2004 09:04:48,436 DEBUG - dtd loaded: null
(butterfly.xmlview.model.DTDDeclaration)
[Fatal Error] 👎-1:
http://www.w3.org/TR/1998/REC-xml-19980210#MSG_MARKUP_NOT_
RECOGNIZED_IN_DTD
::::👎-1:http://www.w3.org/TR/1998/REC-xml-19980210#MSG_MARKUP_NOT_RECOGNIZED_
IN_DTD
at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown
Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknow
n Source)
at
org.apache.xerces.impl.dtd.XMLDTDLoader.loadGrammar(Unknown
Source)
at
org.apache.xerces.parsers.XMLGrammarPreparser.preparseGrammar(Unknown
Source)
at
butterfly.xmlview.model.validation.DTDParser.buildElementStructure(Un
known Source)
at
butterfly.xmlview.model.DTDDeclaration.getValidationDocument(Unknown
Source)
at
butterfly.xmlview.model.XmlDocument.registerAll(Unknown
Source)
at
butterfly.xmlview.model.XmlDocument.registerNode(Unknown
Source)
at
butterfly.xmlview.parsers.XmlViewLaxContentHandler.endDocument(Unknow
n Source)
at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown
Sourc
e)
at
org.apache.xerces.impl.XMLNamespaceBinder.endDocument(Unknown
Source)

at
org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown
Source
)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
Sourc
e)
at
org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown
Source)
at
org.apache.xerces.impl.XMLEntityScanner.load(Unknown
Source)
at
org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.
dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
butterfly.xmlview.parsers.XmlViewParser.parse(Unknown
Source)
at
butterfly.xmlview.model.XmlDocument.getRoot(Unknown Source)
at
butterfly.xmlview.model.validation.GenericValidationDocument.<init>(U
nknown Source)
at
butterfly.actions.contenthandlers.XmlContentHandler.createDocument(Xm
lContentHandler.java:88)
at
butterfly.actions.contenthandlers.XmlContentHandler.createDocument(Xm
lContentHandler.java:79)
at
butterfly.actions.contenthandlers.AbstractContentHandler.loadDocument
(AbstractContentHandler.java:85)
at
butterfly.actions.OpenAction.actionPerformed(OpenAction.java:157)
at
butterfly.xmlview.gui.HtmlDisplayPane.handleHyperlinkEvent(HtmlDispla
yPane.java:230)
at
butterfly.xmlview.gui.HtmlDisplayPane.hyperlinkUpdate(HtmlDisplayPane
.java:241)
at
javax.swing.JEditorPane.fireHyperlinkUpdate(Unknown Source)
at
javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(Unkno
wn Source)
at
javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(Unkno
wn Source)
at
java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown
Source)
at
javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at
java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)
at
java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Window.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown
Source)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
14 Oct 2004 09:04:48,446 DEBUG - DTDValidationDocument
updated. (butterfly.xmlv
iew.model.DTDDeclaration)
14 Oct 2004 09:04:48,446 DEBUG - open document
successful=true (butterfly.actio
ns.OpenAction)
14 Oct 2004 09:04:48,446 DEBUG - Default renderer set
to:Source (butterfly.xmlv
iew.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Configuring
renderers... (butterfly.xmlview.gu
i.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Listing renderers...
(butterfly.xmlview.gui.Ta
bbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Loading renderers...
(butterfly.xmlview.gui.Ta
bbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Getting renderer
information... (butterfly.xml
view.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Renderer
role:butterfly.xmlview.gui.interfaces
.IXmlSourceRenderer (butterfly.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Loading renderer
role:butterfly.xmlview.gui.in
terfaces.IXmlSourceRenderer title:Source
(butterfly.xmlview.gui.TabbedXmlEditor)

14 Oct 2004 09:04:48,446 DEBUG - Registered
renderer:butterfly.xmlview.gui.XmlS
ourceEditorRenderer@8bd3bb with key:Source
(butterfly.xmlview.gui.TabbedXmlEdito
r)
14 Oct 2004 09:04:48,446 DEBUG - Getting renderer
information... (butterfly.xml
view.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Renderer
role:butterfly.xmlview.gui.interfaces
.IXmlTreeRenderer (butterfly.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Loading renderer
role:butterfly.xmlview.gui.in
terfaces.IXmlTreeRenderer title:DOM
(butterfly.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - set the renderer's
component lookup (butterfly
.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Registered
renderer:butterfly.xmlview.gui.XmlT
reeVisitorRenderer@1f9b804 with key:DOM
(butterfly.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Getting renderer
information... (butterfly.xml
view.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Renderer
role:butterfly.xmlview.gui.PipelineEd
itor (butterfly.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,446 DEBUG - Loading renderer
role:butterfly.xmlview.gui.Pi
pelineEditor title:Transform
(butterfly.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,456 DEBUG - set the renderer's
component lookup (butterfly
.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,456 DEBUG - Registered
renderer:butterfly.xmlview.gui.Pipe
lineEditor[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=javax.swing.bor
der.EmptyBorder@6d1750,flags=16777576,maximumSize=,minimumSize=,preferredSize=,e
ditable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=true,row
Height=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRo
wCount=20] with key:Transform
(butterfly.xmlview.gui.TabbedXmlEditor)
14 Oct 2004 09:04:48,456 DEBUG - XmlEditor configured.
(butterfly.xmlview.gui.T
abbedXmlEditor)
14 Oct 2004 09:04:48,466 DEBUG - loading
doc...dirty=false (butterfly.xmlview.g
ui.XmlSourceEditor)
14 Oct 2004 09:04:48,466 DEBUG - loading new
document... (butterfly.xmlview.gui
.XmlSourceEditor)
14 Oct 2004 09:04:48,496 DEBUG - validating...
(butterfly.xmlview.model.Abstrac
tValidatedDocument)
14 Oct 2004 09:04:48,496 DEBUG - validating...
(butterfly.xmlview.model.Abstrac
tValidatedDocument)
14 Oct 2004 09:04:48,506 DEBUG - StateEvent received
with id:document-editor-ad
ded (butterfly.statemachine.StateMachine)
14 Oct 2004 09:04:48,506 DEBUG -
handleEvent>>NextState: null (butterfly.statem
achine.State)
14 Oct 2004 09:04:48,506 DEBUG - handleEvent>>Action:
null (butterfly.statemach
ine.State)
14 Oct 2004 09:04:48,506 DEBUG - Next state will be
start (butterfly.statemachi
ne.StateMachine)
14 Oct 2004 09:04:48,506 DEBUG - next state entered
(butterfly.statemachine.Sta
teMachine)
14 Oct 2004 09:04:48,506 DEBUG - StateEvent received
with id:document-editor-sh
own (butterfly.statemachine.StateMachine)
14 Oct 2004 09:04:48,506 DEBUG -
handleEvent>>NextState: start (butterfly.state
machine.State)
14 Oct 2004 09:04:48,506 DEBUG - handleEvent>>Action:
butterfly.actions.UpdateO
utlineAction@6f8b2b (butterfly.statemachine.State)
14 Oct 2004 09:04:48,506 DEBUG - Outline updated
(butterfly.actions.UpdateOutli
neAction)
14 Oct 2004 09:04:48,506 DEBUG - Next state will be
start (butterfly.statemachi
ne.StateMachine)
14 Oct 2004 09:04:48,506 DEBUG - next state entered
(butterfly.statemachine.Sta
teMachine)
14 Oct 2004 09:04:48,506 DEBUG - StateEvent received
with id:document-editor-sh
own (butterfly.statemachine.StateMachine)
14 Oct 2004 09:04:48,506 DEBUG -
handleEvent>>NextState: start (butterfly.state
machine.State)
14 Oct 2004 09:04:48,506 DEBUG - handleEvent>>Action:
butterfly.actions.UpdateO
utlineAction@6f8b2b (butterfly.statemachine.State)
14 Oct 2004 09:04:48,506 DEBUG - Outline updated
(butterfly.actions.UpdateOutli
neAction)
14 Oct 2004 09:04:48,506 DEBUG - Next state will be
start (butterfly.statemachi
ne.StateMachine)
14 Oct 2004 09:04:48,506 DEBUG - next state entered
(butterfly.statemachine.Sta
teMachine)
14 Oct 2004 09:04:48,506 DEBUG - content handler for
type:text/plain is:butterf
ly.actions.contenthandlers.DefaultContentHandler@c26ede
(butterfly.actions.conte
nthandlers.ContentHandlerLookup)
14 Oct 2004 09:04:48,506 DEBUG - File Saved.
(butterfly.actions.FileSaveAction)

14 Oct 2004 09:04:48,716 DEBUG - selection
changed:null (butterfly.xmlview.gui.
XmlSourceEditor)

Discussion

  • Gabor Nagy

    Gabor Nagy - 2004-10-14

    XML with external DTD, DTD loading error

     
  • Gabor Nagy

    Gabor Nagy - 2004-10-14

    The DTD

     

Log in to post a comment.

Auth0 Logo