BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only

ECM event and REST API generates null pointer exception

  • 1.  ECM event and REST API generates null pointer exception

    Posted Thu March 17, 2022 10:44 AM

    Hi All, 

    When an ECM event arrives to BAW, we get null pointer exception.
    And we get the same null pointer exception when we use the REST API Tester with the very same parameters.

    REST Call by FileNet: 
    https://<BAW server>:9443/rest/bpm/wle/v1/event/ecm?eventSourceId=%7BE31EB980-0271-485C-ABF5-FE7494598AED%7D&objectTypeId=cmis%3Adocument&eventType=Created&objectId=idd_60B9917F-0000-C51A-AA2C-9013BA2B0312

    REST call by hand using REST API Tester:


    The IDs are all correct, we checked them.

    So, it seems that there is a problem with the REST API - or some of the parameters?

    Sysout.log excerpt:

    [2022.03.16. 9:23:13:391 CET] 0000022b RestHelper W java.lang.NullPointerException
    com.lombardisoftware.core.TeamWorksRuntimeException: java.lang.NullPointerException
    at com.lombardisoftware.core.TeamWorksRuntimeException.asTeamWorksRuntimeException(TeamWorksRuntimeException.java:88)
    at com.ibm.bpm.integration.runtime.IntegrationUtils.getECMConnectionFromEventSourceId(IntegrationUtils.java:163)
    at com.ibm.bpm.integration.runtime.ECMIntegrationInboundServices.getParentTypeIds(ECMIntegrationInboundServices.java:454)
    at com.ibm.bpm.integration.runtime.ECMIntegrationInboundServices.sendEvent(ECMIntegrationInboundServices.java:214)
    at com.ibm.bpm.rest.impl.event.ECMEventResource.sendEvent(ECMEventResource.java:126)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)


    Any ideas please? What's wrong? How to fix it?
    We use BAW version 19.x.

    Thx,



    ------------------------------
    Laszlo
    ------------------------------