-
1. Re: Inserting NULL data in field throw NullPointerException
rareddy Oct 20, 2010 1:00 PM (in response to balaji.seshadri)Oracle JDBC driver is not being able to take the "setTimeStamp" on the prepared statement as null. It may be error in the driver part. You can directly try to insert using this Oracle driver using prepared statement, I think you will see the same error. I have not seen this before. Does column on the Oracle table accepts nulls?
What version of Oracle and which version of Oracle JDBC driver you are using? This is 2 for 2 strange behavior with your usecase.
Ramesh..
-
2. Re: Inserting NULL data in field throw NullPointerException
balaji.seshadri Oct 20, 2010 1:50 PM (in response to rareddy)Please see the version info i got from Jboss logs.
Oracle9i Enterprise Edition Release 9.2.0.6.0
DriverName=Oracle JDBC driver;DriverVersion=9.2.0.1.0
-
3. Re: Inserting NULL data in field throw NullPointerException
balaji.seshadri Oct 20, 2010 1:50 PM (in response to balaji.seshadri)The column accepts NULL value.
-
4. Re: Inserting NULL data in field throw NullPointerException
balaji.seshadri Oct 20, 2010 3:55 PM (in response to balaji.seshadri)Im able to insert data after updating the driver version
-
5. Re: Inserting NULL data in field throw NullPointerException
balaji.seshadri Oct 20, 2010 3:56 PM (in response to balaji.seshadri)Updated version is 9.2.0.8
-
6. Re: Inserting NULL data in field throw NullPointerException
rareddy Oct 20, 2010 7:15 PM (in response to balaji.seshadri)Good to hear! Thanks for sharing the info.