An error occured while deploying the business Data Model in engine

1
0
-1

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. ( )

2 answers

1
0
-1

Hi,

Can you try to:

  • Close the Studio
  • Go to C:\Users\LOGICA~1\AppData\Local\Tempfolder
  • Remove all bdm* folders
  • Restart the Studio
  • Define your Business Daat custom queries using JPQL (not JQuery)

Thanks

Comments

Submitted by logicallimit on Thu, 02/11/2016 - 13:33

Thanks for your suggestion. But this seems to be an issue in Bonita studio.

I have started using Bonita 7.2.0 and still get this error while I save the data model. I try to save 6-7 times and then it gets saved.

Submitted by antoine.mottier on Thu, 02/11/2016 - 14:12

Hi,

Can you share (using for example Dropbox or Google drive) the Studio and Engine log files?

You can get content for both file from Studio help menu.

Maybe also a screenshot of the Business Data Model window can help.

Thanks

Submitted by logicallimit on Thu, 02/11/2016 - 14:34

I shared it on google drive: link

Submitted by antoine.mottier on Thu, 02/11/2016 - 15:12

Are you able to also share the BDM (using Studio "Export" menu)?

According to the BDM screenshot you are no longer doing the getting started tutorial but creating your own (rather big) business object.

Thanks

Submitted by logicallimit on Thu, 02/11/2016 - 15:24

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.

Submitted by antoine.mottier on Thu, 02/18/2016 - 12:32

I did a test with your Business Data Model and I'm able to edit it and deploy it without any errors.

As you get error message like: Unable to delete directory C:\Users\LOGICA~1\AppData\Local\Temp\bdm3344006630480006549.tmp\com\company\model\server

I would suggest to check permissions / content of the temp folder.

Submitted by logicallimit on Sat, 02/20/2016 - 10:44

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.

Submitted by antoine.mottier on Mon, 03/07/2016 - 11:06

I think that might be a Studio issue. Studio might still try to write data to the temp folder while trying to delete it at the same time.

I would suggest to open a bug on the Community issues tracker with a sum up of all information you provide in this post.

1
-1
-1

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!

Comments

Submitted by Loreley2018 on Thu, 12/13/2018 - 19:43

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

Notifications