The CreatorCon Call for Content is officially open! Get started here.

Events Stay Queued

Ken83
Mega Guru

Hello Community,

        I'm having a problem with my events getting queued but then they just sit there, and never get processed. Here is more about my configuration...

I have a script include that is triggering an event I made(test.error.event set to use the error_handling queue) and passing along an error object with information about the error. When that event gets triggered, I have a Script Action associated with that event that will create a new incident(from a template) with all of the error information in it. That's the whole process that I am expecting to happen each time the event gets triggered.

What is currently happening, is the incident is not being created. I checked the event logs and noticed my custom events are in there with this state...

find_real_file.png

I was reading this article → How to create additional event processors? â†� and this article → Example of events stacked that send the same message   â†� to better understand the lifecycle of the events that get generated. So I created a new event processor(scheduled job that runs every 30 seconds and runs the GlideEventManager('error_handling').process() method) and when I saved this processor to the system, the events in the event log, changed from a state of Ready to the state depicted above. So it appears the method queued the events but has not actually processed them and I cannot figure out why or how to process them? Any suggestions?

1 ACCEPTED SOLUTION

I believe the answer to the problem is in your ternary operators (condition ? expr1 : expr2). There may need to be additional parenthesis added.   my hunch is to focus on the populateDescription function with the way you are concatenating text together with ternary operations within.



for testing, try commenting out the line: incident.description = populateDescription(obj);



in any case, I think you will need to break some of the ternary operations up or add additional parentheses.


View solution in original post

8 REPLIES 8

Chuck Tomasi
Tera Patron

Hi Kenneth,



Just checking all bases...


  • What happens when you just queue the event without a custom event processor?
  • Did you double check to ensure your event is in the registry?

  • What happens when you just queue the event without a custom event processor?
    • It broke my environment, had to open an HI ticket. They told me that there was a problem with my script action so it was disabled and the system functionality came back to normal, less my custom events. So, semantically, the code in the script action is fine. I can run it, because it was running fine before, but I noticed after doing some debugging, after my custom event fires, the event logs show a scheduler.job.error with this content as parm1 → java.lang.VerifyError : (class: org/mozilla/javascript/gen/c3044, method: call signature (Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptable;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Object;) Inconsistent stack height 1 != 0
  • Did you double check to ensure your event is in the registry?
    • Yes I made sure the event is in the registry. That's where I set the queue to the error_handling queue.

Thanks for the update Kenneth. I don't have any new information for you now, but I'll post it here if I come across anything. In the mean time, I hope one of the other community people can assist.


can you post your script action code, and the contents of the parm1 and parm2 columns for one of those that failed to complete?



if the status shows "queued...", that means it was definitely picked up to process, but something happens in the script action I presume that is causing it to hang, since it can't even get back to update the status to error.