Hello java gurus! (my first post at javaranch! woohoo!)
How can I retrace an unknown NullPointerException which keeps on popping out in the error logs of the webserver?
The webserver is Sun ONE Web Server 6.1 and the error logs displays the following:
It has no stack, so I am having a hard time searching for the source of the Exception. The web application is working perfectly but with that Exception popping out at almost every 10 seconds, I'm getting worried that it is a minor error that might lead to a big one.
@ramprasad: Will it be possible to debug the web server without modifying it's configuration?
Yes, Kenneth in the post above, has shown the way. Enable jpda and specify a port (how you exactly achieve this depends on the server your application is running on. If its Tomcat and you are using eclipse, an execellent link)here's
Most ides do support remote debugging, so if you are not using eclipse, look around for some docs which would help you set it up.
Kenneth has also guessed a probable cause (catch block just logging the erro), which I think, you would do well to check up. But given the fact that the application doesnt crash, probably there should be a good reason why the developer wrote it that way (if he indeed really has)
Joined: Feb 20, 2005
Thanks so much for your replies.
I'll try what you guys suggested.
subject: how to retrace an unknown NullPointerException