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 :
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