On 12/09/2014 05:45 PM, Greg Kearney wrote:
> In fact Pipeline 1 will only downgrade books made in Pipeline 1. I have tried doing other downgrades and it does not work.
I tried a book that was exported by obi and I can indeed say that it
failed to downgrade it.
It seems to expect a DTBook file and since there is none it dies with a
NPE :-/
> $ daisy-pipeline /usr/lib/daisy-pipeline/scripts/create_distribute/dtb/Daisy3ToDaisy202.taskScript --input=/home/eglic/src/mdr2/samples/DAISY3\ Export/package.opf --outputPath=/home/eglic/tmp/downgrader/tmp/ --validatorTimeTolerance=10
> [DEBUG, Pipeline Core] Loading Transformer Validator (class int_daisy_validator.ValidatorDriver)
> [DEBUG, Pipeline Core] Transformer loaded from file:/usr/lib/daisy-pipeline/transformers/
> [DEBUG, Pipeline Core] Loading Transformer Zed 2005 to Daisy 2.02 (class se_tpb_zed2daisy202.Zed2Daisy202)
> [DEBUG, Pipeline Core] Transformer loaded from file:/usr/lib/daisy-pipeline/transformers/
> [DEBUG, Pipeline Core] Loading Transformer System cleanup (class pipeline_system_deleter.Deleter)
> [DEBUG, Pipeline Core] Transformer loaded from file:/usr/lib/daisy-pipeline/transformers/
> [STATE] Task DAISY 3 to DAISY 2.02 [BETA] just started
> [DEBUG, ???] Job Parameters:
> - input:/home/eglic/src/mdr2/samples/DAISY3 Export/package.opf
> - outputPath:/home/eglic/tmp/downgrader/tmp/
> - 202hrefTarget:TEXT
> - validatorTimeTolerance:10
>
> [STATE] Transformer Validator just started
> [INFO_FINER, Validator] Validating a Z3986 DTB.
> [INFO, Validator] Validating with ZedVal version 2.1
> [INFO_FINER, Validator] Completed full validation of input fileset.
> [INFO, Validator] No errors or warnings reported. Congratulations!
> [STATE] Transformer Validator just stopped
> [STATE] Transformer Zed 2005 to Daisy 2.02 just started
> [DEBUG, Zed 2005 to Daisy 2.02] Building Z3986 fileset...
> [INFO_FINER, Zed 2005 to Daisy 2.02] Ignoring file tpbnarrator.res
> [ERROR, Pipeline Core] Unexpected Error.
> org.daisy.pipeline.exception.JobFailedException: Error running script: Unexpected Error..
> at org.daisy.pipeline.core.script.Runner.execute(Runner.java:124)
> at org.daisy.pipeline.core.PipelineCore.execute(PipelineCore.java:280)
> at org.daisy.pipeline.ui.CommandLineUI.main(CommandLineUI.java:213)
> java.lang.NullPointerException
> at java.io.FileInputStream.<init>(FileInputStream.java:138)
> at se_tpb_zed2daisy202.PreCalc.buildPreCalcMap(PreCalc.java:247)
> at se_tpb_zed2daisy202.PreCalc.<init>(PreCalc.java:106)
> at se_tpb_zed2daisy202.Zed2Daisy202.createSmils(Zed2Daisy202.java:270)
> at se_tpb_zed2daisy202.Zed2Daisy202.execute(Zed2Daisy202.java:170)
> at org.daisy.pipeline.core.transformer.Transformer.executeWrapper(Transformer.java:174)
> at org.daisy.pipeline.core.transformer.TransformerHandler.run(TransformerHandler.java:124)
> at org.daisy.pipeline.core.script.Runner.execute(Runner.java:98)
> at org.daisy.pipeline.core.PipelineCore.execute(PipelineCore.java:280)
> at org.daisy.pipeline.ui.CommandLineUI.main(CommandLineUI.java:213)