# Error in publishing organisation

**URL:** <https://community.ofelia.com/t/error-in-publishing-organisation/10451>\
**Category:** Q&A\
**Created:** [19 October 2020 23:18 UTC](https://community.ofelia.com/t/error-in-publishing-organisation/10451 "2020-10-19T23:18:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mashah1220](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mashah1220](https://community.ofelia.com/u/mashah1220)\
**Post date:** [19 October 2020 23:18 UTC](https://community.ofelia.com/t/error-in-publishing-organisation/10451/1 "2020-10-19T23:18:20Z")

</div>

Hi all,  
  
First of all, I would like to thank you for this community. I have received tonnes of help from it.  
  
I have a Bonitasoft (7.5.4) instance running with the WildFly bundle. Unfortunately,&nbsp;since it's a customer's environment, we cannot upgrade the Bonita version to the latest one. Furthermore, the customer has 4 organizations in this environment, of which one is active.

I tried adding in a user to the active environment. When I go ahead and try to publish that environment, I am getting a " **An error occurred during synchronization**" error. I can't seem to copy all of the lines from the error windows, so I'm writing the relevant lines from the stack trace as follows:

_USERNAME = install | org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException : org.bonitasoft.engine.commons.exceptions.SObjectModificationException: Unable to delete SARefBusinessDataInstances's for processInstanceId: 8192  
.....  
Caused by:&nbsp;org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceModificationException : org.bonitasoft.engine.commons.exceptions.SObjectModificationException: Unable to delete SARefBusinessDataInstances's for processInstanceId: 8192  
.....  
Caused by: org.bonitasoft.engine.commons.exceptions.SObjectModificationException: Unable to delete SARefBusinessDataInstances's for processInstanceId: 8192  
.....  
Caused by: org.bonitasoft.engine.recorder.SRecorderExcdeption: org.bonitasoft.engine.services.SPersistenceException: org.hibernate.HibernateException: Current Transaction is not in progress()  
.....  
Caused by: org.bonitasoft.engine.services.SPersistenceException: org.hibernate.HibernateException: Current Transaction is not in progress()_

_....._

_Caused by: org.hibernate.HibernateException: Current Transaction is not in progress()_

I'd be really grateful if you could please help me out with this. I don't know where I should even to begin to assess/fix the problem.  
  
Thank you so much.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [22 October 2020 19:04 UTC](https://community.ofelia.com/t/error-in-publishing-organisation/10451/2 "2020-10-22T19:04:25Z")

</div>

Hello,

_I tried adding in a user to the active environment.&nbsp;When I go ahead and try to publish that environment_

That's strange: you want to update an organization and you see a Delete logs?

Second, this log show&nbsp;_USERNAME = install&nbsp;_

But install is not a user of the organization. Or maybe you execute this operation from the install user?

Do you have this in your studio or on a server?

- A studio want to delete the current organization (this is a "replace")&nbsp;
- A server will add the new organization to the current one (so there is no deletion).

So, I assume you do the first operation, correct? In all situations, could you join the complete Bonita log of the operation?

Best,

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [23 October 2020 01:00 UTC](https://community.ofelia.com/t/error-in-publishing-organisation/10451/3 "2020-10-23T01:00:00Z")

</div>

I see.

The log is visible from HELP / Bonita Engine Log.

Question; your new organization contains how many users? More than 1000?

Try this :

1/ export the organization

2/ go to the portal, administration, then import the organization

Do you have the same issue?

If you are a customer, open a ticket to the support then.

Else, we can try to investigate, but we will need the log file.

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![mashah1220](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mashah1220](https://community.ofelia.com/u/mashah1220)\
**Post date:** [24 October 2020 20:25 UTC](https://community.ofelia.com/t/error-in-publishing-organisation/10451/4 "2020-10-24T20:25:39Z")

</div>

Nope. The&nbsp;active organization only has about 20-25 users in total. The inactive organization also have an approximate of 50 members in total.

I tried to do the following: Export Organization via Studio -\> Login to Portal -\> Go to Administration -\> Import the organization.  
  
The organization was imported successfully. Now, restarted the Bonita Studio and tried to publish the organization again. This time, I receive the following entries in the log file:

&nbsp;

!ENTRY org.bonitasoft.studio.actors 1 0 2020-10-24 23:23:10.639  
!MESSAGE Loading organization Organization\_Data (1) in portal...

!ENTRY org.bonitasoft.studio.common 1 0 2020-10-24 23:23:10.664  
!MESSAGE Configuring bonita client on host localhost:8080 with API\_TYPE=HTTP

!ENTRY org.bonitasoft.studio.common 4 0 2020-10-24 23:23:12.704  
!MESSAGE&nbsp;  
!STACK 0  
java.lang.reflect.UndeclaredThrowableException  
&nbsp;&nbsp; &nbsp;at com.sun.proxy.$Proxy28.login(Unknown Source)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.postEngineStart(BOSEngineManager.java:162)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.start(BOSEngineManager.java:154)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.loginTenant(BOSEngineManager.java:294)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.loginDefaultTenant(BOSEngineManager.java:277)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.actors.operation.PublishOrganizationOperation.run(PublishOrganizationOperation.java:89)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.actors.ui.handler.InstallOrganizationHandler.execute(InstallOrganizationHandler.java:75)  
&nbsp;&nbsp; &nbsp;at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)  
&nbsp;&nbsp; &nbsp;at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)  
&nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
&nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
&nbsp;&nbsp; &nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
&nbsp;&nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:498)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)  
&nbsp;&nbsp; &nbsp;at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)  
&nbsp;&nbsp; &nbsp;at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)  
&nbsp;&nbsp; &nbsp;at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.actors.ui.wizard.SynchronizeOrganizationWizard$1.run(SynchronizeOrganizationWizard.java:112)  
&nbsp;&nbsp; &nbsp;at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)  
Caused by: java.net.ConnectException: Connection refused: connect  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:143)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)  
&nbsp;&nbsp; &nbsp;at com.sun.proxy.$Proxy28.login(Unknown Source)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.postEngineStart(BOSEngineManager.java:162)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.start(BOSEngineManager.java:154)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.loginTenant(BOSEngineManager.java:294)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.engine.BOSEngineManager.loginDefaultTenant(BOSEngineManager.java:277)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.actors.operation.PublishOrganizationOperation.run(PublishOrganizationOperation.java:89)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.actors.ui.handler.InstallOrganizationHandler.execute(InstallOrganizationHandler.java:75)  
&nbsp;&nbsp; &nbsp;at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)  
&nbsp;&nbsp; &nbsp;at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)  
&nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
&nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
&nbsp;&nbsp; &nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
&nbsp;&nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:498)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)  
&nbsp;&nbsp; &nbsp;at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)  
&nbsp;&nbsp; &nbsp;at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)  
&nbsp;&nbsp; &nbsp;at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)  
&nbsp;&nbsp; &nbsp;at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.studio.actors.ui.wizard.SynchronizeOrganizationWizard$1.run(SynchronizeOrganizationWizard.java:112)  
&nbsp;&nbsp; &nbsp;at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)  
&nbsp;&nbsp; &nbsp;at &nbsp;&nbsp; &nbsp;\< ========== Beginning of the server stack trace ========== \>. ( )  
&nbsp;&nbsp; &nbsp;at java.net.DualStackPlainSocketImpl.connect0(Native Method)  
&nbsp;&nbsp; &nbsp;at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)  
&nbsp;&nbsp; &nbsp;at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)  
&nbsp;&nbsp; &nbsp;at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)  
&nbsp;&nbsp; &nbsp;at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)  
&nbsp;&nbsp; &nbsp;at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)  
&nbsp;&nbsp; &nbsp;at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)  
&nbsp;&nbsp; &nbsp;at java.net.Socket.connect(Socket.java:589)  
&nbsp;&nbsp; &nbsp;at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:120)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:179)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:328)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:612)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:220)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)  
&nbsp;&nbsp; &nbsp;at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.engine.api.HTTPServerAPI.executeHttpPost(HTTPServerAPI.java:165)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:135)  
&nbsp;&nbsp; &nbsp;at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)  
&nbsp;&nbsp; &nbsp;... 24 more

&nbsp;

---

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [27 October 2020 00:32 UTC](https://community.ofelia.com/t/error-in-publishing-organisation/10451/5 "2020-10-27T00:32:00Z")

</div>

hello,&nbsp;

That look like a bug. You can open an issue in [Bonita Community&nbsp;JIRA tracker](https://bonita.atlassian.net/browse/BBPMC). If you need information about how to do it, you can&nbsp;have a look to the [FAQ](http://community.ofelia.com/frequently-asked-questions#report-issue).&nbsp;

As a workaround, you can use the American page.

Best

---

<div class="post-metadata">

**Author:** ![mashah1220](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mashah1220](https://community.ofelia.com/u/mashah1220)\
**Post date:** [22 October 2020 22:55 UTC](https://community.ofelia.com/t/error-in-publishing-organisation/10451/6 "2020-10-22T22:55:27Z")

</div>

Yes, I want to update an environment and this is the error statement/track trace I receive from the " **An error occurred during synchronization**" error.

I don't execute this as the "install" user since I select a local user to login as when I try to publish the organization. The usual "walter.bates" user actually.

I just run the "Publish" command from the Studio. That's it. I'm not touching the server (The WildFly bundle is off at the moment).

Do you know where I can get whole the error logs from? They don't show up in the normal Server/Studio logs in Bonita, and I can't copy the error statement/stack trace from the error message itself for some reason. I don't get an option to copy the whole message.
