tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Pomansky" <alex.poman...@verizon.net>
Subject Re: (OT) oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)
Date Sat, 30 Aug 2003 20:57:34 GMT
It will be true for first run but it works on first and does not on second
with same input

Thanks
----- Original Message ----- 
From: "Christopher Schultz" <christopher.d.schultz@comcast.net>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, October 28, 2003 4:45 PM
Subject: Re: (OT)
oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement
.java:1082)


> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message