I am new to Bonitasoft. I am following the manual named “BONITA BPM 7.0 GETTING STARTED” downloaded from the bonitasoft website.
I am using following version:
Bonita BPM Community Edition
Version : 7.1.2
Build id : 7.1.2
As mentioned on page number 7 of this book, when I try to save the business data model after adding a custom JQuery as written in this book, I get following error. Can someone help me in resolving this error. Has it got something to do with access rights. I am working on Windows 7 professional 64 bit.
==================================================================================
An error occurred while deploying the Business Data Model in engine
org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)
org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)
com.sun.proxy.$Proxy48.installBusinessDataModel(Unknown Source)
org.bonitasoft.studio.businessobject.core.operation.DeployBDMOperation.doDeployBDM(DeployBDMOperation.java:127)
org.bonitasoft.studio.businessobject.core.operation.DeployBDMOperation.run(DeployBDMOperation.java:80)
org.bonitasoft.studio.businessobject.ui.wizard.ManageBusinessDataModelWizard$2.run(ManageBusinessDataModelWizard.java:155)
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
< ========== Beginning of the server stack trace ========== >. ( )
org.bonitasoft.engine.api.impl.TenantAdministrationAPIImpl.installBusinessDataModel(TenantAdministrationAPIImpl.java:282)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:463)
org.bonitasoft.engine.api.impl.ServerAPIImpl$2.call(ServerAPIImpl.java:432)
org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:316)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:439)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:272)
org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124)
org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:112)
org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35)
javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:745)
Caused by: org.bonitasoft.engine.business.data.SBusinessDataRepositoryDeploymentException.: org.bonitasoft.engine.business.data.SBusinessDataRepositoryDeploymentException: java.io.IOException: Unable to delete directory C:\Users\LOGICA~1\AppData\Local\Temp\bdm1795251429052926889.tmp\org\bonitasoft\engine\bdm\dao\client\resources\utils. ( )
org.bonitasoft.engine.business.data.impl.BusinessDataModelRepositoryImpl.createClientBDMZip(BusinessDataModelRepositoryImpl.java:180)
org.bonitasoft.engine.business.data.impl.BusinessDataModelRepositoryImpl.install(BusinessDataModelRepositoryImpl.java:149)
org.bonitasoft.engine.api.impl.TenantAdministrationAPIImpl.installBusinessDataModel(TenantAdministrationAPIImpl.java:278)
… 40 more. ( )
Caused by: org.bonitasoft.engine.business.data.SBusinessDataRepositoryDeploymentException.: java.io.IOException: Unable to delete directory C:\Users\LOGICA~1\AppData\Local\Temp\bdm1795251429052926889.tmp\org\bonitasoft\engine\bdm\dao\client\resources\utils. ( )
org.bonitasoft.engine.bdm.AbstractBDMJarBuilder.build(AbstractBDMJarBuilder.java:66)
org.bonitasoft.engine.business.data.impl.BusinessDataModelRepositoryImpl.generateClientBDMZip(BusinessDataModelRepositoryImpl.java:211)
org.bonitasoft.engine.business.data.impl.BusinessDataModelRepositoryImpl.createClientBDMZip(BusinessDataModelRepositoryImpl.java:177)
… 42 more. ( )
Caused by: java.io.IOException.: Unable to delete directory C:\Users\LOGICA~1\AppData\Local\Temp\bdm1795251429052926889.tmp\org\bonitasoft\engine\bdm\dao\client\resources\utils. ( )
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1337)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
org.bonitasoft.engine.bdm.AbstractBDMJarBuilder.build(AbstractBDMJarBuilder.java:63)
… 44 more. ( )
yo tenia un problema similar en BonitaBPMCommunity-7.5.4 con linux, actualice el modelo de datos y no podia montar el nuevo modelo de datos, así que entre a /opt/BonitaBPMCommunity-7.5.4/workspace/default/bdm allí aparece el bom.xml este lo guarde con otro nombre y tome un respaldo que tenia y realice las modificaciones a mano, cerre el proceso y volvi a cargar mi modelo de datos y voala, jalo, muchas gracias por el tip!
ok I uploaded the .bos file in that same google drive folder. Let me know if you can download it.
I am building a new process now with new data model. However, I face the same issue even if I try to save the BDM of travel request. In fact i am using the latest updated process files of travel tool downloaded from githb for bonita 7.2. The travel process runs well with no issues. But this error comes almost 90% time I try to save any BDM.
Thanks for checking it up. Don’t know whats wrong. My machine is Windows 7 Professional 64bit, and the folder has all the permissions that are available in any windows machine.
I just tried to save the BDM without doing any change in it and got this error again. Tried 2 more times and it saved without giving that error popup. It seems Bonita takes some sort of lock on that temporary folder starting with bdm* which makes that folder readonly. And when I try to save the model bonita find it as locked and gives error. So may be bonita is not able to release lock on temporary folder and on saving changed bdm, it is not able to release lock before attempting to delete that locked folder to clean up temporary directories.
Yo tuve que reinstalar bonita, version 7.5.4.utilizando el unistall propio de la aplicación y conservando los datos.
Luego importé el proceso que habia generado y listo
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.