Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4671465

java.lang.ClassCastException: org.apache.xerces.dom.DeferredAttrImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jwsdp-1.1
    • 1.2.0
    • xml
    • 1.1
    • sparc
    • solaris_8

      Parsing of following XML file....
      <?xml version="1.0"?>
      <!DOCTYPE root [
        <!ENTITY inner "val">
        <!ELEMENT inner EMPTY>
        <!ELEMENT root (inner)>
        <!ATTLIST inner attr CDATA #REQUIRED>
      ]>
      <root>
        <inner attr="hi"/>
      </root>

      with DOM02.java ( File Attatched ) This bug can always be reproduced using
      JAXP build b15 17th April

      Exception in thread "main" java.lang.ClassCastException: org.apache.xerces.dom.DeferredAttrImpl
              at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(DeferredDocumentImpl.java:1590)
              at org.apache.xerces.dom.DeferredEntityImpl.synchronizeChildren(DeferredEntityImpl.java:179)
              at org.apache.xerces.dom.ParentNode.setReadOnly(ParentNode.java:928)
              at org.apache.xerces.dom.NamedNodeMapImpl.setReadOnly(NamedNodeMapImpl.java:395)
              at org.apache.xerces.dom.DocumentTypeImpl.setReadOnly(DocumentTypeImpl.java:347)
              at org.apache.xerces.dom.DeferredDocumentTypeImpl.synchronizeChildren(DeferredDocumentTypeImpl.java:21
              at org.apache.xerces.dom.ParentNode.getChildNodes(ParentNode.java:253)
              at DomEcho02$AdapterNode.childCount(DomEcho02.java:273)
              at DomEcho02$DomToTreeModelAdapter.isLeaf(DomEcho02.java:291)
              at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2611)
              at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:406)
              at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCa
      e.java:1293)
              at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1429
              at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1221
              at javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.java:674)
              at javax.swing.tree.VariableHeightLayoutCache.setModel(VariableHeightLayoutCache.java:92)
              at javax.swing.plaf.basic.BasicTreeUI.setModel(BasicTreeUI.java:299)
              at javax.swing.plaf.basic.BasicTreeUI$PropertyChangeHandler.propertyChange(BasicTreeUI.java:2726)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:161
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:130
              at javax.swing.JComponent.firePropertyChange(JComponent.java:3208)
              at javax.swing.JTree.setModel(JTree.java:704)
              at javax.swing.JTree.<init>(JTree.java:514)
              at DomEcho02.<init>(DomEcho02.java:92)
              at DomEcho02.makeFrame(DomEcho02.java:182)
              at DomEcho02.main(DomEcho02.java:140)

            nbajajsunw Neeraj Bajaj (Inactive)
            nbajajsunw Neeraj Bajaj (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: