fatty- / daisy-pipeline

Automatically exported from code.google.com/p/daisy-pipeline
0 stars 0 forks source link

Internal Server Error in dtbook-to-html #312

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The attached zip seems to cause a little server hickup:

$ ./dp2 dtbook-to-html --data=/home/eglic/tmp/hauy.zip 
--i-source=hauy/hauy_valid.xml --file=/home/eglic/tmp/dp2_result.zip

eglic@wharton:~/src/pipeline-cli$ ./dp2 dtbook-to-html 
--data=/home/eglic/tmp/hauy.zip --i-source=hauy/hauy_valid.xml 
--file=/home/eglic/tmp/dp2_result.zip
D, [2013-05-06T15:20:05.070878 #13028] DEBUG -- : initialising dp2 link
D, [2013-05-06T15:20:05.070974 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/alive
D, [2013-05-06T15:20:05.071014 #13028] DEBUG -- : authenticated 
D, [2013-05-06T15:20:05.086000 #13028] DEBUG -- : #<URI::HTTP:0x00000002b7eba0 
URL:http://dp.sbs.ch:8182/ws/alive?authid=clientid&time=2013-05-06T13:20:05Z&non
ce=762179730402084355823330459541&sign=%2BoEsytFlYx6hrCpIUq%2FlX4thNrw%3D>
D, [2013-05-06T15:20:05.092804 #13028] DEBUG -- : alive process input : true
D, [2013-05-06T15:20:05.092839 #13028] DEBUG -- : from element: <?xml 
version="1.0" encoding="UTF-8" standalone="no"?><alive authentication="false" 
mode="remote" version="1.4" xmlns="http://www.daisy.org/ns/pipeline/data"/>
D, [2013-05-06T15:20:05.093439 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/alive
D, [2013-05-06T15:20:05.093472 #13028] DEBUG -- : authenticated 
D, [2013-05-06T15:20:05.093566 #13028] DEBUG -- : #<URI::HTTP:0x00000002bd6f08 
URL:http://dp.sbs.ch:8182/ws/alive?authid=clientid&time=2013-05-06T13:20:05Z&non
ce=958041494636880074144173630172&sign=gEgtMGQKWDHsicWFRLwFcb0N5Ac%3D>
D, [2013-05-06T15:20:05.098264 #13028] DEBUG -- : alive process input : true
D, [2013-05-06T15:20:05.098300 #13028] DEBUG -- : from element: <?xml 
version="1.0" encoding="UTF-8" standalone="no"?><alive authentication="false" 
mode="remote" version="1.4" xmlns="http://www.daisy.org/ns/pipeline/data"/>
D, [2013-05-06T15:20:05.098700 #13028] DEBUG -- : it's alive: true
D, [2013-05-06T15:20:05.098740 #13028] DEBUG -- : version 1.4
D, [2013-05-06T15:20:05.098771 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/alive
D, [2013-05-06T15:20:05.098796 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.098840 #13028] DEBUG -- : #<URI::HTTP:0x00000002be7858 
URL:http://dp.sbs.ch:8182/ws/alive>
D, [2013-05-06T15:20:05.103260 #13028] DEBUG -- : alive process input : true
D, [2013-05-06T15:20:05.103295 #13028] DEBUG -- : from element: <?xml 
version="1.0" encoding="UTF-8" standalone="no"?><alive authentication="false" 
mode="remote" version="1.4" xmlns="http://www.daisy.org/ns/pipeline/data"/>
D, [2013-05-06T15:20:05.103701 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/scripts
D, [2013-05-06T15:20:05.103737 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.103782 #13028] DEBUG -- : #<URI::HTTP:0x00000002c1a820 
URL:http://dp.sbs.ch:8182/ws/scripts>
D, [2013-05-06T15:20:05.116773 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/sbs:dtbook-to-odt DTBook to ODT 
D, [2013-05-06T15:20:05.117056 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-html DTBook to HTML 
D, [2013-05-06T15:20:05.117355 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/zedai-to-pef ZedAI to PEF 
D, [2013-05-06T15:20:05.117624 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/daisy3-to-epub3 DAISY 3 to EPUB 3 
D, [2013-05-06T15:20:05.117924 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/zedai-to-epub3 ZedAI to EPUB3 
D, [2013-05-06T15:20:05.118219 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-zedai DTBook to ZedAI 
D, [2013-05-06T15:20:05.118522 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/sbs:dtbook-to-pef DTBook to PEF (SBS) 
D, [2013-05-06T15:20:05.118794 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/sbs:zedai-to-pef ZedAI to PEF (SBS) 
D, [2013-05-06T15:20:05.119062 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/nimas-fileset-validator NIMAS Fileset 
Validator 
D, [2013-05-06T15:20:05.119364 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/zedai-to-html ZedAI to HTML 
D, [2013-05-06T15:20:05.119642 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-pef DTBook to PEF 
D, [2013-05-06T15:20:05.119938 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-epub3 DTBook to EPUB3 
D, [2013-05-06T15:20:05.122843 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/daisy202-to-epub3 DAISY 2.02 to EPUB3 
D, [2013-05-06T15:20:05.123143 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-validator DTBook Validator 
D, [2013-05-06T15:20:05.123194 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/sbs:dtbook-to-odt
D, [2013-05-06T15:20:05.123240 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.123305 #13028] DEBUG -- : #<URI::HTTP:0x00000002eee088 
URL:http://localhost:8182/ws/scripts/sbs:dtbook-to-odt>
D, [2013-05-06T15:20:05.131404 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/sbs:dtbook-to-odt DTBook to ODT 
D, [2013-05-06T15:20:05.131454 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/dtbook-to-html
D, [2013-05-06T15:20:05.131504 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.131563 #13028] DEBUG -- : #<URI::HTTP:0x00000002e91ea0 
URL:http://localhost:8182/ws/scripts/dtbook-to-html>
D, [2013-05-06T15:20:05.140036 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-html DTBook to HTML 
D, [2013-05-06T15:20:05.140085 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/zedai-to-pef
D, [2013-05-06T15:20:05.140120 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.140174 #13028] DEBUG -- : #<URI::HTTP:0x00000002e3bc08 
URL:http://localhost:8182/ws/scripts/zedai-to-pef>
D, [2013-05-06T15:20:05.149703 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/zedai-to-pef ZedAI to PEF 
D, [2013-05-06T15:20:05.149756 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/daisy3-to-epub3
D, [2013-05-06T15:20:05.149804 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.149861 #13028] DEBUG -- : #<URI::HTTP:0x00000002d4f2b8 
URL:http://localhost:8182/ws/scripts/daisy3-to-epub3>
D, [2013-05-06T15:20:05.158301 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/daisy3-to-epub3 DAISY 3 to EPUB 3 
D, [2013-05-06T15:20:05.158352 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/zedai-to-epub3
D, [2013-05-06T15:20:05.158388 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.158452 #13028] DEBUG -- : #<URI::HTTP:0x00000002ca5b28 
URL:http://localhost:8182/ws/scripts/zedai-to-epub3>
D, [2013-05-06T15:20:05.166156 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/zedai-to-epub3 ZedAI to EPUB3 
D, [2013-05-06T15:20:05.166255 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/dtbook-to-zedai
D, [2013-05-06T15:20:05.166314 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.166391 #13028] DEBUG -- : #<URI::HTTP:0x00000002c19218 
URL:http://localhost:8182/ws/scripts/dtbook-to-zedai>
D, [2013-05-06T15:20:05.177740 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-zedai DTBook to ZedAI 
D, [2013-05-06T15:20:05.177831 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/sbs:dtbook-to-pef
D, [2013-05-06T15:20:05.177871 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.177971 #13028] DEBUG -- : #<URI::HTTP:0x00000002b79330 
URL:http://localhost:8182/ws/scripts/sbs:dtbook-to-pef>
D, [2013-05-06T15:20:05.186816 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/sbs:dtbook-to-pef DTBook to PEF (SBS) 
D, [2013-05-06T15:20:05.186893 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/sbs:zedai-to-pef
D, [2013-05-06T15:20:05.186930 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.186996 #13028] DEBUG -- : #<URI::HTTP:0x00000002b540a8 
URL:http://localhost:8182/ws/scripts/sbs:zedai-to-pef>
D, [2013-05-06T15:20:05.194826 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/sbs:zedai-to-pef ZedAI to PEF (SBS) 
D, [2013-05-06T15:20:05.194902 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/nimas-fileset-validator
D, [2013-05-06T15:20:05.194939 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.195005 #13028] DEBUG -- : #<URI::HTTP:0x000000029b5f08 
URL:http://localhost:8182/ws/scripts/nimas-fileset-validator>
D, [2013-05-06T15:20:05.203094 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/nimas-fileset-validator NIMAS Fileset 
Validator 
D, [2013-05-06T15:20:05.203164 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/zedai-to-html
D, [2013-05-06T15:20:05.203207 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.203270 #13028] DEBUG -- : #<URI::HTTP:0x00000002617b80 
URL:http://localhost:8182/ws/scripts/zedai-to-html>
D, [2013-05-06T15:20:05.209927 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/zedai-to-html ZedAI to HTML 
D, [2013-05-06T15:20:05.209976 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/dtbook-to-pef
D, [2013-05-06T15:20:05.210011 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.210065 #13028] DEBUG -- : #<URI::HTTP:0x000000025e9780 
URL:http://localhost:8182/ws/scripts/dtbook-to-pef>
D, [2013-05-06T15:20:05.218275 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-pef DTBook to PEF 
D, [2013-05-06T15:20:05.218324 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/dtbook-to-epub3
D, [2013-05-06T15:20:05.218369 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.218423 #13028] DEBUG -- : #<URI::HTTP:0x0000000257e048 
URL:http://localhost:8182/ws/scripts/dtbook-to-epub3>
D, [2013-05-06T15:20:05.225972 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-to-epub3 DTBook to EPUB3 
D, [2013-05-06T15:20:05.226021 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/daisy202-to-epub3
D, [2013-05-06T15:20:05.226056 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.226122 #13028] DEBUG -- : #<URI::HTTP:0x00000002383fe0 
URL:http://localhost:8182/ws/scripts/daisy202-to-epub3>
D, [2013-05-06T15:20:05.234085 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/daisy202-to-epub3 DAISY 2.02 to EPUB3 
D, [2013-05-06T15:20:05.234135 #13028] DEBUG -- : 
URI:http://localhost:8182/ws/scripts/dtbook-validator
D, [2013-05-06T15:20:05.234188 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.234247 #13028] DEBUG -- : #<URI::HTTP:0x00000002244878 
URL:http://localhost:8182/ws/scripts/dtbook-validator>
D, [2013-05-06T15:20:05.244459 #13028] DEBUG -- : inserting script href: 
http://localhost:8182/ws/scripts/dtbook-validator DTBook Validator 
D, [2013-05-06T15:20:05.252584 #13028] DEBUG -- : no option yieled 
dtbook-to-html
D, [2013-05-06T15:20:05.253203 #13028] DEBUG -- : cmd dtbook-to-html
D, [2013-05-06T15:20:05.253249 #13028] DEBUG -- : initialising dp2 link
D, [2013-05-06T15:20:05.253298 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/alive
D, [2013-05-06T15:20:05.253334 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.253405 #13028] DEBUG -- : #<URI::HTTP:0x00000002ba7848 
URL:http://dp.sbs.ch:8182/ws/alive>
D, [2013-05-06T15:20:05.257447 #13028] DEBUG -- : alive process input : true
D, [2013-05-06T15:20:05.257496 #13028] DEBUG -- : from element: <?xml 
version="1.0" encoding="UTF-8" standalone="no"?><alive authentication="false" 
mode="remote" version="1.4" xmlns="http://www.daisy.org/ns/pipeline/data"/>
D, [2013-05-06T15:20:05.258008 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/alive
D, [2013-05-06T15:20:05.258052 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.258114 #13028] DEBUG -- : #<URI::HTTP:0x00000002b71c98 
URL:http://dp.sbs.ch:8182/ws/alive>
D, [2013-05-06T15:20:05.262017 #13028] DEBUG -- : alive process input : true
D, [2013-05-06T15:20:05.262058 #13028] DEBUG -- : from element: <?xml 
version="1.0" encoding="UTF-8" standalone="no"?><alive authentication="false" 
mode="remote" version="1.4" xmlns="http://www.daisy.org/ns/pipeline/data"/>
D, [2013-05-06T15:20:05.262510 #13028] DEBUG -- : it's alive: true
D, [2013-05-06T15:20:05.262558 #13028] DEBUG -- : version 1.4
D, [2013-05-06T15:20:05.262710 #13028] DEBUG -- : Quiet job:false
D, [2013-05-06T15:20:05.262955 #13028] DEBUG -- : transforming path uri
D, [2013-05-06T15:20:05.263001 #13028] DEBUG -- : uri: hauy/hauy_valid.xml
D, [2013-05-06T15:20:05.263228 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/jobs
D, [2013-05-06T15:20:05.263270 #13028] DEBUG -- : authenticated false
D, [2013-05-06T15:20:05.263338 #13028] DEBUG -- : Request data <jobRequest 
xmlns='http://www.daisy.org/ns/pipeline/data'><script 
href='http://localhost:8182/ws/scripts/dtbook-to-html'/><input 
name='source'><item value='hauy/hauy_valid.xml'/></input></jobRequest>
D, [2013-05-06T15:20:05.276053 #13028] DEBUG -- : Response was 
#<Net::HTTPInternalServerError:0x00000002b4acd8>
D, [2013-05-06T15:20:05.277733 #13028] DEBUG -- : URI 
http://dp.sbs.ch:8182/ws/jobs
D, [2013-05-06T15:20:05.277774 #13028] DEBUG -- : WS 500 
:http://dp.sbs.ch:8182/ws/jobs
D, [2013-05-06T15:20:05.277807 #13028] DEBUG -- : WS 500 :Internal Server Error
D, [2013-05-06T15:20:05.277856 #13028] DEBUG -- : WS 500 :Internal Server Error 
(500) - The server encountered an unexpected condition which prevented it from 
fulfilling the request
    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:517)
    at org.restlet.resource.ServerResource.post(ServerResource.java:1215)
    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:592)
    at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:649)
    at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:348)
    at org.restlet.resource.ServerResource.handle(ServerResource.java:951)
    at org.restlet.resource.Finder.handle(Finder.java:246)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.routing.Router.doHandle(Router.java:431)
    at org.restlet.routing.Router.handle(Router.java:648)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
    at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:84)
    at org.restlet.Application.handle(Application.java:381)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.routing.Router.doHandle(Router.java:431)
    at org.restlet.routing.Router.handle(Router.java:648)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.routing.Router.doHandle(Router.java:431)
    at org.restlet.routing.Router.handle(Router.java:648)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.routing.Filter.doHandle(Filter.java:159)
    at org.restlet.routing.Filter.handle(Filter.java:206)
    at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
    at org.restlet.Component.handle(Component.java:392)
    at org.restlet.Server.handle(Server.java:516)
    at org.restlet.engine.ServerHelper.handle(ServerHelper.java:72)
    at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:152)
    at org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:170)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452)
    at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:894)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:948)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:622)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Error while creating MappingJobContext
    at org.daisy.pipeline.job.JobContextFactory.newMappingJobContext(JobContextFactory.java:36)
    at org.daisy.pipeline.webservice.JobsResource.createJob(JobsResource.java:359)
    at org.daisy.pipeline.webservice.JobsResource.createResource(JobsResource.java:176)
    at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.restlet.resource.ServerResource.doHandle(ServerResource.java:503)
    ... 52 more
Caused by: java.io.FileNotFoundException: 
/opt/pipeline2/daisy-pipeline/data/d819a4e1-700b-4ef1-80db-1b361854e559/context/
hauy/valentin.jpg (Not a directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
    at org.daisy.pipeline.job.IOHelper.dump(IOHelper.java:62)
    at org.daisy.pipeline.job.IOHelper.dump(IOHelper.java:80)
    at org.daisy.pipeline.job.XProcDecorator.from(XProcDecorator.java:85)
    at org.daisy.pipeline.job.MappingJobContext.<init>(MappingJobContext.java:11)
    at org.daisy.pipeline.job.JobContextFactory.newMappingJobContext(JobContextFactory.java:34)
    ... 58 more

D, [2013-05-06T15:20:05.506623 #13028] DEBUG -- : WS Internal Failure:

Internal Server Error (RuntimeError)
/home/eglic/src/pipeline-cli/core/result_processor.rb:31:in `internalError'
/home/eglic/src/pipeline-cli/core/resource.rb:50:in `preProcess'
/home/eglic/src/pipeline-cli/core/resource.rb:30:in `postResource'
/home/eglic/src/pipeline-cli/core/pipeline_link.rb:86:in `job'
/home/eglic/src/pipeline-cli/commands/dynamic_commands.rb:45:in `execute'
/home/eglic/src/pipeline-cli/core/cli.rb:45:in `main'
./dp2:74:in `main'
./dp2:78:in `<main>'
[ERROR] WS Internal Failure:

Internal Server Error

Usage: dp2 dtbook-to-html [options]
        --i-source input1,input2,input3
                                     One or more DTBook files to be transformed. In the case of multiple
                files, a merge will be performed. (application/x-dtbook+xml)
        --x-language  [string]        (optional) Language code of the input document.
        --x-assert-valid  [boolean]   (optional) Whether to stop processing and raise an error on validation
                issues.
    -f, --file FILE                  Zip file where to store the results from the server(not applied if running in background mode)
    -d, --data ZIP_FILE              Zip file with the data needed to perform the job (Keep in mind that options and inputs MUST be relative uris to the zip file's root)
    -n, --name [NAME]                Job's nice name
    -b, --background                 Runs the job in the background (will be persistent)
    -p, --persistent                 Forces to keep the job data in the server
    -q, --quiet                      Doesn't show the job messages

Original issue reported on code.google.com by christia...@gmail.com on 6 May 2013 at 1:26

Attachments:

GoogleCodeExporter commented 9 years ago
We saw that on the server the zip file wasn't unpacked properly. What was 
supposed to be a folder was a 0k file.

The funny thing is that this hiccup only happens when the folder is the first 
entry in the zip, e.g. Christian's zip:

λ zipinfo hauy3.zip
Archive:  hauy3.zip
Zip file size: 69838 bytes, number of entries: 3
drwxrwxr-x  3.0 unx        0 bx stor 13-May-06 14:06 hauy/
-rw-r--r--  3.0 unx    25740 bx defN 11-Jan-31 17:22 hauy/valentin.jpg
-rw-r--r--  3.0 unx   189109 tx defN 13-May-06 12:19 hauy/hauy_valid.xml
3 files, 214849 bytes uncompressed, 69350 bytes compressed:  67.7%

When I zip a folder on my version of Ubuntu, the folder comes last. That's why 
I never noticed this bug.

λ zipinfo Hauy2.zip
Archive:  Hauy2.zip
Zip file size: 69844 bytes, number of entries: 3
-rw-rw-r--  3.0 unx   189109 tx defN 13-May-06 14:19 Hauy2/hauy_valid.xml
-rw-rw-r--  3.0 unx    25740 bx defN 13-Jan-03 15:09 Hauy2/valentin.jpg
drwxrwxr-x  3.0 unx        0 bx stor 13-May-06 14:29 Hauy2/
3 files, 214849 bytes uncompressed, 69350 bytes compressed:  67.7%

Original comment by bertfrees on 6 May 2013 at 1:38

GoogleCodeExporter commented 9 years ago
Tentatively assigning the issue to Javier, as this seems to be fwk-related.

Original comment by rdeltour@gmail.com on 7 May 2013 at 12:18

GoogleCodeExporter commented 9 years ago
Solved. I'll commit the patch later 

Original comment by capitan....@gmail.com on 8 May 2013 at 12:20

GoogleCodeExporter commented 9 years ago
Fixed in https://github.com/daisy-consortium/pipeline-framework/pull/9

Original comment by rdeltour@gmail.com on 11 May 2013 at 12:09