[Htmlparser-user] Hang out when fetching page - JDK 1.5
Brought to you by:
derrickoswald
|
From: Java P. <jpr...@gm...> - 2006-04-05 15:06:14
|
Hello,
I have problem with hanging out fetching threads - in few cases the
running threads stops when entering such method:
public void fetch() throws ParserException{
Parser parser =3D new Parser(this.url);
visitor =3D new SimplePageVisitor();
parser.visitAllNodesWith(visitor);
}
I logged what cause hang out and code stops right on: Parser parser =3D
new Parser(this.url);
I saw several times that "java.net.SocketTimeoutException: Read timed
out" was thrown, but not in that case (thread just hangs for hours
until I don't kill it by hand).
I searched for solution but without luck.
If anyone can help I apperciate it.
Best regards,
Adr
|