[Open Office] The dreaded HelpLinker NullPointerException and how to fix it

Caolan McNamara caolanm at redhat.com
Fri Mar 10 07:40:35 EST 2006


On Sun, 2006-02-26 at 22:25 +0100, Bernhard Rosenkraenzer wrote:
> On Sunday, 26. February 2006 21:51, Caolan McNamara wrote:
>
> 
> If we add 
> -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
> to the command line building, it does the same thing for everyone, including 
> ppl without the alternatives script (or with a messed setup thereof).
> 
> Creating a $JAVA_HOME/lib/jaxp.properties saying
> javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
> would have the same effect too (but we shouldn't touch the running system from 
> the makefiles).
> 
> After fixing this, it still breaks a bit later here though:
> 
> ERROR: XmlDocument.createXmlDocument() failed for 
> '../../unxlngi6.pro/misc/en-US/text/shared/guide/space_hyphen.xhp': 
> NOT_SUPPORTED_ERR: The implementation does not support the requested type of 
> object or operation
> 
> But that's again caused by classpath defaulting to an implementation with 
> fewer functionalities than Xerces -- using Xerces wherever possible fixes 
> that too:
> 
> -Djavax.xml.datatype.DatatypeFactory=org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
> -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
> -Djavax.xml.validation.SchemaFactory=org.apache.xerces.jaxp.validation.XMLSchemaFactory
> -Dorg.w3c.dom.DOMImplementationSourceList=org.apache.xerces.dom.DOMXSImplementationSourceImpl
> -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
> 

I'd like to keep it to a minimum set if possible, in case we change from
xerces to something else in the future, and be self documenting as to
what api entry calls we are directly using. Does just...

-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl

work correctly ?

C.



More information about the Openoffice mailing list