Java Null Pointer Exception Received When Attempting to Delete Calendar (Doc ID 1098487.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version: 6.1.1 to 6.1.2 - Release: 6.1 to 6.1
Information in this document applies to any platform.

Symptoms

On OTM Version 6.1.1, When attempting to delete a Calendar in OTM, the following error occurs:

Unable to remove Calendar entity DOMAIN.CALENDAR
java.lang.NullPointerException

The issue can be reproduced at will with the following steps:
1. Log into OTM
2. Navigate to Shipment Management -->Power Data -->Calendar -->Calendar Definitions
3. Search for a Calendar which is not attached to any records
4. Select the Calendar and click the Delete Button
5. Note the error received.

Unable to remove Calendar entity DOMAIN.CALENDAR
java.lang.NullPointerException

The full stack trace is as follows:
java.lang.NullPointerException
at glog.ejb.calendar.CalendarBean.preRemove(CalendarBean.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
ava:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
glog.util.beandata.BeanDataHelper$PrePost.runAndThrow(BeanDataHelper.java:345)

at glog.util.ThrowablePrivilegedAction.run(ThrowablePrivilegedAction.java:12)
at
glog.util.ThrowablePrivilegedAction.doPrivileged(ThrowablePrivilegedAction.jav
a:26)
at
glog.util.beandata.BeanDataHelper$BeanCallback.call(BeanDataHelper.java:232)
at
glog.util.beandata.BeanDataHelper$BeanCallback.call(BeanDataHelper.java:200)
at glog.util.beandata.BeanDataRemover.preRemove(BeanDataRemover.java:384)
at glog.util.beandata.BeanDataRemover.remove(BeanDataRemover.java:174)
at glog.util.beandata.BeanDataRemover.remove(BeanDataRemover.java:206)
at
glog.util.persistence.BeanDataPersistenceExecutor.deletePereformed(BeanDataPer
sistenceExecutor.java:87)
at
glog.util.persistence.PersistenceExecutor.persistencePerformed(PersistenceExec
utor.java:96)
at glog.util.persistence.CascadeDelete.doRemoval(CascadeDelete.java:176)
at glog.util.persistence.CascadeDelete.persist(CascadeDelete.java:69)
at
glog.util.persistence.PersistenceManager.execute(PersistenceManager.java:122)
at
glog.util.genericcontainer.GenericContainerUtilSessionBean.store(GenericContai
nerUtilSessionBean.java:37)
at
glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper.sto
re(GenericContainerUtilSessionServerSideEJBWrapper.java:46)
at
ericContainerUtilSessionBean.java:123)
at
glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper.com
pareAndStore(GenericContainerUtilSessionServerSideEJBWrapper.java:268)
at
glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper_6hr
tm7_EOImpl.compareAndStore(GenericContainerUtilSessionServerSideEJBWrapper_6hr
tm7_EOImpl.java:718)
at
glog.webserver.update.AbstractUpdate.callGenericContainer(AbstractUpdate.java:
359) at
glog.webserver.update.GenericContainerXMLUpdate.delete(GenericContainerXMLUpda
te.java:356)
at glog.webserver.update.GenericContainerXMLUpdate.process(GenericContainerXMLUpd
ate.java:118)
at
glog.server.xmlupdate.XMLUpdateSessionBean.updateAndTrack(XMLUpdateSessionBean
.java:244)
at
glog.server.xmlupdate.XMLUpdateSessionServerSideEJBWrapper.updateAndTrack(XMLU
pdateSessionServerSideEJBWrapper.java:344)
at
glog.server.xmlupdate.XMLUpdateSessionHome_x72wrp_EOImpl.updateAndTrack(XMLUpd
ateSessionHome_x72wrp_EOImpl.java:285)
at
glog.server.xmlupdate.XMLUpdateSessionHome_x72wrp_EOImpl_WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:590)
at
weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230
)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at
weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

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