Class Cast Exception in Xerces setChunkValue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vlad Zorinov
    New Member
    • May 2006
    • 2

    Class Cast Exception in Xerces setChunkValue

    I'm getting the following error after a couple of months of XML processing, using Xerces 2.0.0 in an apache tomcat. Does anyone have any ideas what this problem may be or what I should do to solve it?

    cheers,

    Vlad

    The exception is...

    tv.ditg.sdl.Par singException:
    tv.ditg.sdl.Par singException:
    java.lang.Class CastException:
    at org.apache.xerc es.dom.Deferred DocumentImpl.se tChunkValue(Unk nown Source)
    at org.apache.xerc es.dom.Deferred DocumentImpl.cr eateDeferredEle ment(Unknown Source)
    at org.apache.xerc es.parsers.Abst ractDOMParser.s tartElement(Unk nown Source)
    at org.apache.xerc es.impl.XMLName spaceBinder.han dleStartElement (Unknown Source)
    at org.apache.xerc es.impl.XMLName spaceBinder.sta rtElement(Unkno wn Source)
    at org.apache.xerc es.impl.dtd.XML DTDValidator.st artElement(Unkn own Source)
    at org.apache.xerc es.impl.XMLDocu mentFragmentSca nnerImpl.scanSt artElement(Unkn own Source)
    at org.apache.xerc es.impl.XMLDocu mentScannerImpl $ContentDispatc her.scanRootEle mentHook(Unknow n Source)
    at org.apache.xerc es.impl.XMLDocu mentFragmentSca nnerImpl$Fragme ntContentDispat cher.dispatch(U nknown Source)
    at org.apache.xerc es.impl.XMLDocu mentFragmentSca nnerImpl.scanDo cument(Unknown Source)
    at org.apache.xerc es.parsers.Stan dardParserConfi guration.parse( Unknown Source)
    at org.apache.xerc es.parsers.Stan dardParserConfi guration.parse( Unknown Source)
    at org.apache.xerc es.parsers.XMLP arser.parse(Unk nown Source)
    at org.apache.xerc es.parsers.DOMP arser.parse(Unk nown Source)
  • Dominic Philips
    New Member
    • May 2006
    • 1

    #2
    A large number of Class Cast Exception have been resolved in 2.0.2 of which I believe is one. See http://xerces.apache.org/xerces2-j/releases.html for more information. Try upgrading your xerces version and this problem should be resolved.

    Comment

    • Vlad Zorinov
      New Member
      • May 2006
      • 2

      #3
      I shall try this, thanks.

      Comment

      Working...