Nullpointerexeption While Invoking Timerservice#Createtimer(..) (Doc ID 1327996.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.0 to 10.3.5
Information in this document applies to any platform.

Symptoms

On WLS 10.3.2 when using a clustered EJB timer in your applications and using ServletContextListener to reset timer.
When you restart one/any of the clustered servers (hosting this application) will notice below exception trace:


javax.ejb.EJBException: EJB Exception: ; nested exception is:
java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.container.timer.ClusteredEJBTimerManager.createTimer(ClusteredEJBTimerManager.java:76)
at weblogic.ejb.container.internal.TimerServiceImpl.createTimer(TimerServiceImpl.java:75)
at weblogic.ejb.container.internal.TimerServiceImpl.createTimer(TimerServiceImpl.java:39)
at weblogic.ejb.container.deployer.TimerServiceProxyImpl.createTimer(TimerServiceProxyImpl.java:56)
at com.customerdomain.logic.eai.EventsRetryBean.initTimer(EventsRetryBean.java:78)
at com.customerdomain.logic.eai.EventsRetryBean.init(EventsRetryBean.java:68)
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:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

Cause

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