Im installing geonetwork in Linux Ubuntu. I used the HowTO to perform this
task. I could lunch (Geoserver is working) and GN connects to to the DB.
<!-- Postgresql -->
<resource enabled="true">
<name>main-db</name>
<provider>jeeves.resources.dbms.DbmsPool</provider>
<config>
<user>postgres</user>
<password>my_password</password>
<driver>org.postgresql.Driver</driver>
<!-- URL :distant server -->
<url>jdbc:postgresql://11.52.155.253:5432/my_database</url>
<poolSize>10</poolSize>
</config>
</resource>
But, it does not work well. For ex: Categories are not displayed. Please
find below a piece of the log file:
2008-10-15 14:21:56,298 INFO [jeeves.request] -
2008-10-15 14:21:56,298 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /srv/en/main.home
2008-10-15 14:21:56,298 DEBUG [jeeves.request] - Method : GET
2008-10-15 14:21:56,298 DEBUG [jeeves.request] - Content type : null
2008-10-15 14:21:56,298 DEBUG [jeeves.request] - Accept :
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
2008-10-15 14:21:56,298 INFO [jeeves.service] - Dispatching : main.home
2008-10-15 14:21:56,298 DEBUG [jeeves.service] - -> no input parameters
2008-10-15 14:21:56,298 INFO [jeeves.service] - -> dispatching to output
for : main.home
2008-10-15 14:21:56,392 INFO [jeeves.webapp.main.home] - Returning search
data
2008-10-15 14:21:56,407 DEBUG [jeeves.dbms.select] - Query : SELECT * FROM
Categories
2008-10-15 14:21:56,407 DEBUG [jeeves.dbms.select] - Found 12 records in 0.0
secs
2008-10-15 14:21:56,407 DEBUG [jeeves.dbms.select] - Query : SELECT * FROM
CategoriesDes
2008-10-15 14:21:56,407 DEBUG [jeeves.dbms.select] - Found 40 records in 0.0
secs
2008-10-15 14:21:56,407 ERROR [jeeves.service] - Exception executing gui
service : java.lang.NullPointerException
2008-10-15 14:21:56,407 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.services.category.List.exec(List.java:54)
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:639)
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:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
2008-10-15 14:21:56,407 DEBUG [jeeves.dbms.select] - Query : SELECT uuid as
siteId, name FROM Sources
2008-10-15 14:21:56,423 DEBUG [jeeves.dbms.select] - Found 0 records in
0.016 secs
2008-10-15 14:21:56,423 DEBUG [jeeves.dbms.select] - Query : SELECT DISTINCT
id, changeDate FROM Metadata, OperationAllowed WHERE id=metadataId AND
isTemplate='n' AND operationId=0 AND (groupId=0 OR groupId=1) ORDER BY
changeDate DESC
2008-10-15 14:21:56,423 DEBUG [jeeves.dbms.select] - Found 0 records in 0.0
secs
2008-10-15 14:21:56,423 DEBUG [jeeves.dbms.select] - Query : SELECT * FROM
Regions
2008-10-15 14:21:56,438 DEBUG [jeeves.dbms.select] - Found 287 records in
0.015 secs
2008-10-15 14:21:56,501 INFO [jeeves.webapp.main.home] - Returning search
data
2008-10-15 14:21:56,501 INFO [jeeves.service] - -> transforming with
stylesheet : C:\workspace\my_database\web\geonetwork\/xsl/main-page.xsl
2008-10-15 14:21:57,110 INFO [jeeves.service] - -> end transformation
for : main.home
2008-10-15 14:21:57,110 INFO [jeeves.service] - -> output ended for :
main.home
2008-10-15 14:21:57,110 INFO [jeeves.service] - -> dispatch ended for :
main.home
Can anyone help me out to find what's happening?
Thanks.
Abel
--
View this message in context: http://www.nabble.com/GN-on-Ubuntu-with-PostgreSQL-tp19999805p19999805.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.