Hi,
I have created a custom workflow method for one of my process requirement and it throws an error. Need help in resolving the issue or pointers on how to get into the root cause.
The method is created to achieve the following functionality.
1. Copy a package content to another package
2. Rename the content
3. Link the content of the package to a folder
The method takes 3 arguments of type string
1. r_object_id of src package
2. folder path where the package content to be linked
3. file name
The return type is string and represents r_object_id of the content copied.
The method throws following error while executing.
java.lang.RuntimeException: Invalid arguments passed while invoking method 'copyPDFTemplate from interface 'class com.****.yyy.workflow.bof.CopyPDFTemplateImpl' from BOF module 'com.****.yyy.workflow.bof.CopyPDFTemplate' in Process Template: 'outside_employment_wf' - Activity: 'Copy PDF Template'.
Workitem: '4a0003e9800050a1'
Workflow: 'Outside Employment - E425295' - '4d0003e9800025fa'
Activity: 'Copy PDF Template' - '4c0003e980029205'
Process: 'outside_employment_wf' - '4b0003e98000a6b4'
java.lang.Exception: java.lang.RuntimeException: Invalid arguments passed while invoking method 'copyPDFTemplate from interface 'class com.****.yyy.workflow.bof.CopyPDFTemplateImpl' from BOF module 'com.****.yyy.workflow.bof.CopyPDFTemplate'
at com.documentum.bps.outbound.AbstractService.execute(AbstractService.java:98)
at com.documentum.bpm.services.BPSIntegrationFramework.executeService(BPSIntegrationFramework.java:252)
at com.documentum.bpm.services.BPSIntegrationFramework.executeMethod(BPSIntegrationFramework.java:84)
at com.documentum.bpm.services.BPSIntegrationMethod.executeMethod(BPSIntegrationMethod.java:26)
at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:124)
at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:65)
at com.documentum.mthdservlet.DfMethodRunner.runIt(Unknown Source)
at com.documentum.mthdservlet.AMethodRunner.runAndReturnStatus(Unknown Source)
at com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown Source)
at com.documentum.mthdservlet.DoMethod.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Invalid arguments passed while invoking method 'copyPDFTemplate from interface 'class com.****.yyy.workflow.bof.CopyPDFTemplateImpl' from BOF module 'com.****.yyy.workflow.bof.CopyPDFTemplate'
at com.documentum.bps.outbound.bof.runtime.BOFClient.invokeMethod(BOFClient.java:111)
at com.documentum.bps.outbound.bof.runtime.BofModuleService.executeServiceOperation(BofModuleService.java:117)
at com.documentum.bps.outbound.AbstractService.executeServiceInternal(AbstractService.java:122)
at com.documentum.bps.outbound.AbstractService.execute(AbstractService.java:79)
... 31 more
Caused by: java.lang.IllegalArgumentException: java.lang.ClassCastException@1e4b421b
at sun.reflect.GeneratedMethodAccessor331.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.documentum.bps.outbound.bof.runtime.BOFClient.invokeMethod(BOFClient.java:108)
... 34 more
Thanks in advance.
Dhiman