Results 1 to 4 of 4
Thread: Null error Thread
- 02-08-2012, 10:44 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 28
- Rep Power
- 0
Null error Thread
Hi, I have this thread code which was running fine a few hours ago but now it gives an error "null" as description. I didn't change any codes relating to threads:
Java Code:public class constantReading implements Runnable { public void run() { try { //System.out.println("reading thread started"); while (true) { Object obj = Objectin.readObject(); filterData(obj); } } catch (Exception e) { print("Error in reading thread: " + e.getMessage()); } } }
And this is the output:
Error in reading thread: null
Any idea whats wrong?
- 02-08-2012, 10:49 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,546
- Rep Power
- 11
Re: Null error Thread
A full stack trace will let you track down the code that is throwing the cryptic exception.
Java Code:} catch(Exception e) { e.printStackTrace(); print("Error in reading thread: " + e.getMessage()); }
- 02-08-2012, 10:57 PM #3
Member
- Join Date
- Jan 2012
- Posts
- 28
- Rep Power
- 0
Re: Null error Thread
Thank you for your quick reply :) I got the error source.
- 02-08-2012, 11:44 PM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,546
- Rep Power
- 11
Similar Threads
-
quick help, if(n == null) error?
By JayP in forum New To JavaReplies: 3Last Post: 06-10-2011, 09:14 PM -
thread ref assigned to null
By rajinder5 in forum Threads and SynchronizationReplies: 2Last Post: 12-22-2010, 07:47 PM -
help with with my null error
By zhangster in forum New To JavaReplies: 3Last Post: 03-20-2010, 12:32 AM -
Thread: Error 500--Internal Server Error java.lang.NullPointerException
By jackdear44 in forum New To JavaReplies: 1Last Post: 12-05-2009, 07:28 AM -
Null Error
By scoleman123 in forum New To JavaReplies: 2Last Post: 09-19-2008, 04:04 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks