Topic
3 replies Latest Post - ‏2013-05-06T13:21:27Z by vradhik
SystemAdmin
SystemAdmin
938 Posts
ACCEPTED ANSWER

Pinned topic isAccessTokenEnabled: while executing Event Manager for Create Suspects

‏2010-02-23T09:23:43Z |
Hi,

While doing execution of Eventmanager, everything goes fine but on console I get null pointer exception saying

java.lang.NullPointerException
at com.dwl.base.db.AccessTokenEnabledSQL.isAccessTokenEnabled(AccessTokenEnabledSQL.java:163)

On IBM website I found that similar error can be fixed by applying MDM Fix for 8.0.1.6 fix pack. I copied this fixpack's jar to MDM workspace/MDM folder (where are MDM jars like base.jar resids).

but even after doing a complete build and deploy this error remain unchanged and I am not able to fix this issue.

can somebody give more input. Please let me know if more information is required.
Regards,
Amit
Following is more trace of exception:-- (like Personnames I get error for partybasic and few other read)
2/23/10 12:17:36:763 IST 00000028 SystemOut O ERROR - 1 READERR 2190 Read of the following component failed: PersonNames
java.lang.NullPointerException
at com.dwl.base.db.AccessTokenEnabledSQL.isAccessTokenEnabled(AccessTokenEnabledSQL.java:163) at com.dwl.bobj.query.GenericBObjQuery.getResults(GenericBObjQuery.java:205) at com.dwl.tcrm.coreParty.component.TCRMPersonNameComponent.getAllPersonNames(TCRMPersonNameComponent.java:302) at com.dwl.tcrm.coreParty.component.TCRMPartyComponent.getAllPersonNames(TCRMPartyComponent.java:680) at com.dwl.tcrm.coreParty.component.TCRMPersonComponent.getPerson(TCRMPersonComponent.java:310) at com.dwl.tcrm.coreParty.component.TCRMPartyComponent.getPerson(TCRMPartyComponent.java:2719) at com.dwl.tcrm.coreParty.component.TCRMPartyComponent.getParty(TCRMPartyComponent.java:1512) at com.dwl.tcrm.coreParty.component.TCRMSuspectComponent.createSuspects(TCRMSuspectComponent.java:407) at com.dwl.tcrm.coreParty.controller.TCRMCorePartyTxnBean.createSuspects(TCRMCorePartyTxnBean.java:6546) at com.dwl.tcrm.coreParty.controller.EJSLocalStatelessTCRMCorePartyTxn_8d87cf59.createSuspects(EJSLocalStatelessTCRMCorePartyTxn_8d87cf59.java:1241) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at com.dwl.base.requestHandler.DWLTxnBP.processPersistentObject(DWLTxnBP.java:348) at com.dwl.base.requestHandler.DWLTxnBP.execute(DWLTxnBP.java:120) at com.dwl.base.requestHandler.DWLTxnProcessor.processTx(DWLTxnProcessor.java:118) at com.dwl.unifi.tx.manager.CTxRxFacade.processTxNormal(CTxRxFacade.java:763) at com.dwl.unifi.tx.manager.CTxRxFacade.processTx(CTxRxFacade.java:560) at com.dwl.base.requestHandler.DWLRequestHandler.processTransaction(DWLRequestHandler.java:812) at com.dwl.base.requestHandler.DWLRequestHandler.processTx(DWLRequestHandler.java:464) at com.dwl.base.requestHandler.DWLServiceControllerBase.processRequest(DWLServiceControllerBase.java:192) at com.dwl.base.requestHandler.beans.DWLServiceControllerBean.processRequest(DWLServiceControllerBean.java:136) at com.dwl.base.requestHandler.beans.EJSLocalStatelessDWLServiceController_2ecdcec0.processRequest(EJSLocalStatelessDWLServiceController_2ecdcec0.java:30) at com.dwl.commoncomponents.eventmanager.tcrm.EvergreenRule.executeRules(EvergreenRule.java:167) at com.dwl.commoncomponents.eventmanager.test.BaseRule.execute(BaseRule.java:85) at com.dwl.base.externalrule.ExternalRuleComponent.executeJavaImpl(ExternalRuleComponent.java:163) at com.dwl.base.externalrule.ExternalRuleComponent.executeRule(ExternalRuleComponent.java:226) at com.dwl.commoncomponents.eventmanager.EventDetector.executeOneRule(EventDetector.java:317) at com.dwl.commoncomponents.eventmanager.EventDetector.detectEvents(EventDetector.java:143) at com.dwl.commoncomponents.eventmanager.ejb.EventDetectorHelperBean.handleSingleTask(EventDetectorHelperBean.java:718) at com.dwl.commoncomponents.eventmanager.ejb.EventDetectorHelperBean.process(EventDetectorHelperBean.java:263) at com.dwl.commoncomponents.eventmanager.ejb.EJSLocalStatelessEventDetectorHelper_298b66ed.process(EJSLocalStatelessEventDetectorHelper_298b66ed.java:29) at com.dwl.commoncomponents.eventmanager.ejb.EventDetectorMDB.onMessage(EventDetectorMDB.java:126) at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1014) at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747) at $Proxy1.onMessage(Unknown Source) at com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(JmsJcaEndpointInvokerImpl.java:201) at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:768) at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:584) at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
2/23/10 12:17:36:763 IST 00000028 SystemOut O INFO - DWLTxnBP : processPersistentObject : total time in milliseconds 13360
2/23/10 12:17:36:763 IST 00000028 SystemOut O INFO - DWLTxnBP : execute : total time in milliseconds 13360
2/23/10 12:17:36:763 IST 00000028 SystemOut O INFO - DWLTxnProcessor get Response Object : DWL Status = 9
Updated on 2013-04-02T15:48:08Z at 2013-04-02T15:48:08Z by David_Radley
  • vradhik
    vradhik
    4 Posts
    ACCEPTED ANSWER

    Re: isAccessTokenEnabled: while executing Event Manager for Create Suspects

    ‏2013-04-02T14:51:17Z  in response to SystemAdmin
    Hi

    Did you find a solution to the problem? I am facing a similar one and I am on v9.0.2. I am running the tx as a RMI request for getPerson. Appreciate any pointers to fix this error.

    4/2/13 12:18:26:547 IST 00000058 SystemOut O ERROR - java.lang.NullPointerException
    4/2/13 12:18:26:563 IST 00000058 SystemOut O ERROR - 1 READERR 2190 Read of the following component failed: PersonNames
    java.lang.NullPointerException
    at com.dwl.tcrm.coreParty.component.TCRMPersonNameComponent.getAllPersonNames(TCRMPersonNameComponent.java:356) at com.dwl.tcrm.coreParty.component.TCRMPartyComponent.getAllPersonNames(TCRMPartyComponent.java:707) at com.dwl.tcrm.coreParty.component.TCRMPersonComponent.getPerson(TCRMPersonComponent.java:498) at com.dwl.tcrm.coreParty.component.TCRMPartyComponent.getPerson(TCRMPartyComponent.java:2771) at com.dwl.tcrm.coreParty.controller.TCRMCorePartyFinder.handleGetParty(TCRMCorePartyFinder.java:3461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at com.dwl.base.DWLCommonComponent.processTransactionObject(DWLCommonComponent.java:3078) at com.dwl.base.DWLCommonComponent.executeTargetMethod(DWLCommonComponent.java:2806) at com.dwl.base.DWLCommonComponent.executeTx(DWLCommonComponent.java:2193) at com.dwl.tcrm.coreParty.controller.TCRMCorePartyFinder.getParty(TCRMCorePartyFinder.java:3425) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at com.dwl.base.requestHandler.DWLTxnBP.processInquiryObject(DWLTxnBP.java:541) at com.dwl.base.requestHandler.DWLTxnBP.execute(DWLTxnBP.java:120) at com.dwl.base.requestHandler.DWLTxnProcessor.processTx(DWLTxnProcessor.java:129) at com.dwl.unifi.tx.manager.CTxRxFacade.processTxNormal(CTxRxFacade.java:769) at com.dwl.unifi.tx.manager.CTxRxFacade.processTx(CTxRxFacade.java:577) at com.dwl.base.requestHandler.DWLRequestHandler.processTransaction(DWLRequestHandler.java:936) at com.dwl.base.requestHandler.DWLRequestHandler.processTx(DWLRequestHandler.java:498) at com.dwl.base.requestHandler.DWLServiceControllerBase.processRequest(DWLServiceControllerBase.java:240) at com.dwl.base.requestHandler.beans.DWLServiceControllerBean.processRequest(DWLServiceControllerBean.java:134) at com.dwl.base.requestHandler.beans.EJSRemoteStatelessDWLServiceController_2ecdcec0.processRequest(EJSRemoteStatelessDWLServiceController_2ecdcec0.java:29) at com.dwl.base.requestHandler.beans._EJSRemoteStatelessDWLServiceController_2ecdcec0_Tie.processRequest(_EJSRemoteStatelessDWLServiceController_2ecdcec0_Tie.java:165) at com.dwl.base.requestHandler.beans._EJSRemoteStatelessDWLServiceController_2ecdcec0_Tie._invoke(_EJSRemoteStatelessDWLServiceController_2ecdcec0_Tie.java:106) at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:585) at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:461) at com.ibm.rmi.iiop.ORB.process(ORB.java:533) at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574) at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2915) at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2782) at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65) at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1646)
  • David_Radley
    David_Radley
    22 Posts
    ACCEPTED ANSWER

    Re: isAccessTokenEnabled: while executing Event Manager for Create Suspects

    ‏2013-04-02T15:48:08Z  in response to SystemAdmin
    Hello,
    It looks like the problem in the second postis different to the first post. The first issue seems to be around events and security. The second post indicates itcannot find PersonNames. I wonder whether:
    • the IVT ran successfully.
    • can you issue a getPerson successfully?
    • do any PersonNames exist. Look in the database table PersonNames.

    I have just tried itat v10.1 and the following request works:
    "
    <TCRMService xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="myTCRM.xsd">
    <RequestControl>
    <requestID>1</requestID>
    <DWLControl>
    <requesterName>cusadmin</requesterName>
    <requesterLanguage>100</requesterLanguage>
    </DWLControl>
    </RequestControl>
    <TCRMInquiry>
    <InquiryType>getAllPersonNames</InquiryType>
    <InquiryParam>
    <tcrmParam name="PartyId">911111111</tcrmParam>
    <tcrmParam name="Filter">ALL</tcrmParam>
    </InquiryParam>
    </TCRMInquiry>
    </TCRMService>
    "
    I hope this helps,
    regards David.
    • vradhik
      vradhik
      4 Posts
      ACCEPTED ANSWER

      Re: isAccessTokenEnabled: while executing Event Manager for Create Suspects

      ‏2013-05-06T13:21:27Z  in response to David_Radley

      Thanks for your reply.. Yes, I agree it is a different issue. The IVT went through fine. The issue was occurring due to some wrong settings, was referring to an old CustomerResources and not to the one used by the project which had additions and extensions.