FpML Issues Tracker

1110: Problem with the 5.3 reporting Schema

April 14, 2012

closed

Major

Always

Architecture

Admin

andrew

Summary

Hello,

I am getting below exception for the reporting view when i am trying to load all the classes along with schema. I used JAXB to generate the classes.

Caused by: org.xml.sax.SAXParseException: cos-nonambig: "http://www.fpml.org/FpML-5/reporting":definePosition and "http://www.fpml.org/FpML-5/reporting":definePosition (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.xs.XSConstraints.reportSchemaError(Unknown Source) at org.apache.xerces.impl.xs.XSConstraints.fullSchemaChecking(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)

To me it looks like there is some problem with the reporting schema. Any help would be highly appreciated.

Notes:

  • andrew

    04/14/12 10:52 am

    I’ve had a look at the schema and although the grammar has a lot of optionality in it I can’t see what would generate this error. The grammar is not ambiguous.

    Can you check that you are using the latest versions of 5.3 and Xerces. Also can you provide a copy of the example document that fails.

  • Leave an update

    You must be logged in to post an update.