Null Pointer Exception Received Creating Custom Action For Work Invoice Agent (Doc ID 1328990.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

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

Symptoms


When attempting to create a custom action using a Agent for a type of WORK_INVOICE, a null pointer error is received due to the Agent Event missing.

ERROR
-----------------------
java.lang.NullPointerException

java.lang.NullPointerException
at glog.comm.agent.EventListenedTo.<init>(EventListenedTo.java:56)
at glog.comm.agent.EventListenedTo.<init>(EventListenedTo.java:52)
at glog.server.agent.manual.ManualAgentSubscription.<init>(ManualAgentSubscription.java:31)
at glog.server.agent.manual.ManualAgentLoader.createSubscription(ManualAgentLoader.java:58)
at glog.server.agent.manual.ManualAgentPersister.create(ManualAgentPersister.java:49)
at glog.ejb.action.ManualAgentTriggerBean.updateManualAgentTrigger(ManualAgentTriggerBean.java:41)
at glog.ejb.action.ManualAgentTriggerBean.onCreate(ManualAgentTriggerBean.java:21)
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 glog.util.beandata.BeanDataHelper$PrePost.runAndThrow(BeanDataHelper.java:345)
at glog.util.ThrowablePrivilegedAction.run(ThrowablePrivilegedAction.java:12)
at glog.util.ThrowablePrivilegedAction.doPrivileged(ThrowablePrivilegedAction.java:26)
at glog.util.beandata.BeanDataHelper$BeanCallback.call(BeanDataHelper.java:232)
at glog.util.beandata.BeanDataHelper$BeanOnCallback.call(BeanDataHelper.java:281)
at glog.util.beandata.BeanDataInserter.postCreate(BeanDataInserter.java:438)
at glog.util.beandata.BeanDataInserter.insert(BeanDataInserter.java:202)
at glog.util.beandata.BeanDataInserter.insert(BeanDataInserter.java:232)
at glog.util.beandata.BeanDataInserter.insert(BeanDataInserter.java:171)
at glog.util.persistence.BeanDataPersistenceExecutor.insertPerformed(BeanDataPersistenceExecutor.java:98)
at glog.util.persistence.PersistenceExecutor.persistencePerformed(PersistenceExecutor.java:91)
at glog.util.persistence.WaterFallInsertion.performedInsertion(WaterFallInsertion.java:264)
at glog.util.persistence.WaterFallInsertion.persist(WaterFallInsertion.java:106)
at glog.util.persistence.WaterFallInsertion.persist(WaterFallInsertion.java:137)
at glog.util.persistence.WaterFallInsertion.persist(WaterFallInsertion.java:49)
at glog.util.persistence.PersistenceManager.execute(PersistenceManager.java:122)
at glog.util.genericcontainer.GenericContainerUtilSessionBean.store(GenericContainerUtilSessionBean.java:37)
at glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper.store(GenericContainerUtilSessionServerSideEJBWrapper.java:46)
at glog.util.genericcontainer.GenericContainerUtilSessionBean.compareAndStore(GenericContainerUtilSessionBean.java:123)
at glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper.compareAndStore(GenericContainerUtilSessionServerSideEJBWrapper.java:268)
at glog.util.genericcontainer.GenericContainerUtilSessionServerSideEJBWrapper_6hrtm7_EOImpl.compareAndStore(GenericContainerUtilSessionServerSideEJBWrapper_6hrtm7_EOImpl.java:718)
at glog.webserver.update.AbstractUpdate.callGenericContainer(AbstractUpdate.java:359)
at glog.webserver.update.GenericContainerXMLUpdate.process(GenericContainerXMLUpdate.java:108)
at glog.server.xmlupdate.XMLUpdateSessionBean.updateAndTrack(XMLUpdateSessionBean.java:244)
at glog.server.xmlupdate.XMLUpdateSessionServerSideEJBWrapper.updateAndTrack(XMLUpdateSessionServerSideEJBWrapper.java:344)
at glog.server.xmlupdate.XMLUpdateSessionHome_x72wrp_EOImpl.updateAndTrack(XMLUpdateSessionHome_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:232)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
Setup:

Created agent:WORK_INVOICE_AGENT_RESENT
Agent type: WORK INVOICE
Agent Event: Blank
Agent Action: SEND INTEGRATION: HTTPPOST, DOLLY, false, sending again!, false

To Replicate:

1. Log into OTM.
2. Go to Configuration and Administration --> User Configuration --> Actions Manager.
3. Enter the following:
Action: TEST_WORK_INVOICE
Label: Test Work Invoice
Action Definition ID: RUN_AGENT_WORK_INVOICE.
Agent ID: WORK_INVOICE_AGENT_RESENT
4. Click Finished.
5. Note the Error:

java.lang.NullPointerException

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