Hi Ronaldo,

are you using the latest version (1.1.2) or a snapshot from the cvs ?

I'm using the cvs version, I tried to upload a file changing its path string to:

- a non existant file
- anoter file

and dbforms works correctly.

Can you give me a more detailed example ?

Luca


Duma Rolando wrote:
I have a jsp that use <db:file> for DISKBLOB uploads, but if the user modify
the path string after selecting the file the folowing exception occurs :
2002-11-18 11:20:21 StandardWrapperValve[dbformscontrol]: Servlet.service()
for servlet dbformscontrol threw exception
java.lang.NegativeArraySizeException
at org.dbforms.util.FileHolder.bufferInMemory(FileHolder.java:119)
at org.dbforms.util.FileHolder.<init>(FileHolder.java:70)
at org.dbforms.util.MultipartRequest.<init>(MultipartRequest.java:145)
at org.dbforms.Controller.process(Controller.java:129)
at org.dbforms.Controller.doPost(Controller.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.........

I would like to know how to catch/prevent this exception with DBForms
because it seems that thi occurs before the preinsert method invocation.
Thanks a lot for your suggestions.



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms






-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to