tags:

views:

39

answers:

1

I have been using http://www.grepcode.com/ a lot lately to dig into the internals of common libraries to determine what a specific error means. (like what does "Connection reset" mean when using Axis? turns out it means that the socket closed but the buffer doesn't contain an EOF marker in it... though i still can't replicate this exception).

But my main question is:

Is there a way to grep for a String Constant, like "Connection reset", when using Grep Code?

Thanks

A: 

http://www.google.com/search?q=site:www.grepcode.com+%22Connection+reset%22

james
In this case i happened to have a stacktrace so i could find the right place, but i like your method! Ultimately this was the reference i was looking for: http://www.grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/net/SocketInputStream.java#130
mlathe