aspose file tools*
The moose likes JDBC and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException" Watch "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException" New topic
Author

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

Nick de Waal
Ranch Hand

Joined: Feb 19, 2012
Posts: 42
Hi all,
I am very new to programming and Java is the language we are starting with so please bear with me as I enter this forum to extract as much of your knowledge as is morally possible.

I am currently working on a small application using JDBC:ODBC bridge.
All is going fine however, for some reason I get this error message:
"Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException".

now the strangeness of the situation is that I have run the program several times without any problems and I did not change anything!

So why would I all of a sudden receive this message?
I have checked the connection which is fine, I am not to sure where else to look,
for as I mentioned no code was changed apart from adding a "\t" but the application still ran after this.

any hints as to why this could be?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

Not until you TellTheDetails. The exception should include a file name and line number where the exception occurs. That's where you need to look.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Nick de Waal
Ranch Hand

Joined: Feb 19, 2012
Posts: 42
Rob Spoor wrote:Not until you TellTheDetails. The exception should include a file name and line number where the exception occurs. That's where you need to look.


true true, I should have but there were so many and basically I thought it would have something to do with the connection and was hoping somebody would lead me where to look (because the exceptions listed I could not find anything wrong)

but I have found the problem :
I had this :
And changed to

and it seems to have done the trick, and I thought white space didn't matter.

Thank you for your help, next time I will give more details about the error.
 
Consider Paul's rocket mass heater.
 
subject: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException