Clarity

  • 1.  BPM-0545: An error occurred when executing custom action

    Posted Mar 16, 2016 05:12 AM

    Hi,

     

    While running a custom script, getting the following error

     

    An error occurred when initiating a process instance using process version ID

    [Ljava.util.SortedMap;@478971aa:java.lang.NumberFormatException: For input

    string: "[Ljava.util.SortedMap;@478971aa" at

    java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at

    java.lang.Long.parseLong(Long.java:441) at

    java.lang.Long.<init>(Long.java:702) at

    com.niku.bpm.gel.tags.StartProcessTag.doTag(StartProcessTag.java:96) at

    org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at

    org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at

    org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at

    com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20) at

    org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at

    com.niku.union.gel.GELScript.run(GELScript.java:48) at

    com.niku.union.gel.GELController.invoke(GELController.java:74) at

    com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207) at

    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    at

    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:724)

     

    Any help appreciated.

    Thanks in Advance.

    -Avinash



  • 2.  Re: BPM-0545: An error occurred when executing custom action

    Posted Mar 16, 2016 05:26 AM

    Hi Avinash,

    The custom script for which you are getting the error, is that doing any XOG related activity, by any chance?

    Thanks,

    Abhisek Dhar



  • 3.  Re: BPM-0545: An error occurred when executing custom action

    Posted Mar 16, 2016 05:34 AM

    Hi Abhisek,

     

    The custom script is taking the input from a query and on the basis of the output its performing certain actions.

     

    Thanks

    Avinash



  • 4.  Re: BPM-0545: An error occurred when executing custom action

    Posted Mar 16, 2016 07:20 AM

    Hi Avinash,

     

    If the custom gel script is generating error messages within a process, you can go to that process instance and check the message logs for further clarification on the errors. Alternatively, you can share the details of the step here that is generating the errors within the process.

     

    Suhail.



  • 5.  Re: BPM-0545: An error occurred when executing custom action

    Posted Mar 16, 2016 05:34 AM

    Hi Avinash,

     

    Let me add up this one as well:

    If that customer script is doing something with the XOG, then probably you should have a look at this below technical document:

    Document ID: TEC1932337

    URL: http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1932337.aspx

     

    There was a defect (CLRT-77088) related to the XOG client, which is now supposed to be resolved in CA PPM 14.3 release.

    Let me know if this helps.

     

    Cheers,

    Abhisek Dhar



  • 6.  Re: BPM-0545: An error occurred when executing custom action

    Posted Mar 16, 2016 05:47 AM

    @Abhisek - surely if a process is running under the process-engine it is not using the local XOG-client (as in that TEC article)

     

    @Avinash - you probably need to understand exactly what/where things are falling over in your script, that error as it is tells us very little (beyond there is a number-format error some where) I think. You should look at your query and then how you are handling the returned variables in the script - is there potential for some mis-match in data-types.



  • 7.  Re: BPM-0545: An error occurred when executing custom action

    Posted Mar 16, 2016 09:52 AM

    The error is occurring in a line of your GEL script where you are trying to start/invoke another process using the <bpm:startProcess> internal tag/library.

     

    Specifically, the parameter for the process version ID you are trying to start is expecting a numeric value but instead received the address of a map object (probably the recordset/row where those values are being fetched from).

     

    Please review the following thread and compare it to your own GEL code:

     

    CA PPM Tuesday Tip:  How To Launch a Process from a Gel Script