|
405 HTTP error was returned when invoking IAWS |
|
|
|
Written by James Azarja
|
|
Friday, 27 February 2009 15:21 |
|
Question: 405 HTTP (Method not Allowed) was returned from IAWS web service when trying to call web service method.
Answer:
Make sure your IIS was configured properly, check for .WSDL file handler it should mapped to "C:\PROGRA~1\COMMON~1\MSSoap\Binaries\SOAPIS30.dll"
The steps are:
- Open IIS Administration Console
- Open IAWS (Application) Properties
- Click Configuration Button
- On Application Extensions, click Add
- Add .wsdl extension and put "C:\PROGRA~1\COMMON~1\MSSoap\Binaries\SOAPIS30.dll" has its handler.


|
|
|
Adjust Java Method Server Memory |
|
|
|
Written by James Azarja
|
|
Wednesday, 18 February 2009 15:09 |
|
Question: An exception was throwed when JMS trying to invoke a web service:
java.lang.RuntimeException: Response Fault: Exception during processing: java.lang.OutOfMemoryError (see Fault Detail for stacktrace) at com.documentum.bps.webservice.outbound.runtime.WebServiceClient.convertSOAPMessageToWSResponse(WebServiceClient.java:562) at com.documentum.bps.webservice.outbound.runtime.WebServiceClient.invoke(WebServiceClient.java:338) at com.documentum.bps.webservice.outbound.runtime.WebService.execute(WebService.java:214) at com.documentum. BPM.services.BPSIntegrationFramework.executeService(BPSIntegrationFramework.java:239) at com.documentum.bpm.services.BPSIntegrationFramework.executeMethod(BPSIntegrationFramework.java:76) at com.documentum.bpm.services.BPSIntegrationMethod.executeMethod(BPSIntegrationMethod.java:30) at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:125) at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:278) at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:63) 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:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 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:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)
|
|
Cleaning BEA Weblogic Cache |
|
|
|
Written by Administrator
|
|
Friday, 13 February 2009 22:07 |
|
Question: How to clean BEA Weblogic cache ?
Answer:
Delete the content of C:\bea\user_projects\domains\<your domain>\servers\<your server name>\tmp
Example path is C:\bea\user_projects\domains\base_domain\servers\AdminServer\tmp
|
|
Dynamic Web Service -Date To String Function Error |
|
|
|
Written by James Azarja
|
|
Friday, 06 February 2009 19:48 |
|
Question: When try to call webservice using Dynamic Web Service activity, I got the following error:
java.lang.IllegalArgumentException at com.documentum.bps.functions.DateToStringFunction.execute(DateToStringFunction.java:33) at com.documentum.bps.FunctionExecutor.executeFunction(FunctionExecutor.java:22) at com.documentum.bps.webservice.outbound.runtime.WebService.evaluateFunction(WebService.java:399) at com.documentum.bps.webservice.outbound.runtime.WebService.createInputMessage(WebService.java:311) at com.documentum.bps.webservice.outbound.runtime.WebService.execute(WebService.java:210) at com.documentum. BPM.services.BPSIntegrationFramework.executeService(BPSIntegrationFramework.java:239) at com.documentum.bpm.services.BPSIntegrationFramework.executeMethod(BPSIntegrationFramework.java:76) at com.documentum.bpm.services.BPSIntegrationMethod.executeMethod(BPSIntegrationMethod.java:30) at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:125) at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:278) at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:63) 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:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 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:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)
Answer:
From the stack trace, an error was occured on at com.documentum.bps.functions.DateToStringFunction.execute(DateToStringFunction.java:33).
The source of that method
1 2 3 4
|
if ((paramArrayOfObject == null) || (paramArrayOfObject.length <= 1) || (paramArrayOfObject.length > 2) || (!(paramArrayOfObject[0] instanceof Date)) || (!(paramArrayOfObject[1] instanceof String))) { throw new IllegalArgumentException(); }
|
To summary possible condition that can raise this error are:
- If parameter of DateToString function is not exactly 2 parameter
- If the first parameter is not date
- If the second parameter is not string (date format)
- If the first parameter date is equal to "nulldate"
|
|
Where is the IDfWorkitemEx ? |
|
|
|
Written by James Azarja
|
|
Monday, 02 February 2009 21:56 |
|
Question: I cannot compile a workflow method that using IDfWorkitemEx interface.
Answer: IDfWorkitemEx interface is enhanced version of IDfWorkitem. In case you want to use (import) this interface in your workflow method, simply add bpm_infra.jar to your classpath (eclipse project classpath). bpm_infra.jar is usually located at C:\Program Files\Documentum\Shared.
IDfWorkitemEx can be used to retrieve workflow's process variables, example:
1 2 3 4 5 6 7
|
/* Updating process variables, i.e sdt. For more info on IDfWorkitemEx, refer to java doc corresponding to com.documentum. BPM.IDfWorkitemEx*/ if (workitem instanceof IDfWorkitemEx) { IDfWorkitemEx workitemEx = (IDfWorkitemEx) workitem; Object var0 = workitemEx.getPrimitiveVariableValue("Var0"); //Some useful operation with var0 workitemEx.setPrimitiveObjectValue("Var0", var0); }
|
|
|
|
|
|
<< Start < Prev 1 2 Next > End >>
|
|
Page 1 of 2 |