From: crayco <cr...@gm...> - 2008-08-19 14:32:25
|
Thank's a lot!!! The tutorial is now up to date. For the null pointer exception raised in metadata.insert, did you try to trace which line in the java source code of metadata.insert that generates the null pointer exception ? Could help to trace where the problem comes from. If you customize the "template.xml" file (at the very first step, or later on), make sure index-fields.xsl and schema.xsd reflect those changes and ViceVersa. Otherwise, geonetwork won't be able to index or search your metadata. Many mistake come from having very small differences in the tags name in schema.xsd, index-fields.xsl and template.xml. It is really hard to debug schema creation, but keep up posting your comments and findings. I spent 1 full time month last year to understand schema creation and writing this tutorial... I it's still hard for me to debug. I wish to make this tutorial as complete as possible so others don't need to spend a month to insert a schemas. cheers. crayco Rodolphe Bernard wrote: > > Hi all, > > I followed the tutorial too and after some substantials modifications (see > below) I managed to go to the step 8 and restart my server with no errors > in the log file. But when I tried to add the template in the web admin > interface, I always had an error. In the log file the error message is: > 2008-08-19 14:26:53,272 ERROR [geonetwork.search] - Indexing stylesheet > contains errors : null > 2008-08-19 14:26:53,272 ERROR [jeeves.service] - Exception when executing > service > 2008-08-19 14:26:53,288 ERROR [jeeves.service] - (C) Exc : > java.lang.NullPointerException > 2008-08-19 14:26:53,288 DEBUG [jeeves.service] - Raised exception while > executing service > <error id="error"> > <message /> > <class>NullPointerException</class> > <stack> > <at class="org.apache.xalan.transformer.TransformerImpl" > file="TransformerImpl.java" line="1139" > method="createSerializationHandler" /> > <at class="org.apache.xalan.transformer.TransformerImpl" > file="TransformerImpl.java" line="1060" > method="createSerializationHandler" /> > <at class="org.apache.xalan.transformer.TransformerImpl" > file="TransformerImpl.java" line="1279" method="transform" /> > <at class="org.apache.xalan.transformer.TransformerImpl" > file="TransformerImpl.java" line="1262" method="transform" /> > <at class="jeeves.utils.Xml" file="Xml.java" line="140" > method="transform" /> > <at class="jeeves.utils.Xml" file="Xml.java" line="118" > method="transform" /> > <at class="org.fao.geonet.kernel.search.SearchManager" > file="SearchManager.java" line="366" method="getIndexFields" /> > <at class="org.fao.geonet.kernel.search.SearchManager" > file="SearchManager.java" line="211" method="index" /> > <at class="org.fao.geonet.kernel.DataManager" file="DataManager.java" > line="246" method="indexMetadataI" /> > <at class="org.fao.geonet.kernel.DataManager" file="DataManager.java" > line="166" method="indexMetadata" /> > </stack> > <request> > <language>en</language> > <service>metadata.insert</service> > </request> > </error> > > Any ideas? like suggesting by the tutorial's author (previous message) the > error seems to come from the file 'index-fields.xml' used by the search > but I can't find where the problem is !!! > > The modifications I have made to get it worked (there is some little > mistakes in the tutorial) : > > - in metadata-organisation.xsl > in lines 62 and 65 replace all the '-' between comments tag by any > other symbol like '_' or '='. > - in index-fields.xsl > replace line 45 'xsl:for-eachselect...' by 'xsl:for-each > select...' (a blank space is missing). > - wrong file names for 'schematron-verbid.xsl' and > 'schematron-xml.xsl', rename them like that: 'schematron_verbid.xsl' and > 'schematron_xml.xsl' > - add another required file in 'organisation' folder: > 'schema-substitutes.xml', you can copy and paste it from 'dublin-core' > folder > - you can do the same thing (copy-paste) for the file > 'schema-suggestion.xml' because the tutorials one is wrong. > > After that you can restart your server without errors when the schema is > loaded. > > Hopes that helps. > Thanks > > Rodolphe > > > ai wrote: >> >> Hai Friend's, i have problem to add schema template in geonetwork 2.2.0. >> I follow step by step instruction in tutorial "How to Add >> schema/template" but thats's not worked. If someone have successful add >> schema /template in geonetwork 2.2.0, I hope can help me. I'm very thank >> you for that help.:-D >> > > -- View this message in context: http://www.nabble.com/How-to-add-schema-template-in-geonetwork-2.2.0-tp19044224p19050811.html Sent from the geonetwork-users mailing list archive at Nabble.com. |