OrganizationImportException after defining custom field

Hi

I’m using Bonita Community Edition 7.7.4.
I have my custom field in organization data for users. I added 3 custom fields for organization user Until now and it works correctly. When I added a new custom field (with any name), it has error and organization data can’t republish.

Does anyone know what the reason of the error is?
Is there any limitation for defining custom field in community edittion?

The error log is below:

Caused by: org.bonitasoft.engine.identity.OrganizationImportException: USERNAME=install | org.bonitasoft.engine.identity.SUserMembershipCreationException: org.bonitasoft.engine.recorder.SRecorderException: org.bonitasoft.engine.services.SPersistenceException: org.hibernate.HibernateException: Current transaction is not in progress at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:134) at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86) at com.sun.proxy.$Proxy37.importOrganization(Unknown Source) at org.bonitasoft.studio.actors.operation.UpdateOrganizationOperation.importOrganization(UpdateOrganizationOperation.java:32) at org.bonitasoft.studio.actors.operation.PublishOrganizationOperation.run(PublishOrganizationOperation.java:98) at org.bonitasoft.studio.actors.ui.handler.InstallOrganizationHandler.execute(InstallOrganizationHandler.java:76) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:305) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:239) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:390) at org.bonitasoft.studio.actors.ui.handler.DeployOrganizationHandler$1.run(DeployOrganizationHandler.java:126) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119) at < ========== Beginning of the server stack trace ========== >. ( ) at org.bonitasoft.engine.api.impl.IdentityAPIImpl.importOrganizationWithWarnings(IdentityAPIImpl.java:1499) at org.bonitasoft.engine.api.impl.IdentityAPIImpl.importOrganization(IdentityAPIImpl.java:1484) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:462) at org.bonitasoft.engine.api.impl.ServerAPIImpl$2.call(ServerAPIImpl.java:431) at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:438) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:272) at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124) at org.bonitasoft.engine.api.internal.servlet.HttpAPIServletCall.doPost(HttpAPIServletCall.java:118) at org.bonitasoft.engine.api.internal.servlet.HttpAPIServlet.doPost(HttpAPIServlet.java:35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) at Caused by: org.bonitasoft.engine.identity.SUserMembershipCreationException.: org.bonitasoft.engine.recorder.SRecorderException: org.bonitasoft.engine.services.SPersistenceException: org.hibernate.HibernateException: Current transaction is not in progress ( ) at org.bonitasoft.engine.identity.impl.IdentityServiceImpl.createUserMembership(IdentityServiceImpl.java:291) at org.bonitasoft.engine.identity.ImportOrganization.addMembership(ImportOrganization.java:287) at org.bonitasoft.engine.identity.ImportOrganization.importMemberships(ImportOrganization.java:164) at org.bonitasoft.engine.identity.ImportOrganization.execute(ImportOrganization.java:136) at org.bonitasoft.engine.api.impl.IdentityAPIImpl.importOrganizationWithWarnings(IdentityAPIImpl.java:1496) at ... 42 more. ( ) at Caused by: org.bonitasoft.engine.recorder.SRecorderException.: org.bonitasoft.engine.services.SPersistenceException: org.hibernate.HibernateException: Current transaction is not in progress ( ) at org.bonitasoft.engine.recorder.impl.RecorderImpl.recordInsert(RecorderImpl.java:65) at org.bonitasoft.engine.identity.impl.IdentityServiceImpl.createUserMembership(IdentityServiceImpl.java:287) at ... 46 more. ( ) at Caused by: org.bonitasoft.engine.services.SPersistenceException.: org.hibernate.HibernateException: Current transaction is not in progress ( ) at org.bonitasoft.engine.persistence.AbstractHibernatePersistenceService.getSession(AbstractHibernatePersistenceService.java:206) at org.bonitasoft.engine.persistence.TenantHibernatePersistenceService.getSession(TenantHibernatePersistenceService.java:104) at org.bonitasoft.engine.persistence.AbstractHibernatePersistenceService.insert(AbstractHibernatePersistenceService.java:273) at org.bonitasoft.engine.persistence.TenantHibernatePersistenceService.insert(TenantHibernatePersistenceService.java:135) at org.bonitasoft.engine.recorder.impl.RecorderImpl.recordInsert(RecorderImpl.java:61) at ... 47 more. ( ) at Caused by: org.hibernate.HibernateException.: Current transaction is not in progress ( ) at org.hibernate.context.internal.JTASessionContext.currentSession(JTASessionContext.java:98) at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014) at org.bonitasoft.engine.persistence.AbstractHibernatePersistenceService.getSession(AbstractHibernatePersistenceService.java:204) at ... 51 more. ( )

Are you able to reproduce this issue using the Portal embedded in Bonita Studio?

Because I try (on version 7.8.4) and was not able to reproduce the issue.

If you are able to provide guidance to reproduce the problem that would rely helpful. If you can confirm the issue you might want to open an issue on the community issue tracker: https://bonita.atlassian.net/projects/BBPMC/issues/

Thanks for your comment.
Yes, the problem still exists.
I’m using Bonita 7.7.4, If I update Bonita to 7.8.4, will the problem be solved?

Can you provide step by step instructions to reproduce the problem using a brand new installation of Bonita Studio (and/or a Bonita Server if needed)?

I cannot guaranty that the issue is solved in 7.8.4 until I was able to reproduce it. Currently what I’m saying is that I’m not able to reproduce it on 7.8.4 but maybe I’m missing a step in the scenario to reproduce the issue.

OK, you’r right.
1.I’m going to organization → define: manage organization
2. selecting my organization
3. clicking next until “Organization Users”
4. selecting custom-> manage custom information
5. I already added 3 custom field, now I add another field.
6. clicking finish and click yes for re-publish organization
7. after a few minutes, the error displayed!

I try to reproduce the issue following you instructions using Bonita Studio 7.8.4 Community Edition and didn’t get the error.

Can you:

  1. Try to reproduce your issue on version 7.8.4
  2. Share with me (using Google Drive, Dropbox…) the Bonita Studio log and Bonita Engine log available from Studio help menu?
  3. Share with me your organization using the export menu of the Studio and give me the name of the new custom information you are trying to add?