You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Joan Espasa Arxer (JIRA)" <ji...@apache.org> on 2012/07/23 08:26:34 UTC
[jira] [Commented] (NUTCH-1435) Host jobs throw
NullPointerException with MySQL
[ https://issues.apache.org/jira/browse/NUTCH-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420461#comment-13420461 ]
Joan Espasa Arxer commented on NUTCH-1435:
------------------------------------------
The proposed patch works for me.
> Host jobs throw NullPointerException with MySQL
> -----------------------------------------------
>
> Key: NUTCH-1435
> URL: https://issues.apache.org/jira/browse/NUTCH-1435
> Project: Nutch
> Issue Type: Bug
> Components: injector
> Affects Versions: nutchgora
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Fix For: 2.1
>
> Attachments: NUTCH-1435.patch
>
>
> As described by Joan Espasa Arxer on user@ [0] the following NPE is thrown when we attempt to use the hostinject, updatehostdb and readhostdb jobs.
> {code}
> HostInjectorJob: org.apache.gora.util.GoraException:
> java.lang.NullPointerException
> at
> org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> at
> org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> at
> org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:69)
> at org.apache.nutch.host.HostInjectorJob.inject(HostInjectorJob.java:146)
> at org.apache.nutch.host.HostInjectorJob.run(HostInjectorJob.java:160)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.nutch.host.HostInjectorJob.main(HostInjectorJob.java:174)
> Caused by: java.lang.NullPointerException
> at org.apache.gora.sql.store.SqlStore.addColumn(SqlStore.java:790)
> at org.apache.gora.sql.store.SqlStore.createSqlTable(SqlStore.java:802)
> at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:165)
> at
> org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> at
> org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> ... 6 more
> {code}
> Ferdy proposed a fix for this which I will patch against 2.X branch and duly attach.
> [0] http://www.mail-archive.com/user%40nutch.apache.org/msg06998.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira