Well if you have added new mapping fields, they should be mapped to something right? So you would have to update the java class you are using (which is?) and then recompile nutch to use this new modified class.
To modify your class you have two options: 1. Modify the json file which reflects its schema[1] and then use Gora Compiler[2] to generate a new java class. 2. Modify your java class manually to add this new field (error prone) Hope this helps man. Renato M. [1] https://github.com/renato2099/gora/blob/trunk/gora-core/src/examples/avro/webpage.json [2] https://github.com/renato2099/gora/blob/trunk/gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java 2013/4/16 Carmine Paternoster <[email protected]>: > no, I have not updated anything and do not even know how to do. I only > edited the file gora-sql-mapping.xml in /nutch/runtime/local/conf and I > tried to run the crowling, but i receive the exception > > > 2013/4/14 Renato Marroquín Mogrovejo <[email protected]> >> >> Hi Carmine, >> >> So after you added the new field, did you update your generated classes? >> >> >> Renato M. >> >> 2013/4/12 Lewis John Mcgibbney <[email protected]>: >> > ---------- Forwarded message ---------- >> > From: Carmine Paternoster <[email protected]> >> > To: [email protected] >> > 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* > >

