WLS 7.0 SP2 - Servlets destroy and init arbitrarily (Doc ID 772854.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server / WebLogic Server / 7
Information in this document applies to any platform

Goal

Under high load, some of the servlets are being destroyed and reloaded. This causes references to dereference
non-existing objects and the system crashes. This happens even if you have dynamic reloading of servlets turned off.
The following is a snipet from the JVM log.

For run 2003-04-04_18-01-07 automatic servlet reloading for nextfire.war was disabled using the WebLogic console,
config.xml is as follows:

<WebAppComponent Name="nextfire.war" ServletReloadCheckSecs="-1"
Targets="wfa01.localdomain" URI="nextfire.war"/>

Reproduced after 58 hours of load testing. No apparent reason why the servlets are getting destroyed:

<Mar 28, 2003 4:35:24 AM EST> <Info> <HTTP> <101047>
<[ServletContext(id=7498872,name=nextfire.war,context-path=/
NextFire)] /*: destroy>
<Mar 28, 2003 4:35:24 AM EST> <Info> <HTTP> <101047>
<[ServletContext(id=7498872,name=nextfire.war,context-path=/
NextFire)] /*: init>
<Mar 28, 2003 4:35:24 AM EST> <Info> <HTTP> <101047>
<[ServletContext(id=7498872,name=nextfire.war,context-path=/
NextFire)] /*: Using standard I/O>
<Mar 28, 2003 4:35:24 AM EST> <Info> <HTTP> <101047>
<[ServletContext(id=7498872,name=nextfire.war,context-path=/
NextFire)] RequestHandlerServlet: destroy>
<Mar 28, 2003 4:35:24 AM EST> <Info> <HTTP> <101047>
<[ServletContext(id=7498872,name=nextfire.war,context-path=/
NextFire)] RequestHandlerServlet: init>
<Mar 28, 2003 4:35:24 AM EST> <Info> <HTTP> <101047>
<[ServletContext(id=7498872,name=nextfire.war,context-path=/
NextFire)] GrammarServlet: init>
gilDirPath is: /NextFire/FSROOT/ThePlatformId/svcfiles
gilResourcePath is: /FSROOT/ThePlatformId/svcfiles/
GIL file added: /FSROOT/ThePlatformId/svcfiles/AddressBook.gil
 ...
GIL file added: /FSROOT/ThePlatformId/svcfiles/VoiceDialing.gil
 ...
gilDirPath is: /NextFire/FSROOT/ThePlatformId/svcfiles
gilResourcePath is: /FSROOT/ThePlatformId/svcfiles/
GIL file added: /FSROOT/ThePlatformId/svcfiles/AddressBook.gil
 ...
GIL file added: /FSROOT/ThePlatformId/svcfiles/VoiceDialing.gil
Adding form:  class com.wildfire.nf.services.helper.Main
<Mar 28, 2003 4:35:32 AM EST> <Error> <HTTP> <101017>
<[ServletContext(id=7498872,name=nextfire.war,context-path=
/NextFire)] Root cause of ServletException
java.lang.NullPointerException: runtimeMap == null
        at com.wildfire.nf.fw.dtmf.DtmfMapManager.getRuntimeMap(DtmfMapManager.java:182)
        at com.wildfire.nf.fw.session.SubscriberSession.initGrammar(SubscriberSession.java:457)
        at com.wildfire.nf.fw.session.SubscriberSession.init(SubscriberSession.java:314)
        at com.wildfire.nf.fw.controller.RequestHandlerServlet.doPageRequest(RequestHandlerServlet.java:191)
        at com.wildfire.nf.fw.controller.RequestHandlerServlet.doGet(RequestHandlerServlet.java:135)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at com.wildfire.nf.fw.controller.RequestHandlerServlet.service(RequestHandlerServlet.java:122)

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms