• Bonita Connector - CheckIn causes a failure...

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #30446  by Sean
 
Hi there,

OpenKM v6.3.0 build 8152 community
Bonita Studio 6.3.7, Java 1.7.0.67, Windows 8.1

I've got nearly all samples working but Check-In-Document fails as follows (the document is checked out):
Code: Select all
2014-11-05 10:26:04 org.bonitasoft.engine.external.web.forms.ExecuteActionsAndTerminateTask 
INFO: THREAD_ID=50 | HOSTNAME=Mainframe | TENANT_ID=1 | The user <walter.bates> has executed the task [name = <Document information>, display name = <Document information>, id = <37>, parent process instance = <10>, root process instance = <10>, process definition = <5605818090171157404>]
2014-11-05 10:26:04 org.bonitasoft.connector.openkm.CheckinDocumentConnector 
INFO: Executing OpenKMConnector with params: host:http://localhost:8080/OpenKM, user:okmAdmin
2014-11-05 10:26:04 org.bonitasoft.connector.openkm.CheckinDocumentConnector 
INFO: Executing Action
2014-11-05 10:26:04 org.bonitasoft.connector.openkm.CheckinDocumentConnector 
INFO: Executing CreateDocumentSimpleConnector with params: fileObject:mydoc, docId:/okm:root/ABCDEFLtd - 6/, comment:tester
2014-11-05 10:26:04 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork 
WARNING: THREAD_ID=116 | HOSTNAME=Mainframe | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 42, connectorDefinitionName = checkinDocument] failed. The failure will be handled.
2014-11-05 10:26:04 org.bonitasoft.engine.execution.event.ErrorEventHandlerStrategy 
WARNING: THREAD_ID=116 | HOSTNAME=Mainframe | TENANT_ID=1 | No catch error event was defined to handle the error code '' defined in the process [name: Checkin Document, version: 1.0], throw event: . This throw error event will act as a Terminate Event.
2014-11-05 10:26:04 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork 
WARNING: THREAD_ID=116 | HOSTNAME=Mainframe | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=5605818090171157404 | PROCESS_NAME=Checkin Document | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=10 | ROOT_PROCESS_INSTANCE_ID=10 | FLOW_NODE_DEFINITION_ID=-7281119368959811276 | FLOW_NODE_INSTANCE_ID=42 | FLOW_NODE_NAME=Checkin document | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=checkinDocument | CONNECTOR_INSTANCE_ID=8 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.LinkageError: ClassCastException: attempting to castnulltojar:file:/E:/BonitaBPMCommunity-6.3.7-00%20-%20Scrapbook%20Tests/workspace/tomcat/bonita/server/platform/tmp/bonita_engine_33836@Mainframe/local/PROCESS/5605818090171157404/5605818090171157404_jersey-core-1.17.1.jar.jar1589233429818808151.tmp!/javax/ws/rs/ext/RuntimeDelegate.class"
I have tried both ways where path =

/okm:root/ABCDEFLtd - 6/

and

/okm:root/ABCDEFLtd - 6/filename.doc

where I have selected the file from the filesystem dialog.

Thanks and regards
Seán
 #30474  by jllort
 
Document name is the same ? when you checkout the file, the checkin file must have the same document name or the same uuid ( I'm not sure if community allows working with path and uuid at same time, this feature is present at professional version and I do not remember if version 6.3 also got it ).

Can you capture the error ( conector gives you the comple stack trace ). Also will be good see catalina.log there's the complete stack trace and I will understand better what's happening.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.