gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renato MarroquĂ­n Mogrovejo <renatoj.marroq...@gmail.com>
Subject Re: nutch 2.1 gora-mysql
Date Sun, 14 Apr 2013 21:54:24 GMT
Hi Carmine,

So after you added the new field, did you update your generated classes?


Renato M.

2013/4/12 Lewis John Mcgibbney <lewis.mcgibbney@gmail.com>:
> ---------- Forwarded message ----------
> From: Carmine Paternoster <carminepat@gmail.com>
> To: gora-dev@incubator.apache.org
> Cc:
> Date: Thu, 11 Apr 2013 20:38:24 +0200
> Subject: nutch 2.1 gora-mysql
> I configured Nutch 2.1 with gora and mySql. Everything worked until I
> changed gora-sql-mapping.xml to add new field.
> I get these exceptions:
> Exception in thread "main" org.apache.gora.util.GoraException:
> java.io.IOException: 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:75)
> at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
>  at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
> at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
>  at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>  at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)
> Caused by: java.io.IOException: java.lang.NullPointerException
> at org.apache.gora.sql.store.SqlStore.readMapping(SqlStore.java:878)
>  at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:163)
> at
> org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
>  at
> org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> ... 8 more
> Caused by: java.lang.NullPointerException
>  at org.apache.gora.sql.store.SqlStore.addField(SqlStore.java:828)
> at org.apache.gora.sql.store.SqlStore.readMapping(SqlStore.java:868)
>  ... 11 more
>
> Can anyone help me? Thank you in advance
>
> --
> *Lewis*

Mime
View raw message