Hi there. I managed to solve this issue, and am just going to document it for the list. I needed to make a number of modifications to the regions drop down selection box on the search panel. I started by making modifications to the RegionsDesc table, modifying country names, adding a few entries, and removing others. I added new entries (with a corresponding bounding lat/long) to the Regions table, but did not delete the corresponding entries to the Regions table. After a restart, the drop-down list in the search panel stopped working, and gave the error listed below.
I poked around in the code a bit, and it seems that there must be at least a one-to-many relationship between the Regions and RegionsDesc tables. I had a number of entries that had been deleted from the RegionsDesc table, with corresponding entries still present in the Regions table. This seems to have caused the error documented below. By removing all entries in these orphaned entries in the Regions table, everything started to work again.
FYI in case anyone else needs to do this.
Regards,
Jason
________________________________
From: Pickering, Jason Paul [mailto:pickeringj@anonymised.com]
Sent: Mon 2009-08-03 09:10
To: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] customise template and regions list
Hi there. I am not sure if anyone can help me here. I have sent a few messages to the list on this topic, and I thought i would provide a bit more detail. I have customized the Regions and RegionsDesc table by deleting some entries, renaming some existing entries, and adding a few entries. Now, the drop-down box on the Geonetwork main page does not work. It returns this error
4672314 [http-8081-8] INFO main.home - Returning search data
4672319 [http-8081-8] INFO jeeves.service - -> transforming with stylesheet : (DELETED FOR SECURITY) webapps/geonetwork/xsl/main-page.xsl
4672655 [http-8081-8] INFO jeeves.service - -> end transformation for : main.home
4672656 [http-8081-8] INFO jeeves.service - -> output ended for : main.home
4672656 [http-8081-8] INFO jeeves.service - -> dispatch ended for : main.home
4683209 [http-8081-19] INFO jeeves.request - ==========================================================
4683209 [http-8081-19] INFO jeeves.request - HTML Request (from 158.232.12.166) : /geonetwork/srv/es/main.home
4683209 [http-8081-19] DEBUG jeeves.request - Method : GET
4683209 [http-8081-19] DEBUG jeeves.request - Content type : null
4683209 [http-8081-19] DEBUG jeeves.request - Accept : */*
4683209 [http-8081-19] INFO jeeves.service - Dispatching : main.home
4683209 [http-8081-19] DEBUG jeeves.service - -> no input parameters
4683209 [http-8081-19] INFO jeeves.service - -> dispatching to output for : main.home
4683304 [http-8081-19] INFO main.home - Returning search data
4683331 [http-8081-19] ERROR jeeves.service - Exception executing gui service : java.lang.NullPointerException
4683332 [http-8081-19] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
at org.fao.geonet.lib.LocalLib.retrieve(LocalLib.java:216)
at org.fao.geonet.lib.LocalLib.retrieve(LocalLib.java:124)
at org.fao.geonet.guiservices.regions.Get.exec(Get.java:51)
at jeeves.server.dispatchers.guiservices.Call.exec(Call.java:75)
at jeeves.server.dispatchers.AbstractPage.invokeGuiService(AbstractPage.java:119)
at jeeves.server.dispatchers.AbstractPage.invokeGuiServices(AbstractPage.java:104)
at jeeves.server.dispatchers.ServiceManager.dispatchOutput(ServiceManager.java:588)
at jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:382)
at jeeves.server.JeevesEngine.dispatch(JeevesEngine.java:616)
at jeeves.server.sources.http.JeevesServlet.execute(JeevesServlet.java:163)
at jeeves.server.sources.http.JeevesServlet.doGet(JeevesServlet.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:619)
Not particularly helpful. Any idea what is going on here?
Thanks and best regards,
Jason
________________________________
From: Pickering, Jason Paul [mailto:pickeringj@anonymised.com]
Sent: Wed 2009-07-29 20:08
To: Jose García; karibu
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] customise template and regions list
HI there. Well, the sysadmin told me he restarted it, but I am not 100% sure. I just want to be sure that there are no files that get cached to disk, and then need to be deleted and rebuilt (similar to the Lucence files).
Thanks,
Jason
________________________________
From: Jose García [mailto:josegar74@anonymised.com]
Sent: Wed 2009-07-29 17:37
To: Pickering, Jason Paul; karibu
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] customise template and regions list
Hi
Have you tried to restart geonetwork after the table changes? Regions data should be cached as normally doesn't change.
Regards,
Jose
----- Original Message -----
From: Pickering, Jason Paul <mailto:pickeringj@anonymised.com>
To: Jose García <mailto:josegar74@anonymised.com> ; karibu <mailto:kat_lore@anonymised.com>
Cc: geonetwork-users@lists.sourceforge.net
Sent: Wednesday, July 29, 2009 5:30 PM
Subject: RE: [GeoNetwork-users] customise template and regions list
HI there. I know I sent a message previously about what I thought was the solution to this problem, but now I must admit that I am a bit confused. I have customized the Regions and RegionsDesc tables in my MySQL database, but the drop down menu to select the regions in the Geonetwork main page still contain the old entries. Is this information cached someplace? Is it located anywhere inside of an XML file someplace besides the database? If so, then there are other issues for me that I will have to dig depper into.
Thanks for the confirmation.
Best regards,
Jason
________________________________
From: Jose García [mailto:josegar74@anonymised.com]
Sent: Wed 2009-07-29 16:33
To: karibu
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] customise template and regions list
Hi Karibu
The ddf files are loaded in the GeoNetwork database using GAST.
The problem is that loading these files with GAST will delete your actual
Geonetwork data and replace it with the content of default datafiles
(geonetwork\gast\setup\db\*.ddf), so if you have metadata or customizations
(custom users, groups, ...) in GeoNetwork this method is not right for you.
In this case te best solution is that you connect to the GeoNetwork database
with some SQL client and add the custom data to the Regions and RegionsDes
tables.
Regards,
Jose
----- Original Message -----
From: "karibu" <kat_lore@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, July 29, 2009 3:49 PM
Subject: Re: [GeoNetwork-users] customise template and regions list
>
> Hi,
> I customised the Regions.ddf and RegionsDes.ddf, but when I open
> Geonetwork
> the places list is still the same. Do I have to change any other file?
> Thanks for your help.
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://n2.nabble.com/customise-template-and-regions-list-tp3343295p3349823.html
> Sent from the GeoNetwork users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork