java.io.FileNotFoundException: /local/opt/openncp/TM_resources/schema/CDA_extended.xsd (No such file or directory)

JIRA | St├ęphane Spahni | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When getting access to a PS/CDA L3, I get this error in the log: 2013-03-19 15:03:21,786 [http-bio-13080-exec-2] DEBUG eu.epsos.pt.ws.client.xca.transformation.TMServices - STARTING TRANSLATING DOCUMENT TO: null. 2013-03-19 15:03:21,787 [http-bio-13080-exec-2] DEBUG epsos.ccd.posam.tm.service.impl.TransformationService - translate BEGIN 2013-03-19 15:03:21,825 [http-bio-13080-exec-2] ERROR epsos.ccd.posam.tm.service.impl.TransformationService - Schema validation error, input document is invalid! java.io.FileNotFoundException: /local/opt/openncp/TM_resources/schema/CDA_extended.xsd (No such file or directory) 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.traversers.XSDHandler.reportSchemaError(Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source) at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594) at epsos.ccd.posam.tm.util.Validator.validateToSchema(Validator.java:43) at epsos.ccd.posam.tm.service.impl.TransformationService.process(TransformationService.java:192) The path "/local/opt/openncp/TM_resources/schema/CDA_extended.xsd" corresponds indeed to "$HOME/TM_resources/schema/CDA_extended.xsd" and not "$EPSOS_PROPS_PATH/TM_resources/schema/CDA_extended.xsd". There is a comment in ./work/Catalina/localhost/epsos-client-connector/loader/ctx_tm.xml & ./work/Catalina/localhost/epsos-server-connector/loader/ctx_tm.xml about missing initializers for TMConfiguration. Could it be related to that? Thanks!

    JIRA | 4 years ago | St├ęphane Spahni
    java.io.FileNotFoundException: /local/opt/openncp/TM_resources/schema/CDA_extended.xsd (No such file or directory)

    Root Cause Analysis

    1. java.io.FileNotFoundException

      /local/opt/openncp/TM_resources/schema/CDA_extended.xsd (No such file or directory)

      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException()
    2. Xerces2-j
      XMLSchemaFactory.newSchema
      1. org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      2. org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
      3. org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      4. org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      5. org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source)
      6. org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown Source)
      7. org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)
      8. org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
      9. org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
      10. org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
      11. org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
      12. org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
      12 frames
    3. Java RT
      SchemaFactory.newSchema
      1. javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594)
      1 frame
    4. epsos.ccd.posam
      TransformationService.process
      1. epsos.ccd.posam.tm.util.Validator.validateToSchema(Validator.java:43)
      2. epsos.ccd.posam.tm.service.impl.TransformationService.process(TransformationService.java:192)
      2 frames