gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alfonso Nishikawa <alfonso.nishik...@gmail.com>
Subject Re: nutch 2.1 gora-mysql
Date Thu, 11 Apr 2013 22:26:19 GMT
Hi, Carmine.

Are you using version 0.1.1-incubating? Sadly, I think in version 0.2.1 and
0.3-SNAPSHOT gora-sql is still not implemented :(

Anyway, how is your gora-sql-mapping.xml? From the trace, my guess is that
maybe you forgot to define the "name" attribute.

Check that you set the proper attibutes in the 'class' tag [1].
And paste your new gora-sql-mapping.xml. I never used it, but with some
luck maybe we can help.

Regards,

Alfonso Nishikawa

[1] -
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.gora/gora-sql/0.1.1-incubating/org/apache/gora/sql/store/SqlStore.java#SqlStore.readMapping%28java.lang.String%29



2013/4/11 Carmine Paternoster <carminepat@gmail.com>

> 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
>



-- 
"Drinking bloody marys all night will make you feel like a corpse in the
morning."

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message