You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Doğacan Güney (JIRA)" <ji...@apache.org> on 2009/06/07 19:22:07 UTC

[jira] Commented: (NUTCH-709) JSParseFilter gets into an infinate loop and ets all the stack

    [ https://issues.apache.org/jira/browse/NUTCH-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717057#action_12717057 ] 

Doğacan Güney commented on NUTCH-709:
-------------------------------------

-1 for the patch. As Julien notes, the patch simply catches the error. I would suggest adding a depth counter instead. I don't think that there will be any half-sane HTML page out there with more than, say, 100 levels.

Alternatively, we may try using NodeWalker.

> JSParseFilter gets into an infinate loop and ets all the stack 
> ---------------------------------------------------------------
>
>                 Key: NUTCH-709
>                 URL: https://issues.apache.org/jira/browse/NUTCH-709
>             Project: Nutch
>          Issue Type: Bug
>          Components: fetcher
>    Affects Versions: 1.0.0
>         Environment: Hadoop 0.19.0 running nutch trunk 
>            Reporter: Tim Hawkins
>         Attachments: JSParseFilter.error.patch
>
>
> When crawling pages with seperate fetch and parse, I see processes die becuase of stack overflow. 
> Output is generaly.
> java.lang.StackOverflowError
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:146)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> 	at org.apache.nutch.parse.js.JSParseFilter.walk(JSParseFilter.java:148)
> Inspection of the code shows that this is a recursive call to walk(.....) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.