Hello, I use an XML appender for log4j, it produces one file log-body.xml, this file needs a header file to be valid (log-header.xml) that includes the body. It looks like this :
------------- LOG-HEADER.XML <?xml version="1.0" ?> <!DOCTYPE log4j:eventSet SYSTEM "log4j.dtd" [<!ENTITY data SYSTEM "log-body.xml">]> <log4j:eventSet xmlns:log4j="http://jakarta.apache.org/log4j"> &data; </log4j:eventSet> ------------- LOG-BODY.XML <log4j:event category="com.bnpparibas.eqd.bomodel.generator.Main" timestamp="1000290849790" priority="INFO" thread="Thread-1"> <log4j:message><![CDATA[Generator started !]]></log4j:message> </log4j:event> The problem is that Xerces 1.4.3 can't parse file LOG-HEADER.XML (using SAX), it ends up with a NullPointerException wheras Xerces 1.1.3 parses LOG-HEADER.XML successfully (including log-body.xml) ! [java] Processing style sheet transformation gen-error-log-handler.xsl on log-header. xml to output file tmpGenAntFile.xml [java] null [java] java.lang.NullPointerException [java] at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094) [java] at ExecXSLT.applyXSLOnStreams(ExecXSLT.java:153) [java] at ExecXSLT.main(ExecXSLT.java:69) This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
