Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stmt.executeUpdate(sql) - exception null

 
Miran Cvenkel
Ranch Hand
Posts: 198
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have somthing like this, and falls into red marked code


The sql is plain simple, this:



I run like 15 sql like this with other values and it dies on exactly this one, the rest of them works ok.

Any tip ?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15274
38
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of exception are you getting? Change the code to handle the exception to this:

Then copy & paste the stack trace that is printed here.
 
Miran Cvenkel
Ranch Hand
Posts: 198
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for tip.

Getting somewhere, connection is null for some reason ....
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15274
38
Android IntelliJ IDE Java Scala Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic