ways to get file listeners status from activity
Getting the below error when running data page D_pzListeners
|
Tried running activity called in data page directly to see if its all fine individually but that is also giving error as copied below
java.lang.NullPointerException |
at com.pegarules.generated.activity.sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.step1_circum0(sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.java:182) |
at com.pegarules.generated.activity.sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.perform(sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.java:77) |
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) |
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2202) |
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2185) |
Getting the below error when running data page D_pzListeners
|
Tried running activity called in data page directly to see if its all fine individually but that is also giving error as copied below
java.lang.NullPointerException |
at com.pegarules.generated.activity.sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.step1_circum0(sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.java:182) |
at com.pegarules.generated.activity.sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.perform(sh_action_pzlistenersinfo_c85ec269632199bdf12a63e0ce7bb253.java:77) |
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) |
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2202) |
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2185) |
Tried writing my own java step as copied below
ListenersData=com.pega.pegarules.priv.management.MBeanManagement.executeMBeanOperation("com.pega.pegarules.management.internal.ListenerManagement", "ListenerStatus", "", "", "").toString(); try{ myStepPage.getPage("ResponseData").adoptXMLForm( ListenersData); } catch (Exception e) {}
adopxmlForm is getting only one page from availablelisteners while I have more than 1 listener info in it.
If anyone tried same thing or knows solution, please help
as there is no DXAPI OOTB which can get me listeners data like status / start or stop listeners, trying out custom ways to build own API