aspose file tools*
The moose likes Java in General and the fly likes stmt.executeUpdate(sql) - exception null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "stmt.executeUpdate(sql) - exception null" Watch "stmt.executeUpdate(sql) - exception null" New topic
Author

stmt.executeUpdate(sql) - exception null

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 149
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 ?


Searchable nature photo gallery: http://agrozoo.net/jsp/Galery.jsp?l2=en
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14346
    
  22

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 149
Thanks for tip.

Getting somewhere, connection is null for some reason ....
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14346
    
  22

So it's a NullPointerException.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: stmt.executeUpdate(sql) - exception null