• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in thread "AWT-EventQueue-0"  RSS feed

 
Richard Murray
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am calling a method in that's in my class. However, I get the error "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException" error. The peice of code is unable to get a database connection. If I put it in its own class and compile it, there are no problems connecting to my database.

I have this segment of code in the method.

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which line is generating the exception?
 
Richard Murray
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out, I was trying to call a Connection object that doesn't exist, since no reference was created for it, I got an error.

Cheers anyway.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!