Dear all,
I have the following issue with :
geonetwork 2.1
Tomcat/5.5.26
JAVA 1.5.0_10
when I stop tomcat some null pointer exception are raising in the catalina.out
Java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
Caused by: java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Category.getInstance(Category.java:519)
at com.k_int.util.LoggingFacade.Log4JCategory.<init>(Unknown Source)
The problem occurs when I try to stop Tomcat. Tomcat then seems to be stopped (pages are no longer reachable), but the Tomcat process is still active in the UNIX process queue.
Therefore, when I start Tomcat again, two processes are available which interfere each other.
Furthermore, the reason why I would like to stop Tomcat is to release its database connection, and if the process is still active, the database connection is not deleted.
When i drop the geonetwork application from tomcat I didn't have this issue.
How to solve this problem ?
Any ideas ?
Thank you by advance.
Fabien Bachraty.
--
View this message in context: http://n2.nabble.com/Error-with-geonetwork-when-stopping-Tomcat-tp2615179p2615179.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
Hi Fabien,
Do you have this parameter in your startup script: -Djava.awt.headless=true
I had similar problems in the past that caused the shutdown process to fail in relation to InterMap.
Ciao,
Jeroen
On Apr 10, 2009, at 10:09 AM, FBachraty wrote:
Dear all,
I have the following issue with :
geonetwork 2.1
Tomcat/5.5.26
JAVA 1.5.0_10
when I stop tomcat some null pointer exception are raising in the catalina.out
Java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
Caused by: java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Category.getInstance(Category.java:519)
at com.k_int.util.LoggingFacade.Log4JCategory.<init>(Unknown Source)
The problem occurs when I try to stop Tomcat. Tomcat then seems to be stopped (pages are no longer reachable), but the Tomcat process is still active in the UNIX process queue.
Therefore, when I start Tomcat again, two processes are available which interfere each other.
Furthermore, the reason why I would like to stop Tomcat is to release its database connection, and if the process is still active, the database connection is not deleted.
When i drop the geonetwork application from tomcat I didn't have this issue.
How to solve this problem ?
Any ideas ?
Thank you by advance.
Fabien Bachraty.
--
View this message in context: http://n2.nabble.com/Error-with-geonetwork-when-stopping-Tomcat-tp2615179p2615179.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net
Thank you Jeroen,
But unfortunately it does'nt change anything
I put :
export CATALINA_OPTS="-Djava.awt.headless=true"
on catalina.sh
I stop tomcat and all old process, and then I restart it
Is that correct ?
When I stop it I still have the same issues.
Anyway thank you for this good idea.
In addition I write here the complete error message.
2009-04-10 13:26:33,031 INFO [jeeves.engine] - === System stopped ========================================
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.k_int.util.LoggingFacade.LogContextFactory.getContext(Unknown Source)
at com.k_int.hss.HSSSearchTask.<clinit>(HSSSearchTask.java:53)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.set(Field.java:656)
at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1620)
at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1500)
at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:734)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4398)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Category.getInstance(Category.java:519)
at com.k_int.util.LoggingFacade.Log4JCategory.<init>(Unknown Source)
... 29 more
10 avr. 2009 13:26:33 org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Arrêt de Coyote HTTP/1.1 sur http-8180
10 avr. 2009 13:26:33 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Hi Fabien,
Do you have this parameter in your startup script: -
Djava.awt.headless=true
I had similar problems in the past that caused the shutdown process to
fail in relation to InterMap.
Ciao,
Jeroen
--
View this message in context: http://n2.nabble.com/Error-with-geonetwork-when-stopping-Tomcat-tp2615179p2615731.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
Hello Fabien,
If you're using 2.1, maybe you should apply this fix for Intermap
http://n2.nabble.com/SF.net-SVN%3A-geonetwork%3A-1557--trunk-src-org-wfp-vam-intermap-kernel--TempFiles.java-td2022193.html#a2022193
HTH. Francois
2009/4/10 FBachraty <Fabien.Bachraty@anonymised.com>:
Thank you Jeroen,
But unfortunately it does'nt change anything
I put :
export CATALINA_OPTS="-Djava.awt.headless=true"
on catalina.sh
I stop tomcat and all old process, and then I restart it
Is that correct ?
When I stop it I still have the same issues.
Anyway thank you for this good idea.
In addition I write here the complete error message.
2009-04-10 13:26:33,031 INFO [jeeves.engine] - === System stopped ========================================
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.k_int.util.LoggingFacade.LogContextFactory.getContext(Unknown Source)
at com.k_int.hss.HSSSearchTask.<clinit>(HSSSearchTask.java:53)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.set(Field.java:656)
at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1620)
at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1500)
at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:734)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4398)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Category.getInstance(Category.java:519)
at com.k_int.util.LoggingFacade.Log4JCategory.<init>(Unknown Source)
... 29 more
10 avr. 2009 13:26:33 org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Arrêt de Coyote HTTP/1.1 sur http-8180
10 avr. 2009 13:26:33 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Hi Fabien,
Do you have this parameter in your startup script: -
Djava.awt.headless=true
I had similar problems in the past that caused the shutdown process to
fail in relation to InterMap.
Ciao,
Jeroen
--
View this message in context: http://n2.nabble.com/Error-with-geonetwork-when-stopping-Tomcat-tp2615179p2615731.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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
You must be right François !
For the moment I just delete the intermap module on tomcat server.xml and the stopping work well.
Next week I will try the fix you provided to me and I will inform you of the result.
But regarding the context it is certainly the solution.
Thank you.
Hello Fabien,
If you're using 2.1, maybe you should apply this fix for Intermap
http://n2.nabble.com/SF.net-SVN%3A-geonetwork%3A-1557--trunk-src-org-wfp-vam-intermap-kernel--TempFiles.java-td2022193.html#a2022193
HTH. Francois
--
View this message in context: http://n2.nabble.com/Error-with-geonetwork-when-stopping-Tomcat-tp2615179p2615854.html
Sent from the geonetwork-users mailing list archive at Nabble.com.