Dear Team,
I am getting null pointer exception for eventRegistry & InboundChannelModel in custom class created for triggering Inbound Channel/ Event.
Please confirm if I need to add any dependency or add some configuration to enable custom events as Java class implementation like we need to add for Kafka/RabbitMQ implementation. As far as I know its not required however please confirm.
logs:
2022-03-22 12:25:15.879 INFO 10364 — [io-29000-exec-2] c.a.a.w.service.InboundChannelService : jsonInputString —>>>>>>>>>>>>> {“eventName”:“receiveAECBConsent”,“variables”:[{“key”:“applicationReference”,“value”:“APP_11100002”},{“key”:“consentType”,“value”:“AECB”},{“key”:“isAccepted”,“value”:“true”},{“key”:“consentDate”,“value”:“21-03-2022”}]}
2022-03-22 12:25:15.880 INFO 10364 — [io-29000-exec-2] c.a.a.w.service.InboundChannelService : inbound Channel —>>>>>>>>>>>>> null
2022-03-22 12:25:15.880 INFO 10364 — [io-29000-exec-2] c.a.a.w.service.InboundChannelService : eventRegistry —>>>>>>>>>>>>> null
2022-03-22 12:25:15.904 ERROR 10364 — [io-29000-exec-2] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [/work] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException: null
at .InboundChannelService.handleInboundEvent(InboundChannelService.java:38) ~[classes/:na]
at .ReceiveEventController.handleReceiveEvent(ReceiveEventController.java:31) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
Below is body of REST API which is been converted as string in the adapter class to pass it to the BPMN channel/ event and same is been printed in the logs shared above:
{
“eventName”: “receiveAECBConsent”,
“variables”: [
{
“key”: “applicationReference”,
“value”: “APP_11100002”
},
{
“key”: “consentType”,
“value”: “AECB”
},
{
“key”: “isAccepted”,
“value”: “true”
},
{
“key”: “consentDate”,
“value”: “21-03-2022”
}
]
}
Please let me know if you need more information.
Also in application logs at boot up of application I see there is no event definition detected by the application.
======= flowable - license =======
2022-03-22 12:24:27.508 INFO 10364 — [ main] s.ServiceRegistryEngineAutoConfiguration : No deployment resources were found for autodeployment
2022-03-22 12:24:27.538 INFO 10364 — [ main] c.f.s.b.e.EventRegistryAutoConfiguration : No deployment resources were found for autodeployment