File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 147
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: 14280
    
  21

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: 147
Thanks for tip.

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

Joined: Aug 16, 2005
Posts: 14280
    
  21

So it's a NullPointerException.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stmt.executeUpdate(sql) - exception null