org.apache.crimson error code P-009

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

org.apache.crimson error code P-009

Ben Yen

Hi support,

 

I am using org.apache.crimson and got the error code P-009 that it’s failing at line #2 to parse the following xml code:

 

<?xml version="1.0" encoding="UTF-8"?>

<ServiceResponse xmlns:ns5="http://www.test.com/AC/commonbaseevent1_1" xmlns:ns2="http://www.test.com/schemas/as/globalservicedata/1" xmlns:ns3="http://www.test.com/as/schemas/shared-services-common/faulttypes/1" xmlns:ns4="http://www.test.com/as/schemas/FSResponseService/2">

<ns4:accountFinancials>

<ns4:account>123456789</ns4:account>

<ns4:cycles>

<ns4:index>0</ns4:index>

<ns4:startDate>2014-06-07</ns4:startDate>

<ns4:endDate>2014-07-07</ns4:endDate>

</ns4:cycles>

 

Here is the exact error message:

 

P-009

com.topologi.diffx.load.LoadingException: java.lang.NullPointerException

      at com.topologi.diffx.load.SAXRecorder.process(SAXRecorder.java:255)

      at com.topologi.diffx.Main.diff(Main.java:287)

      at com.topologi.diffx.Main.main(Main.java:334)

Caused by: java.lang.NullPointerException

      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)

      at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)

      at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

      at com.topologi.diffx.load.SAXRecorder.process(SAXRecorder.java:253)

      ... 2 more

Caused by: java.lang.NullPointerException

      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3195)

      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)

      at org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2432)

      at org.apache.crimson.parser.Parser2.content(Parser2.java:1844)

      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1518)

      at org.apache.crimson.parser.Parser2.content(Parser2.java:1790)

      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1518)

      at org.apache.crimson.parser.Parser2.content(Parser2.java:1790)

      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1518)

      at org.apache.crimson.parser.Parser2.content(Parser2.java:1790)

      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1518)

      at org.apache.crimson.parser.Parser2.content(Parser2.java:1790)

      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1518)

      at org.apache.crimson.parser.Parser2.content(Parser2.java:1790)

      at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1518)

      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)

      ... 5 more

 

Thanks.

 

Ben Yen

 


American Express made the following annotations


"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

American Express a ajouté le commentaire suivant le
Ce courrier et toute pièce jointe qu'il contient sont réservés au seul destinataire indiqué et peuvent renfermer des renseignements confidentiels et privilégiés. Si vous n'êtes pas le destinataire prévu, toute divulgation, duplication, utilisation ou distribution du courrier ou de toute pièce jointe est interdite. Si vous avez reçu cette communication par erreur, veuillez nous en aviser par courrier et détruire immédiatement le courrier et les pièces jointes. Merci.