Hi all,
I've created my first Java Service in xCP from the bits and pieces that I could gather from the web and forums. I'm suprised there's not a guide or an update in the developer's guide since version 2.1 of xCP cause it looks to me everyone is having issues with it. Well, here are my questions that I hope someone has gone across and can help future requests:
1st. How are you suposed to define the arrays for the input/output parameters? The only one that seems to work is String[] (still not able to debug or run) but I've decompiled code and saw List (without the type definition)....
2nd. After the JVM version issue everyone has faced (and is not logged anywhere) I've got to the point where it cann't execute the module with the message:
com.documentum.bps.ServiceDefinitionConfigError: Could not resolve bof module name in invoke java-service service definition
at com.documentum.bpm.engine.utils.ServiceDefinitionResolverUtils.resolveInvokeJavaServiceDef(ServiceDefinitionResolverUtils.java:94)
Installing the application (and the module) has taken me to the next Stack trace. I've checked the cache and it isn't obviously there. Any suggestions?
2015-10-02T14:07:24.942 DEBUG [Tpool-3-thread-4] [com.documentum.bps.outbound.bof.runtime.BofModuleService:87] Creating module envobj_ZipOperations from docbase
2015-10-02T14:07:24.945 WARN [Tpool-3-thread-4] [com.documentum.bpm.engine.runtime.AutomaticWorkitemHandler:74]
java.lang.Exception: java.lang.NullPointerException
at com.documentum.bps.outbound.AbstractService.execute(AbstractService.java:98)
at com.documentum.bpm.engine.utils.InvokeOutboundService.executeService(InvokeOutboundService.java:116)
at com.documentum.bpm.engine.utils.InvokeOutboundService.invokeService(InvokeOutboundService.java:71)
at com.documentum.bpm.engine.model.activity.OutboundActivityTaskHandler.executeWorkitem(OutboundActivityTaskHandler.java:48)
at com.documentum.bpm.engine.runtime.AutomaticWorkitemHandler.executeService(AutomaticWorkitemHandler.java:256)
at com.documentum.bpm.engine.runtime.AutomaticWorkitemHandler.execute(AutomaticWorkitemHandler.java:119)
at com.documentum.bpm.engine.runtime.AutomaticWorkitemHandler.run(AutomaticWorkitemHandler.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.documentum.bps.outbound.bof.runtime.DataNodeCache$ParamTypeCache.addToCache(DataNodeCache.java:137)
at com.documentum.bps.outbound.bof.runtime.DataNodeCache$ParamTypeCache.access$200(DataNodeCache.java:109)
Message was edited by: Carlos Sanchez
Updated stacktrace style