please help i have been getting this error and i cant fix it
a lil background info:
This is my first major
java project after HelloWorld, its suppose to be a Client Server program. I got the Client Server part to work with both echoing a
string back and forth...Then i wanted to add something that would let the server know when a client is no longer available....so i add timers to both the server and the client...for the client timer i wanted it to send a "*" to server every 10 seconds.but when the client timer tries to send the "*" java.lang.NullPointerException.....please take a look at my code and tell me what i am doing wrong
im posting only the client codes cuz i feel that is what is causeing the problem CThreaded a threaded client, CScon connection class for the client, and CTimer a client timer.
//CThreaded
CScon
CTimer
the error message is:
java.lang.NullPointerException
at nwpj.CTimer.run(CTimer.java:97)
if you could please tell me what is causing this error or if you could atleaset explain the error to me i would be greatful..
Amit