BPM-0704: An error occurred while executing custom script: java.lang.ClassCastException

Document ID : KB000031092
Last Modified Date : 14/02/2018
Show Technical Document Details


Gel script processes fail when comments are outside the Gel Script. These same processes worked in 13.3 but not 14.1.   

Steps to Reproduce:

  1. Log into the PPM application and create a process
  2. Choose the project Object as the Primary Object  
  3. Choose 'On Demand' as start option  
  4. In the Start Step add the sample GEL script into the Actions area 
  5. Add the Finish Step
  6. Validate all and activate
  7. From home side go to Projects
  8. Choose a project to test the process from
  9. Add the process to the project from the Process tab under available drop down
  10. Run the process             

Expected Result:  Process completes successfully

Actual Result:  Process does not complete and error can be seen the the log

BPM-0704: An error occurred while executing custom script:java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl 

java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl cannot be cast to org.w3c.dom.Element
at com.niku.union.gel.GELValidator.limitSQLQuery(GELValidator.java:379)
at com.niku.union.gel.GELScript.run(GELScript.java:55)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)             




Remove the comments or place them inside the <gel:script> tag section. 


Resolved in CA PPM 14.2 Generic Patch. Referenced TEC1398937   
File Attachments: