Skip to content

Zero byte file results in error #178

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. touch a file
2. attempt to upload through Chassis
error in UI which is caused by the following from the logs: 

2011-10-28 10:21:42,390 ERROR org.orbeon.oxf.xforms.processor.XFormsServer  - xf
orms-submit-error - setting body string {body: "
org.exist.xquery.XPathException
An IO exception ocurred: /tmp/tomcat6-tmp/upload__abf68ff_1322a112a79__7ffd_0005
8074.tmp (No such file or directory) [at line 1268, column 17]
In call to function:
       atomdb:create-file-backed-media-resource-from-upload(xs:string, xs:strin
g, xs:string?, xs:string?, xs:string?, xs:string?) [647:57]
       atom-protocol:op-create-media-from-multipart-form-data(element(), item()
*) [587:32]
       common-protocol:apply-op(xs:string, function, element(), item()*) [588:2
8]
       atom-protocol:do-post-multipart-formdata(element()) [105:17]
       atom-protocol:do-post(element()) [58:9]
       atom-protocol:do-service(element()) [36:22]
       atom-protocol:main() [14:26]
"}
2011-10-28 10:21:42,390 ERROR org.orbeon.oxf.xforms.processor.XFormsServer  - xf
orms-submit-error - setting throwable {throwable: "org.orbeon.oxf.xforms.submiss
ion.XFormsSubmissionException:  (processing submission response): xforms:submiss
ion for submission id: sub-post-upload, error code received when submitting inst
ance: 500
null, line -1, column -1: xforms:submission for submission id: sub-post-upload,
error code received when submitting instance: 500
       at org.orbeon.oxf.xforms.submission.XFormsModelSubmission.getReplacer(XF
ormsModelSubmission.java:631)
       at org.orbeon.oxf.xforms.submission.RegularSubmission$1.call(RegularSubm
ission.java:106)

I was able to fix the problem by adding some text to the files. 




Original issue reported on code.google.com by Tim.Pi...@gmail.com on 28 Oct 2011 at 9:31

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions