• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTPUNIT Webform.submit of file.

peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I know the answer to this but hoping my understanding is incorrect.

I have a webform with

I browse to the file select it and submit it to the servlet.

the response from the contains is valid xml that includes a proprietary multi verison filesystem path (every version of the file is stored and retained forever and can see ver1 ver2 .... ver n) where the file was uploaded to. It is not a standard url or uri or file system path.

When I call submit on the form, I get " <error message="Bad file descriptor" type="java.io.IOException">java.io.IOException: Bad file descriptor....."

stack trace

I think submit sees the file tag and tries to build a java.util.File object with the contents of the file element.
is that correct?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic