• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with Connection Error

 
Shanna Ripley
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I've been trying to develop my own chat app. I had a simple version working, but now that I'm trying to add extra functionality it's gotten a little more complicated. To implement it the way I want to, I've started to use interfaces. Now when I'm trying to create a simple connection between client and server, I am getting a NullPointerError. I've been trying but figure out how to fix it. Anyone have any ideas??

Thanks in advance

My server code...




This is my code to create a connection.. This is where the error is coming from. This is the error.."Connection Error: java.lang.NullPointerException"

 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its important to TellTheDetails.
Normally, an NPE is the most trivial exception to resolve and the line number in the exception will tell you where it occur.
 
Shanna Ripley
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitesh Kant wrote:Its important to TellTheDetails.
Normally, an NPE is the most trivial exception to resolve and the line number in the exception will tell you where it occur.



It doesn't mention any line number in my error message. Is there a way that I can print out more info about the error because it is driving me nuts. I'm using NetBeans and all that prints out is "Connection Error: java.lang.NullPointerException"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!