• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

HTTPUNIT Webform.submit of file.

 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic