Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > NullPointerException in xalan parser package

Reply
Thread Tools

NullPointerException in xalan parser package

 
 
Guillaume Jeudy
Guest
Posts: n/a
 
      12-09-2003
Hi,

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

http://www.bbc.co.uk/syndication/fee...fic/rss091.xml

I sometimes receive this error:

java.lang.NullPointerException:
at org.apache.xalan.serialize.WriterToUTF8.write(Writ erToUTF8.java:101)
at org.apache.xalan.serialize.SerializerToXML.startEl ement(SerializerToXML.java,
Compiled Code)
at org.apache.xml.utils.TreeWalker.startNode(TreeWalk er.java,
Compiled Code)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalke r.java, Compiled
Code)
at org.apache.xalan.serialize.SerializerToXML.seriali ze(SerializerToXML.java:2470)
at DynamicPortalSearchProcessor.parseDOM(DynamicPorta lSearchProcessor.java,
Compiled Code)
at DynamicPortalSearchProcessor.processSearchSite(Dyn amicPortalSearchProcessor.java,
Compiled Code)
at DynamicPortalSearchThread.run(DynamicPortalSearchT hread.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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse failed because of java.lang.NullPointerException: No value for sax.parser prope Stanly1 Software 0 09-22-2006 08:35 PM
Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2 cvissy XML 0 11-16-2004 07:06 AM
XML Parser VS HTML Parser ZOCOR Java 11 10-05-2004 01:58 PM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger Java 0 06-09-2004 01:26 AM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger XML 0 06-09-2004 01:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57