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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to