[GeoNetwork-users] Jeeves.service NullPointerException

Hi All,

A very odd issue popped up for our Geonetwork installation this week. We noticed that the web services we were using were failing, and the error was a NullPointerException. We were trying to log on to the system, but could not get past the logon screen. After a little digging, we noticed the stack trace were point to jeeves (see below).

I tried to bring another instance of Geonetwork up on the same box (a fresh 2.6.3 version) that just used the built-in defaults, but had similar issues. I then went to our testing environment which had a version running in the past to see if that was working, and got the same NullPointerException. I can’t seem to make heads or tails of what’s going on in all these different environments.

Looking at the source, it appears as though it’s getting a NullPointer from the Geonet.CONTEXT_NAME, but I’m not sure how that would have gotten reset (especially against three different versions running on physically different hardware). I’m hoping someone might have an insight on this...

TIA,
Wayne

=================================
3435649 [catalina-exec-3] ERROR jeeves.service - Exception when executing service
3435649 [catalina-exec-3] ERROR jeeves.service - (C) Exc : java.lang.NullPointerException
3435687 [catalina-exec-3] ERROR jeeves.service - Exception executing gui service : java.lang.NullPointerException
3435688 [catalina-exec-3] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
    at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
    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:103)
    at jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:672)
    at jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:464)
    at jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:409)
    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:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    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:191)
    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:286)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1978)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)

hello Wayne,

possibly there is no functioning connection to the database. If you have any
public metadata already in, can you find it searching from the home page ?

If not surely there is an issue with the database connection. Otherwise,
please turn all logging levels in log4j.properties to DEBUG, start your
application, and let's look if we see anything in your log file.

Kind regards
Heikki Doeleman

On Thu, Feb 10, 2011 at 10:46 PM, Graham, Wayne (wsg4w) <
wsg4w@anonymised.com> wrote:

Hi All,

A very odd issue popped up for our Geonetwork installation this week. We
noticed that the web services we were using were failing, and the error was
a NullPointerException. We were trying to log on to the system, but could
not get past the logon screen. After a little digging, we noticed the stack
trace were point to jeeves (see below).

I tried to bring another instance of Geonetwork up on the same box (a fresh
2.6.3 version) that just used the built-in defaults, but had similar issues.
I then went to our testing environment which had a version running in the
past to see if that was working, and got the same NullPointerException. I
can’t seem to make heads or tails of what’s going on in all these different
environments.

Looking at the source, it appears as though it’s getting a NullPointer from
the Geonet.CONTEXT_NAME, but I’m not sure how that would have gotten reset
(especially against three different versions running on physically different
hardware). I’m hoping someone might have an insight on this...

TIA,
Wayne

=================================
3435649 [catalina-exec-3] ERROR jeeves.service - Exception when executing
service
3435649 [catalina-exec-3] ERROR jeeves.service - (C) Exc :
java.lang.NullPointerException
3435687 [catalina-exec-3] ERROR jeeves.service - Exception executing gui
service : java.lang.NullPointerException
3435688 [catalina-exec-3] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
   at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
   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:103)
   at
jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:672)
   at
jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:464)
   at
jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:409)
   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:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   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:191)
   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:286)
   at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
   at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
   at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1978)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

Hi Heikki,

Database checks out from psql (~500 records in the database) from that server. Can’t see any items from the search, just a login box with a NullPointer exception displays (see http://lat.lib.virginia.edu:8080/geonetwork).

I’ll turn the debugging up and see if there’s anything else popping up.

Thanks,
Wayne

On 2/10/11 4:52 PM, "heikki" <tropicano@anonymised.com> wrote:

hello Wayne,

possibly there is no functioning connection to the database. If you have any public metadata already in, can you find it searching from the home page ?

If not surely there is an issue with the database connection. Otherwise, please turn all logging levels in log4j.properties to DEBUG, start your application, and let's look if we see anything in your log file.

Kind regards
Heikki Doeleman

On Thu, Feb 10, 2011 at 10:46 PM, Graham, Wayne (wsg4w) <wsg4w@anonymised.com> wrote:
Hi All,

A very odd issue popped up for our Geonetwork installation this week. We noticed that the web services we were using were failing, and the error was a NullPointerException. We were trying to log on to the system, but could not get past the logon screen. After a little digging, we noticed the stack trace were point to jeeves (see below).

I tried to bring another instance of Geonetwork up on the same box (a fresh 2.6.3 version) that just used the built-in defaults, but had similar issues. I then went to our testing environment which had a version running in the past to see if that was working, and got the same NullPointerException. I can’t seem to make heads or tails of what’s going on in all these different environments.

Looking at the source, it appears as though it’s getting a NullPointer from the Geonet.CONTEXT_NAME, but I’m not sure how that would have gotten reset (especially against three different versions running on physically different hardware). I’m hoping someone might have an insight on this...

TIA,
Wayne

=================================
3435649 [catalina-exec-3] ERROR jeeves.service - Exception when executing service
3435649 [catalina-exec-3] ERROR jeeves.service - (C) Exc : java.lang.NullPointerException
3435687 [catalina-exec-3] ERROR jeeves.service - Exception executing gui service : java.lang.NullPointerException
3435688 [catalina-exec-3] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
    at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
    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:103)
    at jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:672)
    at jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:464)
    at jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:409)
    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:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    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:191)
    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:286)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1978)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

Hi guys

Had something very very similar the other day.

2.6.3 running, with connection to db. DB machine rebooted for maintenance
and Geonetwork admin went crazy for 30 mins trying to work out what
happened.

Loglevel did not show the connection was lost and just started throwing the
exceptions described.

Did a howto for JNDI connection pooling ever get published?
http://osgeo-org.1803224.n2.nabble.com/Geonetwork-and-JNDI-connection-poolin
g-td4750597.html

Terry

-----Original Message-----
From: Graham, Wayne (wsg4w) [mailto:wsg4w@anonymised.com]
Sent: Friday, 11 February 2011 8:33 AM
To: Geonetwork
Subject: Re: [GeoNetwork-users] Jeeves.service NullPointerException

Hi Heikki,

Database checks out from psql (~500 records in the database) from that
server. Can't see any items from the search, just a login box with a
NullPointer exception displays (see
http://lat.lib.virginia.edu:8080/geonetwork).

I'll turn the debugging up and see if there's anything else popping up.

Thanks,
Wayne

On 2/10/11 4:52 PM, "heikki" <tropicano@anonymised.com> wrote:

hello Wayne,

possibly there is no functioning connection to the database. If you have any
public metadata already in, can you find it searching from the home page ?

If not surely there is an issue with the database connection. Otherwise,
please turn all logging levels in log4j.properties to DEBUG, start your
application, and let's look if we see anything in your log file.

Kind regards
Heikki Doeleman

On Thu, Feb 10, 2011 at 10:46 PM, Graham, Wayne (wsg4w)
<wsg4w@anonymised.com> wrote:
Hi All,

A very odd issue popped up for our Geonetwork installation this week. We
noticed that the web services we were using were failing, and the error was
a NullPointerException. We were trying to log on to the system, but could
not get past the logon screen. After a little digging, we noticed the stack
trace were point to jeeves (see below).

I tried to bring another instance of Geonetwork up on the same box (a fresh
2.6.3 version) that just used the built-in defaults, but had similar issues.
I then went to our testing environment which had a version running in the
past to see if that was working, and got the same NullPointerException. I
can't seem to make heads or tails of what's going on in all these different
environments.

Looking at the source, it appears as though it's getting a NullPointer from
the Geonet.CONTEXT_NAME, but I'm not sure how that would have gotten reset
(especially against three different versions running on physically different
hardware). I'm hoping someone might have an insight on this...

TIA,
Wayne

=================================
3435649 [catalina-exec-3] ERROR jeeves.service - Exception when executing
service
3435649 [catalina-exec-3] ERROR jeeves.service - (C) Exc :
java.lang.NullPointerException
3435687 [catalina-exec-3] ERROR jeeves.service - Exception executing gui
service : java.lang.NullPointerException
3435688 [catalina-exec-3] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
    at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
    at jeeves.server.dispatchers.guiservices.Call.exec(Call.java:75)
    at
jeeves.server.dispatchers.AbstractPage.invokeGuiService(AbstractPage.java:11
9)
    at
jeeves.server.dispatchers.AbstractPage.invokeGuiServices(AbstractPage.java:1
03)
    at
jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:6
72)
    at
jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:464
)
    at
jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:409)
    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:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
    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:286)
    at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:
857)
    at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:565)
    at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
1978)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
va:885)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
07)
    at java.lang.Thread.run(Thread.java:619)

----------------------------------------------------------------------------
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

----------------------------------------------------------------------------
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

hi Wayne,

it's curious to see the page switching to the login form, with that
non-informative error message displayed on the page.

Did you try to do things with a standard GeoNetwork user interface too ?
What happens then ?

So I think for now, best is to look at your logs with DEBUG on. I still
suspect it may have something to do with the DB connection, but we can't be
sure yet.

By the way, for future problems like this I've requested a feature to show a
clear warning if there's no DB connection, see
http://trac.osgeo.org/geonetwork/ticket/452. But that doesn't help you now.

Also by the way, in Chrome your user interface does not degrade very well,
to put it mildly ;-). But that has nothing to do with this topic.

Kind regards
Heikki Doeleman

On Fri, Feb 11, 2011 at 1:33 AM, Graham, Wayne (wsg4w) <
wsg4w@anonymised.com> wrote:

Hi Heikki,

Database checks out from psql (~500 records in the database) from that
server. Can’t see any items from the search, just a login box with a
NullPointer exception displays (see
http://lat.lib.virginia.edu:8080/geonetwork).

I’ll turn the debugging up and see if there’s anything else popping up.

Thanks,
Wayne

On 2/10/11 4:52 PM, "heikki" <tropicano@anonymised.com> wrote:

hello Wayne,

possibly there is no functioning connection to the database. If you have
any public metadata already in, can you find it searching from the home page
?

If not surely there is an issue with the database connection. Otherwise,
please turn all logging levels in log4j.properties to DEBUG, start your
application, and let's look if we see anything in your log file.

Kind regards
Heikki Doeleman

On Thu, Feb 10, 2011 at 10:46 PM, Graham, Wayne (wsg4w) <
wsg4w@anonymised.com> wrote:
Hi All,

A very odd issue popped up for our Geonetwork installation this week. We
noticed that the web services we were using were failing, and the error was
a NullPointerException. We were trying to log on to the system, but could
not get past the logon screen. After a little digging, we noticed the stack
trace were point to jeeves (see below).

I tried to bring another instance of Geonetwork up on the same box (a fresh
2.6.3 version) that just used the built-in defaults, but had similar issues.
I then went to our testing environment which had a version running in the
past to see if that was working, and got the same NullPointerException. I
can’t seem to make heads or tails of what’s going on in all these different
environments.

Looking at the source, it appears as though it’s getting a NullPointer from
the Geonet.CONTEXT_NAME, but I’m not sure how that would have gotten reset
(especially against three different versions running on physically different
hardware). I’m hoping someone might have an insight on this...

TIA,
Wayne

=================================
3435649 [catalina-exec-3] ERROR jeeves.service - Exception when executing
service
3435649 [catalina-exec-3] ERROR jeeves.service - (C) Exc :
java.lang.NullPointerException
3435687 [catalina-exec-3] ERROR jeeves.service - Exception executing gui
service : java.lang.NullPointerException
3435688 [catalina-exec-3] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
   at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
   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:103)
   at
jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:672)
   at
jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:464)
   at
jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:409)
   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:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   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:191)
   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:286)
   at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
   at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
   at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1978)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

ok please forget about that Chrome remark -- reloading with Ctrl+F5 fixed
it. Those browser caches can be a * in the *.

On Fri, Feb 11, 2011 at 2:34 AM, heikki <tropicano@anonymised.com> wrote:

hi Wayne,

it's curious to see the page switching to the login form, with that
non-informative error message displayed on the page.

Did you try to do things with a standard GeoNetwork user interface too ?
What happens then ?

So I think for now, best is to look at your logs with DEBUG on. I still
suspect it may have something to do with the DB connection, but we can't be
sure yet.

By the way, for future problems like this I've requested a feature to show
a clear warning if there's no DB connection, see
http://trac.osgeo.org/geonetwork/ticket/452. But that doesn't help you
now.

Also by the way, in Chrome your user interface does not degrade very well,
to put it mildly ;-). But that has nothing to do with this topic.

Kind regards
Heikki Doeleman

On Fri, Feb 11, 2011 at 1:33 AM, Graham, Wayne (wsg4w) <
wsg4w@anonymised.com> wrote:

Hi Heikki,

Database checks out from psql (~500 records in the database) from that
server. Can’t see any items from the search, just a login box with a
NullPointer exception displays (see
http://lat.lib.virginia.edu:8080/geonetwork).

I’ll turn the debugging up and see if there’s anything else popping up.

Thanks,
Wayne

On 2/10/11 4:52 PM, "heikki" <tropicano@anonymised.com> wrote:

hello Wayne,

possibly there is no functioning connection to the database. If you have
any public metadata already in, can you find it searching from the home page
?

If not surely there is an issue with the database connection. Otherwise,
please turn all logging levels in log4j.properties to DEBUG, start your
application, and let's look if we see anything in your log file.

Kind regards
Heikki Doeleman

On Thu, Feb 10, 2011 at 10:46 PM, Graham, Wayne (wsg4w) <
wsg4w@anonymised.com> wrote:
Hi All,

A very odd issue popped up for our Geonetwork installation this week. We
noticed that the web services we were using were failing, and the error was
a NullPointerException. We were trying to log on to the system, but could
not get past the logon screen. After a little digging, we noticed the stack
trace were point to jeeves (see below).

I tried to bring another instance of Geonetwork up on the same box (a
fresh 2.6.3 version) that just used the built-in defaults, but had similar
issues. I then went to our testing environment which had a version running
in the past to see if that was working, and got the same
NullPointerException. I can’t seem to make heads or tails of what’s going on
in all these different environments.

Looking at the source, it appears as though it’s getting a NullPointer
from the Geonet.CONTEXT_NAME, but I’m not sure how that would have gotten
reset (especially against three different versions running on physically
different hardware). I’m hoping someone might have an insight on this...

TIA,
Wayne

=================================
3435649 [catalina-exec-3] ERROR jeeves.service - Exception when executing
service
3435649 [catalina-exec-3] ERROR jeeves.service - (C) Exc :
java.lang.NullPointerException
3435687 [catalina-exec-3] ERROR jeeves.service - Exception executing gui
service : java.lang.NullPointerException
3435688 [catalina-exec-3] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
   at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
   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:103)
   at
jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:672)
   at
jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:464)
   at
jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:409)
   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:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   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:191)
   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:286)
   at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
   at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
   at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1978)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

Thanks Terry and Heikki.

Turning the log4j settings up to DEBUG showed another issue in the log file with the lucene lock file timing out. Move that out of the way and the search came back online. There’s a bunch of SQL Exceptions, but I at least I have the search back online. Thanks for the help!

Wayne

On 2/10/11 9:37 PM, "heikki" <tropicano@anonymised.com> wrote:

ok please forget about that Chrome remark -- reloading with Ctrl+F5 fixed it. Those browser caches can be a * in the *.

On Fri, Feb 11, 2011 at 2:34 AM, heikki <tropicano@anonymised.com> wrote:
hi Wayne,

it's curious to see the page switching to the login form, with that non-informative error message displayed on the page.

Did you try to do things with a standard GeoNetwork user interface too ? What happens then ?

So I think for now, best is to look at your logs with DEBUG on. I still suspect it may have something to do with the DB connection, but we can't be sure yet.

By the way, for future problems like this I've requested a feature to show a clear warning if there's no DB connection, see http://trac.osgeo.org/geonetwork/ticket/452. But that doesn't help you now.

Also by the way, in Chrome your user interface does not degrade very well, to put it mildly ;-). But that has nothing to do with this topic.

Kind regards
Heikki Doeleman

On Fri, Feb 11, 2011 at 1:33 AM, Graham, Wayne (wsg4w) <wsg4w@anonymised.com> wrote:
Hi Heikki,

Database checks out from psql (~500 records in the database) from that server. Can’t see any items from the search, just a login box with a NullPointer exception displays (see http://lat.lib.virginia.edu:8080/geonetwork).

I’ll turn the debugging up and see if there’s anything else popping up.

Thanks,
Wayne

On 2/10/11 4:52 PM, "heikki" <tropicano@anonymised.com> wrote:

hello Wayne,

possibly there is no functioning connection to the database. If you have any public metadata already in, can you find it searching from the home page ?

If not surely there is an issue with the database connection. Otherwise, please turn all logging levels in log4j.properties to DEBUG, start your application, and let's look if we see anything in your log file.

Kind regards
Heikki Doeleman

On Thu, Feb 10, 2011 at 10:46 PM, Graham, Wayne (wsg4w) <wsg4w@anonymised.com> wrote:
Hi All,

A very odd issue popped up for our Geonetwork installation this week. We noticed that the web services we were using were failing, and the error was a NullPointerException. We were trying to log on to the system, but could not get past the logon screen. After a little digging, we noticed the stack trace were point to jeeves (see below).

I tried to bring another instance of Geonetwork up on the same box (a fresh 2.6.3 version) that just used the built-in defaults, but had similar issues. I then went to our testing environment which had a version running in the past to see if that was working, and got the same NullPointerException. I can’t seem to make heads or tails of what’s going on in all these different environments.

Looking at the source, it appears as though it’s getting a NullPointer from the Geonet.CONTEXT_NAME, but I’m not sure how that would have gotten reset (especially against three different versions running on physically different hardware). I’m hoping someone might have an insight on this...

TIA,
Wayne

=================================
3435649 [catalina-exec-3] ERROR jeeves.service - Exception when executing service
3435649 [catalina-exec-3] ERROR jeeves.service - (C) Exc : java.lang.NullPointerException
3435687 [catalina-exec-3] ERROR jeeves.service - Exception executing gui service : java.lang.NullPointerException
3435688 [catalina-exec-3] ERROR jeeves.service - (C) Stack trace is :
java.lang.NullPointerException
    at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
    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:103)
    at jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:672)
    at jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:464)
    at jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:409)
    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:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    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:191)
    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:286)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1978)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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