You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/05/26 18:42:17 UTC
[jira] [Commented] (NUTCH-2019) ClassPathException sending topN
argument for /job/create using Nutch 2.x RESTApi
[ https://issues.apache.org/jira/browse/NUTCH-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14559346#comment-14559346 ]
Hudson commented on NUTCH-2019:
-------------------------------
SUCCESS: Integrated in Nutch-nutchgora #1448 (See [https://builds.apache.org/job/Nutch-nutchgora/1448/])
NUTCH-2019 ClassPathException sending topN argument for /job/create using Nutch 2.x RESTApi (lewismc: http://svn.apache.org/viewvc/nutch/branches/2.x/?view=rev&rev=1681781)
* /nutch/branches/2.x/CHANGES.txt
* /nutch/branches/2.x/src/java/org/apache/nutch/crawl/GeneratorJob.java
> ClassPathException sending topN argument for /job/create using Nutch 2.x RESTApi
> --------------------------------------------------------------------------------
>
> Key: NUTCH-2019
> URL: https://issues.apache.org/jira/browse/NUTCH-2019
> Project: Nutch
> Issue Type: Bug
> Components: generator
> Affects Versions: 2.3
> Environment: Nutch 2.3
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Priority: Minor
> Fix For: 2.3.1
>
> Attachments: NUTCH-2019.patch, NUTCH-2019v2.patch
>
>
> As described [http://www.mail-archive.com/user%40nutch.apache.org/msg13549.html|here], the issues is as follows
> Looking at the source I think it was caused by the following line:
> topN = (Long) args.get(Nutch.ARG_TOPN);
> I managed to get it temporarily "fixed" by replacing the above with the following:
> try{
> topN = (Long) args.get(Nutch.ARG_TOPN);
> } catch(Exception e) {
> topN = Long.parseLong(args.get(Nutch.ARG_TOPN).toString());
> LOG.warn("Error: " + e + "test: " + args.get(Nutch.ARG_TOPN));
> }
> I guess it complains about ClassCastException because JSON stores the argument as int or string and not long.
> Regards,
> Alex
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)