w Wen
on

 

I downloaded the new version 2.1.3, run the validator for define.xml. I got the schematron file does not exist exception, see below on my 1st run.

I copied the folder from 2.0.1 version, since that is the version it works and has this folder. Run the command again.

Now I got different exception. see below on my 2nd run.

Please help, Is it implemented to run the define validator in command line mode or not?

 

thanks,

 


1st Run:

C:\OpenCDisc-Test>"C:\Program Files\Java\jdk1.7.0_21\bin\java" -Xms256m -Xmx1024m -jar C:/OpenCDISC/Pinnacle21-2.1.3/components/lib/validator-cli-2.1.3.jar -type=Define -source="C:\OpenCDisc-Test\Rat_Study\define.xml" -config="C:\OpenCDISC\Pinnacle21-2.1.3\components\config\Define.xml.xml"   -config:define="C:\OpenCDisc-Test\Rat_Study\define.xml" -config:cdisc=2015-12-18 -report=C:\report_define.xlsx  -report:cutoff=10000 report:overwrite=Yes
 Beginning validation, please wait...
Exception in thread "main" java.lang.RuntimeException: input xml or schematron file does not exist or isn't accessible
        at org.opencdisc.validator.engine.HierarchicalValidator.validate(HierarchicalValidator.java:67)
        at org.opencdisc.validator.DefaultValidator.validate(DefaultValidator.java:247)
        at org.opencdisc.validator.DefaultValidator.validate(DefaultValidator.java:92)
        at org.opencdisc.validator.cli.CommandParser.parse(CommandParser.java:442)
        at org.opencdisc.validator.cli.Main.main(Main.java:28)

 

2nd Run:

C:\OpenCDisc-Test>"C:\Program Files\Java\jdk1.7.0_21\bin\java" -Xms256m -Xmx1024m -jar C:/OpenCDISC/Pinnacle21-2.1.3/components/lib/validator-cli-2.1.3.jar -type=Define -source="C:\OpenCDisc-Test\Rat_Study\define.xml" -config="C:\OpenCDISC\Pinnacle21-2.1.3\components\config\Define.xml.xml"   -config:define="C:\OpenCDisc-Test\Rat_Study\define.xml" -config:cdisc=2015-12-18 -report=C:\report_define.xlsx  -report:cutoff=10000 report:overwrite=Yes
 Beginning validation, please wait...
Exception in thread "main" java.lang.NullPointerException
        at org.opencdisc.validator.report.ExcelReporter.write(ExcelReporter.java:276)
        at org.opencdisc.validator.report.SchematronResultTransformer.endElement(SchematronResultTransformer.java:200)
        at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:287)
        at net.sf.saxon.event.ProxyReceiver.endElement(ProxyReceiver.java:172)       
 at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:181)
        at net.sf.saxon.event.ComplexContentOutputter.endElement(ComplexContentOutputter.java:391)       
 at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:167)
        at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:305)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:332)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:297)
        at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:329)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:291)
        at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:169)
        at net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:133)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:332)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
        at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:164)
        at net.sf.saxon.instruct.Template.expand(Template.java:98)
        at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:297)
        at net.sf.saxon.Controller.transformDocument(Controller.java:1513)
        at net.sf.saxon.Controller.transform(Controller.java:1346)
        at org.opencdisc.validator.engine.HierarchicalValidator.validate(HierarchicalValidator.java:104)
        at org.opencdisc.validator.DefaultValidator.validate(DefaultValidator.java:247)
        at org.opencdisc.validator.DefaultValidator.validate(DefaultValidator.java:92)
        at org.opencdisc.validator.cli.CommandParser.parse(CommandParser.java:442)
        at org.opencdisc.validator.cli.Main.main(Main.java:28)

 

Forums: Define.xml

d Dmitry
on September 15, 2016

Hi,

Define.xml validation does not work via CLI for versions 2.1.x. Copying schematron from a previous version does not resolve it as the define.xml validation method was changed in 2.1. The main discussion for this topic is here:
https://www.pinnacle21.net/forum/issues-cli-command-validating-definexml-21-vs-202

Want a demo?

Let’s Talk.

We're eager to share and ready to listen.

Cookie Policy

Pinnacle 21 uses cookies to make our site easier for you to use. By continuing to use this website, you agree to our use of cookies. For more info visit our Privacy Policy.