• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

NullPointerException on Windows Service shutdown

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I noticed this error while reviewing the logs and I further isolated it to when I shut the Tomcat Windows service off (working on previous issue)...


16-Oct-2020 12:37:49.350 SEVERE [Thread-5]

org.apache.catalina.core.StandardWrapper.unload InstanceManager.destroy() for servlet [QueryEngineServlet] threw exception

java.lang.NullPointerException at org.apache.catalina.core.DefaultInstanceManager.destroyInstance (DefaultInstanceManager.java:197) at...etc...etc...


I don't think it has anything to do with the destroy() methods in the running servlets as it doesn't specify those classes..rather it's destroy() in DefaultInstanceMenager.destroyInstance...and it seems to be on a higher thread level. Would anybody have an idea how to address this?

I do have two web apps running with the same servlet name (QueryEngneConfig)...could that be it? I wouldn't think so. I checked web.xml for both web apps and it seems ok.

The requests and responses seem all right as I noticed this error only in the log and it occurs only at service shutdown.

thank you very much.
 
Saloon Keeper
Posts: 22803
153
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is probably related to your other post (https://coderanch.com/t/735714/java/NullPointerException-error)

So let's see how that resolves before getting too involved here.
 
Thomas Griffith
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I thought I should put it in consolidated form in Tomcat forum, should I remove this thread (although I don't think I have that access)?
 
Marshal
Posts: 26135
77
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's fine, I just marked it as "resolved". It really isn't of course, but your other thread is the place for you and others to follow up.
 
We don't have time to be charming! Quick, read this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic