• Post Reply Bookmark Topic Watch Topic
  • New Topic

NullPointerException in prepareStatement  RSS feed

 
mangesh lele
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could someone please tell me what are the reasons why a null pointer exception is thrown in a Connection prepareStatement(String) call?
I am generating the required insert statement given below and passing it to prepareStatement :
Insert into o1pay.product_pay ( AMT_LMT_DEF_CCY,.........40 odd fields ) values ( ?,........same number of question marks )
the logs are as follows:
java.sql.SQLException: java.lang.NullPointerException
at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:86)
.
.
.
.
.
.
.
furthermore, this error started happening when i moved my weblogic application setup from one database to another database, apparently identical to the first. the only thing i changed was the database url in connection pool tag of config.xml (weblogic 6.1)
thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!