BDR offline in UI Designer

Hi,

On a fresh installation of version 7.10.4 or 7.10.5, I have a message in the UI Designer instead of the BDM icon on the left, I have an icon with a message on the right that says in french something like : unable to connect to business model, try to restart Studio to solve the error.

Restarting the studio does not change anything, neither reinstalling.

When I check in dev mode in the browser I can see a request to the business data repository in error :

http://localhost:49968/bonita/bdr returns as error 500

message Connect to 127.0.0.1:49967 [/127.0.0.1] failed: Connection refused: connect

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:49967 [/127.0.0.1] failed: Connection refused: connect
	org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159)
	org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
	org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
	org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
	org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
	org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
	org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
	org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
	org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
	org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
	org.mitre.dsmiley.httpproxy.ProxyServlet.doExecute(ProxyServlet.java:333)
	org.mitre.dsmiley.httpproxy.ProxyServlet.service(ProxyServlet.java:275)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

 

root cause

java.net.ConnectException: Connection refused: connect
	java.base/java.net.PlainSocketImpl.connect0(Native Method)
	java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
	java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
	java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
	java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
	java.base/java.net.SocksSocketImpl.connect(Unknown Source)
	java.base/java.net.Socket.connect(Unknown Source)
	org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
	org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
	org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
	org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
	org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
	org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
	org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
	org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
	org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
	org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
	org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
	org.mitre.dsmiley.httpproxy.ProxyServlet.doExecute(ProxyServlet.java:333)
	org.mitre.dsmiley.httpproxy.ProxyServlet.service(ProxyServlet.java:275)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

I found a log for the BDR in workspace/.metadata : data-repository2020-06-17.log

2020-06-17T15:39:06.492Z e[32minfoe[39m: Listen Studio health check connection
2020-06-17T15:39:06.595Z e[32minfoe[39m:
________          __                                                      .__  __                       
\______ \ _____ _/  |______            _______   ____ ______   ____  _____|__|/  |_  ___________ ___.__.
 |    |  \\__  \\   __\__  \    ______ \_  __ \_/ __ \\____ \ /  _ \/  ___/  \   __\/  _ \_  __ <   |  |
 |    `   \/ __ \|  |  / __ \_ /_____/  |  | \/\  ___/|  |_> >  <_> )___ \|  ||  | (  <_> )  | \/\___  |
/_______  (____  /__| (____  /          |__|    \___  >   __/ \____/____  >__||__|  \____/|__|   / ____|
        \/     \/          \/                       \/|__|              \/                       \/     

2020-06-17T15:39:06.596Z e[32minfoe[39m: Server is running on http://127.0.0.1:49967/bdr
2020-06-17T15:39:26.813Z e[31merrore[39m: Connexion with Studio lost. Shutdown incoming

In the Bonita engine log, I can see an error that seems linked too :

17-Jun-2020 17:40:19.320 GRAVE [http-nio-8787-exec-6] org.bonitasoft.console.common.server.servlet.ResourceServlet.getResourceFile Error while generating the response.
    org.apache.catalina.connector.ClientAbortException: java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:372)
        at org.apache.catalina.connector.OutputBuffer.appendByteArray(OutputBuffer.java:811)
        at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:740)
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:407)
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:385)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96)
        at org.bonitasoft.console.common.server.servlet.ResourceServlet.getResourceFile(ResourceServlet.java:185)
        at org.bonitasoft.console.common.server.servlet.ResourceServlet.doGet(ResourceServlet.java:88)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        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.bonitasoft.console.common.server.filter.CacheFilter.proceedWithFiltering(CacheFilter.java:74)
        at org.bonitasoft.console.common.server.filter.ExcludingPatternFilter.doFilter(ExcludingPatternFilter.java:37)
        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:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        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:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
        at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
        at java.base/sun.nio.ch.SocketDispatcher.write(Unknown Source)
        at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
        at java.base/sun.nio.ch.IOUtil.write(Unknown Source)
        at java.base/sun.nio.ch.IOUtil.write(Unknown Source)
        at java.base/sun.nio.ch.SocketChannelImpl.write(Unknown Source)
        at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:134)
        at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)
        at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:157)
        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1306)
        at org.apache.tomcat.util.net.SocketWrapperBase.writeBlockingDirect(SocketWrapperBase.java:523)
        at org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:502)
        at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:439)
        at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:623)
        at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:116)
        at org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:225)
        at org.apache.coyote.Response.doWrite(Response.java:600)
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:360)
        ... 40 more

Otherwise, everything works fine, I can make changes in the UI Designer and deploy process.

It just seems that the link between Business Data Repository for the UI Designer is dead.

Platform : Windows 10, Firefox, same problem with other browsers

I have tried to make an exception in Windows Defender for the Bonita directory, even stop the FireWall and threat protection completely with no result.

Does anyone know what could cause the behaviour ?

Thanks in advance

 

Well,

I am admin of my laptop, no other AV than Windows Defender.

I reseted the firewall again to remove all rules.

Here is the message from the log :

!ENTRY org.bonitasoft.studio.designer 1 0 2020-06-25 11:10:54.837
!MESSAGE Starting RESTLET server on port 64105...

So I tried :

http://localhost:64105/api/workspace/status/

result :

Studio is alive

http://127.0.0.1:64105/api/workspace/status/

result :

Studio is alive

In the end, I still have the error with the UI Designer :

http://localhost:57813/bonita/bdr

it returns error 500

Connect to 127.0.0.1:57812 [/127.0.0.1] failed: Connection refused: connect

 

 

Attempting to access : http://localhost:57813/bdm/graphical

results with a 404 error

 

 

Hi Guillaume,

That's weird, is it possible that your firewall is blocking the access to some studio port ?

Can you check your firewall configuration and ensure that there is no deny rule for BonitaStudio ?

HTH

Romain

Hi,

I don't see any Deny rule, only accept for bonitastudiocommunity.exe.

I even reseted entirely the firewall and re accepted the requests that pop up when starting bonita, just to be sure.

 

 

 

Does it happen with a very basic BDM ? (Just one object with default attribute)

It happens even with an empty BDM.

 

Here is the studio log also, there is definitely something stopping the BDR :

 

!SESSION 2020-06-23 07:38:50.527 -----------------------------------------------
eclipse.buildId=7.10.4.
java.version=11.0.2
java.vendor=AdoptOpenJDK
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.core.filebuffers 4 0 2020-06-23 07:38:56.708
!MESSAGE Le type de contenu associé à l’ID « org.eclipse.buildship.core.files.gradlebuildscript » et indiqué dans le point d’extension n’existe pas.

!ENTRY org.eclipse.core.filebuffers 4 0 2020-06-23 07:38:56.716
!MESSAGE Le type de contenu associé à l’ID « org.eclipse.buildship.core.files.gradlebuildscript » et indiqué dans le point d’extension n’existe pas.

!ENTRY org.bonitasoft.studio.designer 1 0 2020-06-23 07:38:58.046
!MESSAGE Démarrage du UI Designer...

!ENTRY org.bonitasoft.studio.designer 1 0 2020-06-23 07:38:58.077
!MESSAGE Starting RESTLET server on port 56430...

!ENTRY org.bonitasoft.studio.designer 1 0 2020-06-23 07:38:58.146
!MESSAGE Démarrage du Data Repository Service...

!ENTRY org.bonitasoft.studio.designer 1 0 2020-06-23 07:38:58.262
!MESSAGE Data Repository Service has been started on http://localhost:49967/

!ENTRY org.bonitasoft.studio.designer 1 0 2020-06-23 07:39:13.487
!MESSAGE UI Designer has been started on http://localhost:49968/bonita

!ENTRY org.bonitasoft.studio.common 1 0 2020-06-23 07:39:13.603
!MESSAGE Configuring bonita client on host localhost:8080 with API_TYPE=HTTP

!ENTRY org.bonitasoft.studio.engine 1 0 2020-06-23 07:39:13.773
!MESSAGE Starting tomcat...

!ENTRY org.bonitasoft.studio.engine 1 0 2020-06-23 07:39:13.783
!MESSAGE Starting studio watchdog on 6969

!ENTRY org.bonitasoft.studio.common 1 0 2020-06-23 07:39:14.578
!MESSAGE Configuring bonita client on host localhost:8787 with API_TYPE=HTTP

!ENTRY org.bonitasoft.studio.businessobject 1 0 2020-06-23 07:39:17.146
!MESSAGE Génération du jar à partir du Modèle de Données Métier...

!ENTRY org.bonitasoft.studio.application 1 0 2020-06-23 07:39:32.090
!MESSAGE Startup duration : 00:00:38

!ENTRY org.bonitasoft.studio.common 4 0 2020-06-23 07:39:43.815
!MESSAGE An error occured while publishing the BDM into Data Repository service
!STACK 0
Connection Error (1000) - The connector failed to connect to the server
    at org.restlet.resource.ClientResource.doError(ClientResource.java:590)
    at org.restlet.resource.ClientResource.handleInbound(ClientResource.java:1153)
    at org.restlet.resource.ClientResource.handle(ClientResource.java:1048)
    at org.restlet.resource.ClientResource.handle(ClientResource.java:1023)
    at org.restlet.resource.ClientResource.post(ClientResource.java:1485)
    at org.bonitasoft.studio.designer.core.PostBDMEventHandler.execute(PostBDMEventHandler.java:54)
    at org.bonitasoft.studio.designer.core.PostBDMEventHandler.handleEvent(PostBDMEventHandler.java:42)
    at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38)
    at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:61)
    at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:171)
    at org.eclipse.ui.internal.UISynchronizer.lambda$0(UISynchronizer.java:153)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3919)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3550)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
    at org.bonitasoft.studio.application.BonitaStudioApplication.createAndRunWorkbench(BonitaStudioApplication.java:137)
    at org.bonitasoft.studio.application.BonitaStudioApplication.start(BonitaStudioApplication.java:99)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
Caused by: java.net.ConnectException: Connection refused: connect
    at java.base/java.net.PlainSocketImpl.connect0(Native Method)
    at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.base/java.net.Socket.connect(Unknown Source)
    at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
    at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
    at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
    at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at org.restlet.engine.connector.HttpUrlConnectionCall.sendRequest(HttpUrlConnectionCall.java:356)
    at org.restlet.engine.adapter.ClientAdapter.commit(ClientAdapter.java:105)
    at org.restlet.engine.adapter.HttpClientHelper.handle(HttpClientHelper.java:119)
    at org.restlet.Client.handle(Client.java:153)
    at org.restlet.routing.Filter.doHandle(Filter.java:150)
    at org.restlet.routing.Filter.handle(Filter.java:197)
    at org.restlet.resource.ClientResource.handle(ClientResource.java:1092)
    at org.restlet.resource.ClientResource.handleOutbound(ClientResource.java:1176)
    at org.restlet.resource.ClientResource.handle(ClientResource.java:1047)
    ... 34 more

!ENTRY org.bonitasoft.studio.engine 1 0 2020-06-23 07:40:01.663
!MESSAGE Tomcat server started.

!ENTRY org.bonitasoft.studio.businessobject 1 0 2020-06-23 07:40:02.971
!MESSAGE Déploiement du Modèle de Données Métier...

 

> Starting RESTLET server on port 56430...

Can you access the following endpoint after starting a Studio: http://localhost:56430/api/workspace/status/ ? You should have a response 'Studio is alive'

Can you also try with: http://127.0.0.1:56430/api/workspace/status/ ?

If one of the above is not working properly that's the cause of the issue as the Data Repository service will shut down if this endpoint is not successful.

Thanks

What about http://localhost:57813/bdm/graphical ? It's weird that when connecting to port 57813 error message talk about port 57812.

Attempting to access : http://localhost:57813/bdm/graphical

results with a 404 error

There is a shortcut in the studio that let you open a console view. Once the studio is started you have to press Alt+Shit+Q release and then C, then you can choose the process to monitor using the blue screen icon on the top right of the view. Select the data repository process and check if there is more error than in the log file. 

Are you using a network proxy ?

Hi

I use a VPN and there is a proxy on the network connection I am provided with.

In console view I only have two choices :

- Standalone UI Designer

- Tomcat 8.5 Server localhost

There is no item about the data repository process available.

No error in the Tomcat 8.5 console

In the UI Designer :

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
juin 29, 2020 7:41:47 AM org.apache.coyote.http11.Http11Protocol init
INFOS: Initializing ProtocolHandler ["http-bio-49968"]
juin 29, 2020 7:41:47 AM org.apache.catalina.core.StandardService startInternal
INFOS: Starting service Tomcat
juin 29, 2020 7:41:47 AM org.apache.catalina.core.StandardEngine startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/7.0.59
juin 29, 2020 7:41:47 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFOS: validateJarFile(D:\DEV\Bonita\workspace\.metadata\.plugins\org.bonitasoft.studio.designer\.extract\webapps\bonita\WEB-INF\lib\javax.el-3.0.1-b08.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class
juin 29, 2020 7:41:47 AM org.apache.catalina.loader.WebappLoader buildClassPath
INFOS: Unknown loader jdk.internal.loader.ClassLoaders$AppClassLoader@47f37ef1 class jdk.internal.loader.ClassLoaders$AppClassLoader
juin 29, 2020 7:41:58 AM org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/bonita] log
INFOS: 1 Spring WebApplicationInitializers detected on classpath
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer -
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - d8888b.  .d88b.  d8b   db d888888b d888888b  .d8b.    .d8888.  .d88b.  d88888b d888888b
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - 88  `8D .8P  Y8. 888o  88   `88'   `~~88~~' d8' `8b   88'  YP .8P  Y8. 88'     `~~88~~'
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - 88oooY' 88    88 88V8o 88    88       88    88ooo88   `8bo.   88    88 88ooo      88  
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - 88~~~b. 88    88 88 V8o88    88       88    88~~~88     `Y8b. 88    88 88~~~      88  
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - 88   8D `8b  d8' 88  V888   .88.      88    88   88   db   8D `8b  d8' 88         88   
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - Y8888P'  `Y88P'  VP   V8P Y888888P    YP    YP   YP   `8888Y'  `Y88P'  YP         YP   
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - ====================================================================================================
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - UI-DESIGNER : Community edition v.1.10.54
07:41:58 [localhost-startStop-1] INFO  o.b.w.d.SpringWebApplicationInitializer - ====================================================================================================
juin 29, 2020 7:41:58 AM org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/bonita] log
INFOS: Initializing Spring root WebApplicationContext
07:41:58 [localhost-startStop-1] INFO  o.s.w.c.ContextLoader - Root WebApplicationContext: initialization started
07:41:59 [localhost-startStop-1] INFO  o.b.w.d.c.DesignerConfigConditional - Conf loaded :  Community edition
07:41:59 [localhost-startStop-1] INFO  o.b.w.d.c.DesignerConfigConditional - Conf loaded :  Community edition
07:41:59 [localhost-startStop-1] INFO  o.b.w.d.c.DesignerConfigConditional - Conf loaded :  Community edition
07:41:59 [localhost-startStop-1] INFO  o.b.w.d.c.DesignerConfigConditional - Conf loaded :  Community edition
07:41:59 [localhost-startStop-1] INFO  o.b.w.d.c.DesignerConfigConditional - Conf loaded :  Community edition
07:41:59 [localhost-startStop-1] INFO  o.b.w.d.c.DesignerConfigConditional - Conf loaded :  Community edition
07:42:01 [localhost-startStop-1] INFO  o.h.v.i.u.Version - HV000001: Hibernate Validator 5.4.1.Final
07:42:02 [localhost-startStop-1] INFO  o.s.s.c.ThreadPoolTaskExecutor - Initializing ExecutorService 'clientInboundChannelExecutor'
07:42:02 [localhost-startStop-1] INFO  o.s.s.c.ThreadPoolTaskExecutor - Initializing ExecutorService 'clientOutboundChannelExecutor'
07:42:04 [localhost-startStop-1] DEBUG o.b.w.d.w.Workspace - Deleting folder [D:\DEV\Bonita\workspace\Mon projet\web_page\.metadata] with success
07:42:05 [localhost-startStop-1] INFO  o.b.w.d.c.WebMvcConfiguration - Adding welcome page: file:/D:/DEV/Bonita/workspace/.metadata/.plugins/org.bonitasoft.studio.designer/.extract/webapps/bonita/WEB-INF/classes/static/index.html
07:42:05 [localhost-startStop-1] INFO  o.s.s.c.ThreadPoolTaskScheduler - Initializing ExecutorService 'messageBrokerTaskScheduler'
07:42:05 [localhost-startStop-1] INFO  o.s.s.c.ThreadPoolTaskExecutor - Initializing ExecutorService 'brokerChannelExecutor'
07:42:05 [localhost-startStop-1] INFO  o.s.m.s.b.SimpleBrokerMessageHandler - Starting...
07:42:05 [localhost-startStop-1] INFO  o.s.m.s.b.SimpleBrokerMessageHandler - BrokerAvailabilityEvent[available=true, SimpleBrokerMessageHandler [DefaultSubscriptionRegistry[cache[0 destination(s)], registry[0 sessions]]]]
07:42:05 [localhost-startStop-1] INFO  o.s.m.s.b.SimpleBrokerMessageHandler - Started.
07:42:05 [localhost-startStop-1] INFO  o.s.w.c.ContextLoader - Root WebApplicationContext initialized in 7137 ms
juin 29, 2020 7:42:06 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFOS: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [526] milliseconds.
juin 29, 2020 7:42:06 AM org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/bonita] log
INFOS: Initializing Spring DispatcherServlet 'dispatcher'
07:42:06 [localhost-startStop-1] INFO  o.s.w.s.DispatcherServlet - Initializing Servlet 'dispatcher'
07:42:06 [localhost-startStop-1] INFO  o.s.w.s.DispatcherServlet - Completed initialization in 15 ms
juin 29, 2020 7:42:06 AM org.apache.coyote.http11.Http11Protocol start
INFOS: Starting ProtocolHandler ["http-bio-49968"]
07:43:05 [MessageBroker-1] INFO  o.s.w.s.c.WebSocketMessageBrokerStats - WebSocketSession[0 current WS(0)-HttpStream(0)-HttpPoll(0), 0 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(0)-CONNECTED(0)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], outboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], sockJsScheduler[pool size = 4, active threads = 1, queued tasks = 1, completed tasks = 3]
juin 29, 2020 7:45:14 AM org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/bonita] log
INFOS: bonitaDataRepository: proxy POST uri: /bonita/bdr -- http://127.0.0.1:49967/bdr
juin 29, 2020 7:45:16 AM org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/bonita].[bonitaDataRepository] invoke
GRAVE: Servlet.service() for servlet [bonitaDataRepository] in context with path [/bonita] threw exception
org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:49967 [/127.0.0.1] failed: Connection refused: connect
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
    at org.mitre.dsmiley.httpproxy.ProxyServlet.doExecute(ProxyServlet.java:333)
    at org.mitre.dsmiley.httpproxy.ProxyServlet.service(ProxyServlet.java:275)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
    at java.base/java.net.PlainSocketImpl.connect0(Native Method)
    at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
    at java.base/java.net.Socket.connect(Unknown Source)
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
    ... 33 more

 

| I use a VPN and there is a proxy on the network connection I am provided with.

There is a good chance that it messes up the communication between the Studio and the service, thus the service kill itself as it doesn't manage to reach the Studio. I'll fill a bug, and we will try to reproduce the issue. I'll keep you in touch. In the meantime you can install a Studio on a personal machine (if possible) and acknowledge that when you are not behind a proxy the service works properly.

Thanks for your help

Well, i did exactly that two weeks ago while on a Bonita Training Course to see if it worked differently, and yes it was working flawlessly on my personal machine with a normal network connection. So the source was certainly my work laptop or my work network connection.

Thanks

Hi,

Thanks for trying to help.

None of them seem to work.I get connection failed error on FireFox :

"La connexion a échoué

Firefox ne peut établir de connexion avec le serveur à l’adresse localhost:56430."

Is the port 56430 generic to every installation ?

I tried with 49668, 49667, but it never accesses anthing.

Those are chosen at startup by the Studio (it takes random available port), so you need to check in the studio logs which port is used. (Starting RESTLET server on port ????...)

If you cannot access the endpoint then there is a network configuration on your machine that block the access. Are you admin of your machine ? Do you run a specific antivirus ?

If yes I suggest to open the windows Firewall panel, go to inbound rules, search for all rules containing 'bonita', 'java', 'nodejs' and 'OpenJDK' and delete them.

Then restart the Studio, windows should prompt firewall dialog, allow everything and see if it works.