ERR_CONNECTION_REFUSED when opening project in Web Browser

I’m following the BPM QuickStart and at section 1.5, after Run -> start application server, I browse to http://localhost:8080/app and I get the message “This webpage is not available. ERR_CONNECTION-REFUSED”.

Perhaps the application server did not start for some reason.
Could you attach the Studio window screenshot and the log file located at ${user.home}/.haulmont/studio/logs/studio.log?

Please do the following:

  • Press Exit in the Studio server window
  • Delete file ${user.home}/.haulmont/studio/logs/studio.log
  • Launch Studio again
  • Open the project, press Run > Start app server
  • Make a screenshot of Studio web interface
  • Create a new comment here and attach 2 files using the “Attach a file” link below the comment text:
  • first is the screenshot
  • second is ${user.home}/.haulmont/studio/logs/studio.log

Hi, the “Attach a file” link does not seem to attach documents.

here are the latest logs:


2015-12-07 10:55:53,363 INFO  [com.haulmont.studio.server.Main] CUBA Studio v.2.0.3 built on 2015-11-20 10:39:28 
2015-12-07 10:56:15,562 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 2.6 
2015-12-07 10:56:16,325 DEBUG [org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader] Using tooling provider from Gradle distribution 'https://services.gradle.org/distributions/gradle-2.6-bin.zip' 
2015-12-07 10:56:16,327 DEBUG [org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader] Using tooling provider classpath: [C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\ant-1.9.3.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\ant-launcher-1.9.3.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\asm-all-5.0.3.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\commons-collections-3.2.1.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\commons-io-1.4.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\commons-lang-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\dom4j-1.6.1.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-base-services-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-base-services-groovy-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-cli-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-core-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-docs-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-launcher-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-messaging-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-model-core-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-model-groovy-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-native-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-open-api-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-resources-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-tooling-api-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-ui-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\gradle-wrapper-2.6.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\groovy-all-2.3.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\guava-jdk5-17.0.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\jansi-1.2.1.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\jarjar-1.3.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\javax.inject-1.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\jaxen-1.1.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\jcip-annotations-1.0.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\jcl-over-slf4j-1.7.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\jna-3.2.7.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\jul-to-slf4j-1.7.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\kryo-2.20.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\log4j-over-slf4j-1.7.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\minlog-1.2.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-freebsd-amd64-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-freebsd-i386-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-linux-amd64-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-linux-i386-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-osx-amd64-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-osx-i386-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-windows-amd64-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\native-platform-windows-i386-0.10.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\objenesis-1.2.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\reflectasm-1.07-shaded.jar, C:\Users\Francis\.gradle\wrapper\dists\gradle-2.6-bin\7og9jkn1p1nxjafu1htp0hhvc\gradle-2.6\lib\slf4j-api-1.7.10.jar] 
2015-12-07 10:56:24,217 INFO  [java.lang.Class] plugins folder not found 
2015-12-07 10:56:24,225 WARN  [com.vaadin.server.DefaultDeploymentConfiguration]  
================================================================= 
Vaadin is running in DEBUG MODE. 
Add productionMode=true to web.xml to disable debug features. 
To show debug window, add ?debug to your application URL. 
================================================================= 
2015-12-07 10:56:24,321 INFO  [org.atmosphere.util.IOUtils] META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader 
2015-12-07 10:56:24,435 WARN  [com.vaadin.server.DefaultDeploymentConfiguration]  
================================================================= 
Vaadin is running in DEBUG MODE. 
Add productionMode=true to web.xml to disable debug features. 
To show debug window, add ?debug to your application URL. 
================================================================= 
2015-12-07 10:56:24,437 INFO  [org.atmosphere.util.IOUtils] META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader 
2015-12-07 10:56:41,379 INFO  [com.haulmont.studio.backend.stat.StatManager] Sending usage statistics 
2015-12-07 10:56:41,385 INFO  [com.haulmont.studio.backend.ModelHolder] Opening Project{name='bpm-demo'} 
2015-12-07 10:56:41,767 INFO  [com.haulmont.studio.backend.ed.ddl.DbManager] There is no Oracle driver oracle.jdbc.OracleDriver on CLASSPATH 
2015-12-07 10:56:42,570 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 2.6 
2015-12-07 10:56:51,705 INFO  [hsqldb.db.HSQLDB5178F3AC1D.ENGINE] checkpointClose start 
2015-12-07 10:56:51,767 INFO  [hsqldb.db.HSQLDB5178F3AC1D.ENGINE] checkpointClose end 
2015-12-07 10:57:31,305 DEBUG [org.gradle.tooling.GradleConnector] Connecting from tooling API consumer version 2.6 
2015-12-07 11:02:48,811 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {} 
java.net.SocketTimeoutException: Timeout on Read 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541) 
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506) 
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
	at java.lang.Thread.run(Thread.java:745) 
2015-12-07 11:07:53,842 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {} 
java.net.SocketTimeoutException: Timeout on Read 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541) 
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506) 
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
	at java.lang.Thread.run(Thread.java:745) 
2015-12-07 11:12:58,876 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {} 
java.net.SocketTimeoutException: Timeout on Read 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541) 
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506) 
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
	at java.lang.Thread.run(Thread.java:745) 
2015-12-07 11:18:03,889 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {} 
java.net.SocketTimeoutException: Timeout on Read 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541) 
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506) 
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
	at java.lang.Thread.run(Thread.java:745) 
2015-12-07 11:23:08,960 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {} 
java.net.SocketTimeoutException: Timeout on Read 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541) 
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506) 
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
	at java.lang.Thread.run(Thread.java:745) 
2015-12-07 11:28:14,941 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {} 
java.net.SocketTimeoutException: Timeout on Read 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541) 
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506) 
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
	at java.lang.Thread.run(Thread.java:745) 
2015-12-07 11:33:20,943 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {} 
java.net.SocketTimeoutException: Timeout on Read 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541) 
	at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) 
	at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506) 
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
	at java.lang.Thread.run(Thread.java:745)

According to the log, Studio server cannot establish a websocket connection with its web part. This can be due to firewall settings or antivirus software. Please try to disable all this stuff or add exceptions for Java executable. If it does not help, send us the following information:

  • OS version
  • the Studio log with TRACE level: before starting Studio, select TRACE in the Logging level field. The website now only accepts ZIP archives and images, so please zip the log.
    In addition, I’ll send my contact info to your email, so feel free to contact me directly.

Sorry, most probably the exceptions in your log have no relation to a firewall or antivirus.
Anyway, we would like to look at the log with the TRACE level.

Just to close the issue:
The problem was in JRE_HOME environment variable pointed to the wrong location. Tomcat uses this variable prior to JAVA_HOME. We are going to pass JRE_HOME together with JAVA_HOME from Studio (in the next version) to eliminate this situation in the future.

Hi,
the problem is fixed in the Studio version 2.0.6.