Hello All,
Getting following error while running job.
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.ClassCastException: com.tw.documentum.job.twWorkOrderUnPublish incompatible with com.documentum.fc.client.IDfModule com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown Source) com.documentum.mthdservlet.DoMethod.doPost(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA_CP logs.
I created class as follows.
import java.io.PrintWriter;
import java.util.Map;
import com.documentum.fc.methodserver.IDfMethod;
public class twWorkOrderUnPublish implements IDfMethod
{
public int execute(Map arg0, PrintWriter arg1) throws Exception {
// TODO Auto-generated method stub
System.out.println("============= Running SAMPLE Custom method ================= ");
return 0;
}
-->
1. Created JAR and Jar defination
2. Created Module , pointed Jar defination.
3 Created Method , adding command as Module.
4. Created JOB , pass standard argument and provide Method refernce.
Got installed, After running getting above error.
What wrong am I doing ?