Alexander,

Next time, please post this to a Java or JDBC or Oracle mailing list. This is unrelated to Tomcat.

I have a servlet that getting post request from form with enctype="multipart/form-data" as part of the form is file
upload. On the first run it works OK, on the second i am
getting:


java.lang.NullPointerException

What is the value of the string that you are passing to setString? Is it null? If it is, then I'd call this expected behavior.


If you want to set the value of a column to NULL then you must use PreparedStatement.setNull().

Sheesh, at a 615 level course you should be checking for nulls.

-chris


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to