NullPointerException in xalan parser package

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guillaume Jeudy

    #1

    NullPointerException in xalan parser package

    Hi,

    I'm trying to serialize a DOM constructed from the following URL which
    is subject to change very frequently:

    The best of the BBC, with the latest news and sport headlines, weather, TV & radio highlights and much more from across the whole of BBC Online


    I sometimes receive this error:

    java.lang.NullP ointerException :
    at org.apache.xala n.serialize.Wri terToUTF8.write (WriterToUTF8.j ava:101)
    at org.apache.xala n.serialize.Ser ializerToXML.st artElement(Seri alizerToXML.jav a,
    Compiled Code)
    at org.apache.xml. utils.TreeWalke r.startNode(Tre eWalker.java,
    Compiled Code)
    at org.apache.xml. utils.TreeWalke r.traverse(Tree Walker.java, Compiled
    Code)
    at org.apache.xala n.serialize.Ser ializerToXML.se rialize(Seriali zerToXML.java:2 470)
    at DynamicPortalSe archProcessor.p arseDOM(Dynamic PortalSearchPro cessor.java,
    Compiled Code)
    at DynamicPortalSe archProcessor.p rocessSearchSit e(DynamicPortal SearchProcessor .java,
    Compiled Code)
    at DynamicPortalSe archThread.run( DynamicPortalSe archThread.java ,
    Compiled Code)

    I suspect this is because the XML source is in ISO-8859-1 encoding and
    the xalan serializer that i'm using does not support this encoding
    it's trying to use UTF8 encoding... Can anyone help? I'm using the
    xalan version "j2_2_D11"

    Regards,
    Guillaume J.
Working...