Topic
10 replies Latest Post - ‏2013-07-01T04:59:29Z by KhushbuSinghal
KhushbuSinghal
KhushbuSinghal
8 Posts
ACCEPTED ANSWER

Pinned topic Error failed dispatching QeueItem

‏2012-07-12T06:04:20Z |
Hi All,

We are working in 4.5 CE environment.I have added a subscription for a class on Update Event. I have coded EventAction. This EventAction is simple in onEvent function there is only one sop. I am gettig this error every-time we are updating a property.

INFO Method parameter 0 type is: com.filenet.api.events.ObjectChangeEvent
2012-07-12T05:49:39.618Z 375B375B EVNT FNRCE0000I - INFO Method parameter 1 type is: com.filenet.api.util.Id
2012-07-12T05:49:39.618Z 375B375B EVNT FNRCE0000I - INFO Method: onEvent is found from class: com.ibm.tfl.actionHandler.EventHandler
2012-07-12T05:49:39.618Z 375B375B ASYN FNRCE0323E - ERROR Failed dispatching QueueItem row {96A90D02-B67E-41FA-8834-7DD1D39B6B39}
com.filenet.api.exception.EngineRuntimeException: EVENT_HANDLER_THREW: The Event handler threw an exception.
at com.filenet.engine.queueitem.SubscriptionProcessor.executeHandler(SubscriptionProcessor.java:1054)
at com.filenet.engine.queueitem.SubscriptionProcessor.execute(SubscriptionProcessor.java:839)
at com.filenet.engine.queueitem.EventQueueItemHandler.execute(EventQueueItemHandler.java:89)
at com.filenet.engine.queueitem.EventQueueItemHandler$1.run(EventQueueItemHandler.java:55)
at com.filenet.engine.context.CallState.doAs(CallState.java:235)
at com.filenet.engine.context.CallState.doAs(CallState.java:152)
at com.filenet.engine.queueitem.EventQueueItemHandler.executeAs(EventQueueItemHandler.java:46)
at com.filenet.engine.queueitem.QueueItemExecutor.loadAndExecuteQueuedRow(QueueItemExecutor.java:175)
at com.filenet.engine.queueitem.QueueExecutor.dispatchQueuedRow(QueueExecutor.java:356)
at com.filenet.engine.queueitem.QueueExecutor.dispatchEvent(QueueExecutor.java:197)
at com.filenet.engine.queueitem.QueueExecutor.execute(QueueExecutor.java:129)
at com.filenet.engine.tasks.BackgroundTask.safeExecute(BackgroundTask.java:187)
at com.filenet.engine.tasks.BackgroundTask.access$000(BackgroundTask.java:41)
at com.filenet.engine.tasks.BackgroundTask$BackgroundTaskPriviledgedExceptionAction.run(BackgroundTask.java:675)
at com.filenet.engine.context.CallState.doAsSystem(CallState.java:391)
at com.filenet.engine.tasks.BackgroundTask.run(BackgroundTask.java:143)
at com.filenet.engine.jca.workmgr.ThreadPool$WorkerThread.run(ThreadPool.java:85)
Caused by:
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.filenet.engine.queueitem.SubscriptionProcessor.executeHandler(SubscriptionProcessor.java:1035)
... 16 more

Please help us to resolve this.
  • santoshb001
    santoshb001
    7 Posts
    ACCEPTED ANSWER

    Re: Error failed dispatching QeueItem

    ‏2013-06-25T14:56:07Z  in response to KhushbuSinghal

    Hi,

    I got the same error. Please anybody help me to solve this.

    Thanks in advance...

  • santoshb001
    santoshb001
    7 Posts
    ACCEPTED ANSWER

    Re: Error failed dispatching QeueItem

    ‏2013-06-25T15:08:11Z  in response to KhushbuSinghal

    KhushbuSinghal : Hi, Have you resolved your issue?

    Please help me.

    • KhushbuSinghal
      KhushbuSinghal
      8 Posts
      ACCEPTED ANSWER

      Re: Error failed dispatching QeueItem

      ‏2013-06-26T04:50:50Z  in response to santoshb001

      Yes. The class file which i was using for code module was having some problem. I created the class file again and it worked.

      • santoshb001
        santoshb001
        7 Posts
        ACCEPTED ANSWER

        Re: Error failed dispatching QeueItem

        ‏2013-06-26T06:05:33Z  in response to KhushbuSinghal

        Hi,

        I could not resolve it. Could you please tell me in detail?

        Where the argument type mismatch error came in the code? If you don't mind please attach your source file.

        Please help me.

        Thanks in advance..

  • santoshb001
    santoshb001
    7 Posts
    ACCEPTED ANSWER

    Re: Error failed dispatching QeueItem

    ‏2013-06-27T13:13:42Z  in response to KhushbuSinghal

    Hi,

    Please help me.

    Thanks in advance..

  • santoshb001
    santoshb001
    7 Posts
    ACCEPTED ANSWER

    Re: Error failed dispatching QeueItem

    ‏2013-06-28T04:29:25Z  in response to KhushbuSinghal

    Please find my simple event action handler code that I'm using in subscription.

    Please help me.
    ------------------------------------------------
    package com.ibm.tfl.actionHandler;
    import com.filenet.api.engine.EventActionHandler;
    import com.filenet.api.events.ObjectChangeEvent;
    import com.filenet.api.exception.EngineRuntimeException;
    import com.filenet.api.util.Id;

    public class EventHandler implements EventActionHandler
    {
    public void onEvent(ObjectChangeEvent event,Id subId) throws EngineRuntimeException
    {
    System.out.println("I was called!!!");
    }
    }
    -----------------------------------------------

    Please help me.
    Thanks in advance..

    • KhushbuSinghal
      KhushbuSinghal
      8 Posts
      ACCEPTED ANSWER

      Re: Error failed dispatching QeueItem

      ‏2013-06-28T05:35:10Z  in response to santoshb001

      Mine code was also same but i was getting error coz i haven't configured code module correctly. Can you elaborate how you have configured the code module.

  • santoshb001
    santoshb001
    7 Posts
    ACCEPTED ANSWER

    Re: Error failed dispatching QeueItem

    ‏2013-06-28T13:59:58Z  in response to KhushbuSinghal

    Hi,

    Thank you for your reply.

    Please find the steps I've followed to configure Code Module.

    1. In the create event action window:

    Given the complete class name of the Event Handler class i.e,

    • Event Action Handler Java Class Name : com.ibm.tfl.actionHandler.EventHandler
    • Configure Code Module : check

    2.Next in the configure code module window:

    • Code Module Title : SimpleCM
    • Content Elements : EventHandler.class

                                                      jace.jar

    Finished.

    Please tell me is there any supporting libraries or classpath variables missing.

    Please tell me how you resolve your problem in detail.

    Please help me.

    Thank you..

     

  • santoshb001
    santoshb001
    7 Posts
    ACCEPTED ANSWER

    Re: Error failed dispatching QeueItem

    ‏2013-06-30T06:31:51Z  in response to KhushbuSinghal

    Hi,

    Thank you for your help.

    I've solved my problem. The error came b'coz of including jace.jar file in Code Module.

    Thank You ..

    • KhushbuSinghal
      KhushbuSinghal
      8 Posts
      ACCEPTED ANSWER

      Re: Error failed dispatching QeueItem

      ‏2013-07-01T04:59:29Z  in response to santoshb001

      ok Good. Even in my case as well .class file was having issue I resolved that and my module start working.