Can't connect to _MAIN_ - hsql outofmemory

I’m trying to run the Petclinic example app and get the same message when I try to run the project. As a newbie to Cuba I’m not sure where to start looking to solve the problem. I downloaded the project from Git, installed as per instructions in the Cuba User Guide for Opening an Existing Project and after pressing Run, I get this error message. I’ve looked at the Main Data Store Properties; set the Define JDBC DataSource in option to Application. Database type was set to HSQLDB and the URL is pointing to the localhost with default Databse user: sa. If I open idea.log the last relevant entry is: Caused by: org.hsqldb.HsqlException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.ClientConnection.execute(Unknown Source)
at org.hsqldb.ClientConnection.(Unknown Source)

On the basis that there is a heap allocation problem, I then altered …/cuba-petclinic-master/deploy/tomcat/bin/setenv.sh to increase the memory allocation from -Xmx512m to -Xmx1024m and the same in …/setenv.bat.

Needless to say I still haven’t resolved the problem. I’m not sure what to look at next - can anyone help please? Thank you.

Hi,
Looks like this OutOfMemoryError occurs in the IDE, not in the running application. When you are opening the CUBA project with the HSQL database, the Studio starts embedded HSQL server inside of the IDE.

So the place to increase memory settings is the IDE (main menu -> Help -> Change Memory Settings), not in the setenv.sh.

Could you post here the full idea.log file? It’s strange that your IDE has exhausted all memory by just opening one sample project.

I’ve altered the memory as suggested ie Help->Change Mem settings. And it didn’t help. I’ve attached the idea.log file. Thank you for coming back so quickly! The log file is here:-

2020-08-05 16:32:11,234 [16387848] INFO - e.jetty.server.ServerConnector - Stopped ServerConnector@1e366330{HTTP/1.1}{0.0.0.0:30200}
2020-08-05 16:32:11,240 [16387854] INFO - .server.handler.ContextHandler - Stopped o.e.j.w.WebAppContext@7b448f1{/studio,file:/C:/Users/William/.CubaStudio2019.3/system/,UNAVAILABLE}
2020-08-05 16:32:11,294 [16387908] INFO - Types.impl.FileTypeManagerImpl - 48 auto-detected files. Detection took 26 ms
2020-08-05 16:32:11,363 [16387977] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2020-08-05 16:32:11,384 [16387998] INFO - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0
2020-08-05 16:32:11,384 [16387998] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2020-08-05 16:32:11,452 [16388066] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2020-08-05 16:32:11,452 [16388066] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2020-08-05 16:32:11,471 [16388085] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2020-08-05 16:32:11,471 [16388085] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2020-08-05 16:32:11,472 [16388086] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2020-08-05 16:32:11,478 [16388092] INFO - #com.intellij.util.Restarter - run restarter: [C:\Program Files\Haulmont\CUBA Studio 2019.3\bin\restarter.exe, 1168, 1, C:\Program Files\Haulmont\CUBA Studio 2019.3\bin\cuba-studio64.exe]
2020-08-05 16:32:12,039 [16388653] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2020-08-05 16:32:12,041 [16388655] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2020-08-05 16:32:13,178 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2020-08-05 16:32:13,269 [ 91] INFO - #com.intellij.idea.Main - IDE: CUBA Studio (build #CS-193.7288.140, 31 Jul 2020 09:00)
2020-08-05 16:32:13,270 [ 92] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2020-08-05 16:32:13,270 [ 92] INFO - #com.intellij.idea.Main - JRE: 11.0.6+8-b520.66 (JetBrains s.r.o)
2020-08-05 16:32:13,270 [ 92] INFO - #com.intellij.idea.Main - JVM: 11.0.6+8-b520.66 (OpenJDK 64-Bit Server VM)
2020-08-05 16:32:13,271 [ 93] INFO - #com.intellij.idea.Main - JVM Args: exit -Xms512m -Xmx1800m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes=“” -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Djb.vmOptionsFile=C:\Users\William.CubaStudio2019.3\config\cuba-studio64.exe.vmoptions -Djava.library.path=C:\Program Files\Haulmont\CUBA Studio 2019.3\jbr\bin;C:\Program Files\Haulmont\CUBA Studio 2019.3\jbr\bin\server -Didea.platform.prefix=Idea -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=CubaStudio2019.3 -XX:ErrorFile=C:\Users\William\java_error_in_studio_%p.log -XX:HeapDumpPath=C:\Users\William\java_error_in_studio.hprof
2020-08-05 16:32:13,271 [ 93] INFO - #com.intellij.idea.Main - charsets: JNU=Cp1252 file=Cp1252
2020-08-05 16:32:13,370 [ 192] INFO - ntellij.idea.ApplicationLoader - CPU cores: 8; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@3577d868[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@657bddb1
2020-08-05 16:32:13,523 [ 345] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 333 ms
2020-08-05 16:32:13,527 [ 349] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2020-08-05 16:32:13,591 [ 413] INFO - llij.ide.plugins.PluginManager - Plugin “Groovy” misses optional descriptor duplicates-groovy.xml
2020-08-05 16:32:13,593 [ 415] INFO - llij.ide.plugins.PluginManager - Plugin “Groovy” misses optional descriptor duplicates-detection-groovy.xml
2020-08-05 16:32:13,747 [ 569] INFO - llij.ide.plugins.PluginManager - Plugin “Java” misses optional descriptor profiler-java.xml
2020-08-05 16:32:13,826 [ 648] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Bytecode Viewer (193.7288.140), CUBA (14.0-193), ChangeReminder (193.7288.140), Configuration Script (193.7288.140), Copyright (193.7288.140), Coverage (193.7288.140), Eclipse Interoperability (193.7288.140), EditorConfig (193.7288.140), Git (193.7288.140), GitHub (193.7288.140), Gradle (193.7288.140), Gradle-Java (193.7288.140), Gradle-Maven (193.7288.140), Groovy (193.7288.140), IDEA CORE (193.7288.140), IntelliLang (193.7288.140), JUnit (193.7288.140), Java (193.7288.140), Java Bytecode Decompiler (193.7288.140), Java IDE Customization (193.7288.140), Java Internationalization (193.7288.140), Java Stream Debugger (193.7288.140), JavaFX (193.7288.140), Kotlin (1.3.61-release-IJ2019.3-1), Machine Learning Code Completion (193.7288.140), Markdown (193.7288.140), Maven (193.7288.140), Mercurial (193.7288.140), Properties (193.7288.140), Settings Repository (193.7288.140), Shell Script (193.7288.140), Subversion (193.7288.140), Task Management (193.7288.140), Terminal (193.7288.140), TestNG (193.7288.140), TextMate bundles (193.7288.140), XPathView + XSLT (193.7288.140), XSLT Debugger (193.7288.140), YAML (193.7288.140)
2020-08-05 16:32:14,273 [ 1095] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=1720
2020-08-05 16:32:14,284 [ 1106] INFO - tellij.util.io.FileChannelUtil - un-interruptible FileChannel-s will be used for indexes
2020-08-05 16:32:14,333 [ 1155] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0
2020-08-05 16:32:14,410 [ 1232] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2020-08-05 16:32:14,459 [ 1281] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\Haulmont\CUBA Studio 2019.3\bin\fsnotifier64.exe
2020-08-05 16:32:14,460 [ 1282] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2020-08-05 16:32:14,490 [ 1312] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2020-08-05 16:32:14,508 [ 1330] INFO - gs.impl.UpdateCheckerComponent - channel: release
2020-08-05 16:32:15,175 [ 1997] INFO - pl$FileIndexDataInitialization - Initialization done: 813
2020-08-05 16:32:15,297 [ 2119] INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings.
2020-08-05 16:32:15,359 [ 2181] INFO - exImpl$StubIndexInitialization - Initialization done: 184
2020-08-05 16:32:16,744 [ 3566] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2020-08-05 16:32:17,780 [ 4602] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 576ms; general responsiveness: ok; EDT responsiveness: ok
2020-08-05 16:32:17,870 [ 4692] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider
2020-08-05 16:32:19,592 [ 6414] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 2658ms; general responsiveness: ok; EDT responsiveness: 1/4 sluggish, 1/4 very slow
2020-08-05 16:32:19,665 [ 6487] INFO - tartup.impl.StartupManagerImpl - C:/Users/William/StudioProjects/cuba-petclinic-master/.idea case-sensitivity: expected=false actual=false
2020-08-05 16:32:19,813 [ 6635] INFO - tor.impl.FileEditorManagerImpl - Project opening took 5044 ms
2020-08-05 16:32:20,696 [ 7518] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 2913ms; general responsiveness: ok; EDT responsiveness: 1/3 sluggish
2020-08-05 16:32:21,807 [ 8629] INFO - CompilerWorkspaceConfiguration - Available processors: 8
2020-08-05 16:32:22,424 [ 9246] INFO - ct.resolve.CubaProjectResolver - CUBA project imported successfully: C:/Users/William/StudioProjects/cuba-petclinic-master
2020-08-05 16:32:22,424 [ 9246] INFO - io.backend.model.StudioProject - StudioProject.incModificationCount
2020-08-05 16:32:22,452 [ 9274] INFO - nd.maven.RemoteMavenRepository - [external_req] Load file content https://dl.bintray.com/cuba-platform/main/com/haulmont/cuba/cuba-global/maven-metadata.xml
2020-08-05 16:32:23,843 [ 10665] WARN - DbmsConnectionExceptionHandler - HSQLDB connection error
com.haulmont.studio.backend.exceptions.HsqlConnectionException: java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at com.haulmont.studio.backend.ed.ddl.DbManager.dbExists(DbManager.java:257)
at com.haulmont.studio.intellij.project.resolve.CubaProjectResolver$1.run(CubaProjectResolver.java:256)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:888)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.lambda$run$0(CoreProgressManager.java:402)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:221)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:402)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCConnection.(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at com.haulmont.studio.backend.ed.ddl.DbManager.openConnection(DbManager.java:286)
at com.haulmont.studio.backend.ed.ddl.DbManager.dbExists(DbManager.java:239)
… 16 more
Caused by: org.hsqldb.HsqlException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.ClientConnection.execute(Unknown Source)
at org.hsqldb.ClientConnection.(Unknown Source)
… 23 more
2020-08-05 16:32:24,156 [ 10978] INFO - onents.HTTPDescriptorsProvider - Using cached C:\Users\William.CubaStudio2019.3\system\cuba-studio\marketplace\available_app_components.json (updated at 05/08/2020 11:51)
2020-08-05 16:32:25,922 [ 12744] INFO - org.eclipse.jetty.util.log - Logging initialized @13163ms
2020-08-05 16:32:26,059 [ 12881] INFO - rg.eclipse.jetty.server.Server - jetty-9.2.20.v20161216
2020-08-05 16:32:26,164 [ 12986] INFO - tudio.backend.stat.StatManager - Sending usage statistics
2020-08-05 16:32:26,218 [ 13040] INFO - pp.StandardDescriptorProcessor - NO JSP Support for /studio, did not find org.eclipse.jetty.jsp.JettyJspServlet
2020-08-05 16:32:26,374 [ 13196] INFO - .server.handler.ContextHandler - Started o.e.j.w.WebAppContext@68c91bef{/studio,file:/C:/Users/William/.CubaStudio2019.3/system/,AVAILABLE}
2020-08-05 16:32:26,378 [ 13200] INFO - e.jetty.server.ServerConnector - Started ServerConnector@a0e7467{HTTP/1.1}{0.0.0.0:30200}
2020-08-05 16:32:26,378 [ 13200] INFO - rg.eclipse.jetty.server.Server - Started @13622ms
2020-08-05 16:32:26,464 [ 13286] INFO - tudio.backend.stat.StatManager - Event has been sent successfully 200
2020-08-05 16:32:27,207 [ 14029] INFO - .backend.ExternalConfigManager - [external_req] Load config https://files.cuba-platform.com/cuba/studio/studio-config.json
2020-08-05 16:32:27,496 [ 14318] INFO - .backend.ExternalConfigManager - [external_req] Load config https://files.cuba-platform.com/cuba/studio/studio-config.json
2020-08-05 16:32:30,839 [ 17661] INFO - ge.ExternalProjectsDataStorage - Load external projects data in 439 millis (read time: 432)
2020-08-05 16:32:33,980 [ 20802] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk-11
2020-08-05 16:32:34,003 [ 20825] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk-11
2020-08-05 16:32:34,823 [ 21645] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --init-script C:\Users\William\AppData\Local\Temp\ijresolvers.gradle
2020-08-05 16:32:45,924 [ 32746] WARN - DbmsConnectionExceptionHandler - Could not connect to MAIN
com.haulmont.studio.backend.exceptions.CubaDbmsConnectionException: java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at com.haulmont.studio.intellij.ui.dbupdate.DataStoreToDbState.get(DataStoreToDbState.java:81)
at com.haulmont.studio.intellij.runconfiguration.InteractiveDbChecker.checkDatabaseState(InteractiveDbChecker.java:109)
at com.haulmont.studio.intellij.runconfiguration.InteractiveDbChecker.canStart(InteractiveDbChecker.java:88)
at com.haulmont.studio.intellij.runconfiguration.stepbefore.CheckDataBaseTaskProvider.executeTask(CheckDataBaseTaskProvider.java:69)
at com.intellij.execution.impl.ExecutionManagerImpl.lambda$compileAndRun$0(ExecutionManagerImpl.java:334)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCConnection.(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at com.haulmont.studio.backend.ed.ddl.DbManager.openConnection(DbManager.java:286)
at com.haulmont.studio.backend.ed.ddl.DbManager.dbExists(DbManager.java:239)
at com.haulmont.studio.intellij.ui.dbupdate.DataStoreToDbState.get(DataStoreToDbState.java:54)
… 10 more
Caused by: org.hsqldb.HsqlException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.ClientConnection.execute(Unknown Source)
at org.hsqldb.ClientConnection.(Unknown Source)
… 18 more
2020-08-05 16:32:55,645 [ 42467] INFO - j.ide.actions.RevealFileAction -
Exit code 1

Am still very interested in resolving this problem. Can anyone help. I’ve posted all the details above, and despite everything I’m still getting the error msg in the Event que: HSQLDB connection error
java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space

Hi,

Well, the situation is very strange, because your HSQL is answering like the the process has no free memory, but at the same time your IDE functions fine, otherwise you wouldn’t be able to launch the run configuration.

  1. Are you sure you don’t have any HSQL server started on this local machine where you are using the CUBA Studio?

  2. Could you enable debug logging level (CUBA → Advanced → Enable DEBUG Logging Level), then restart the IDE and try to launch the CUBA Application run configuration again? Then send us a idea.log file, it will contain additional messages.

  3. Is the error the same when you try with another sample project, e.g. with this one?
    GitHub - cuba-platform/sample-sales-cuba7: CUBA Platform Sample application

Thanks for replying Alex. Firstly: I can open and run another project successfully. I started with the Planner tutorial project, which I built from scratch (rather than importing the project from Git). Following your instructions, I have enabled DEBUG logging level and restarted Studio. Then open the petclinic project. I immediately get the following Event message as before:

14:33 HSQLDB connection error
java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space

As I can only add a limited number of characters in this replay I am sending you what I think is probably the relevant section of the contents of the idea.log file:-

2020-08-06 14:33:13,081 [ 16004] DEBUG - er.TrialAddonExpirationChecker - Scheduled expiration check to 60000 mills. Reason: null
2020-08-06 14:33:13,102 [ 16025] WARN - DbmsConnectionExceptionHandler - HSQLDB connection error
com.haulmont.studio.backend.exceptions.HsqlConnectionException: java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at com.haulmont.studio.backend.ed.ddl.DbManager.dbExists(DbManager.java:257)
at com.haulmont.studio.intellij.project.resolve.CubaProjectResolver$1.run(CubaProjectResolver.java:256)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:888)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.lambda$run$0(CoreProgressManager.java:402)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:221)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:402)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCConnection.(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at com.haulmont.studio.backend.ed.ddl.DbManager.openConnection(DbManager.java:286)
at com.haulmont.studio.backend.ed.ddl.DbManager.dbExists(DbManager.java:239)
… 16 more
Caused by: org.hsqldb.HsqlException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.ClientConnection.execute(Unknown Source)
at org.hsqldb.ClientConnection.(Unknown Source)
… 23 more
2020-08-06 14:33:13,457 [ 16380] INFO - onents.HTTPDescriptorsProvider - Using cached C:\Users\William.CubaStudio2019.3\system\cuba-studio\marketplace\available_app_components.json (updated at 05/08/2020 11:51)
2020-08-06 14:33:13,667 [ 16590] DEBUG - io.backend.pm.BaseProjectsRepo - Found cuba versions: {}[]
2020-08-06 14:33:13,668 [ 16591] DEBUG - io.backend.pm.BaseProjectsRepo - Found cuba versions: {}[7.2.0, 7.2.1, 7.2.2, 7.2.7, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.0.BETA2, 7.2.0.BETA1]
2020-08-06 14:33:13,668 [ 16591] DEBUG - io.backend.pm.BaseProjectsRepo - Found cuba versions: {}[7.1.0.BETA2, 7.1.0.BETA3, 7.1.0.BETA1, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.1.6, 7.1.7]
2020-08-06 14:33:13,669 [ 16592] DEBUG - io.backend.pm.BaseProjectsRepo - Found cuba versions: {}[7.0.0.BETA1, 7.0.0.BETA3, 7.0.0.BETA4, 7.0.11, 7.0.10, 7.0.12, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.0, 7.0.9, 7.0.5, 7.0.6, 7.0.7, 7.0.8]
2020-08-06 14:33:13,669 [ 16592] DEBUG - io.backend.pm.BaseProjectsRepo - Found cuba versions: {}[6.10.3, 6.10.4, 6.10.5, 6.10.6, 6.10.0, 6.10.1, 6.10.2, 6.10.7, 6.10.8, 6.10.9, 6.10.12, 6.10.13, 6.10.14, 6.10.15, 6.10.16, 6.10.17, 6.10.18, 6.10.10, 6.10.11, 6.10.0.BETA1]
2020-08-06 14:33:13,670 [ 16593] DEBUG - io.backend.pm.BaseProjectsRepo - Loaded base projects: {}[platform-7.2.7, platform-7.2.6, platform-7.2.5, platform-7.2.4, platform-7.2.3, platform-7.2.2, platform-7.2.1, platform-7.2.0, platform-7.2.0.BETA2, platform-7.2.0.BETA1, platform-7.1.7, platform-7.1.6, platform-7.1.5, platform-7.1.4, platform-7.1.3, platform-7.1.2, platform-7.1.1, platform-7.1.0, platform-7.1.0.BETA3, platform-7.1.0.BETA2, platform-7.1.0.BETA1, platform-7.0.12, platform-7.0.11, platform-7.0.10, platform-7.0.9, platform-7.0.8, platform-7.0.7, platform-7.0.6, platform-7.0.5, platform-7.0.4, platform-7.0.3, platform-7.0.2, platform-7.0.1, platform-7.0.0, platform-7.0.0.BETA4, platform-7.0.0.BETA3, platform-7.0.0.BETA1, platform-6.10.18, platform-6.10.17, platform-6.10.16, platform-6.10.15, platform-6.10.14, platform-6.10.13, platform-6.10.12, platform-6.10.11, platform-6.10.10, platform-6.10.9, platform-6.10.8, platform-6.10.7, platform-6.10.6, platform-6.10.5, platform-6.10.4, platform-6.10.3, platform-6.10.2, platform-6.10.1, platform-6.10.0, platform-6.10.0.BETA1]
2020-08-06 14:33:15,097 [ 18020] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.themeConfig, components: true]’ in module: cuba-petclinic.petclinic-web
2020-08-06 14:33:15,098 [ 18021] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,100 [ 18023] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.ftsConfig, components: true]’ in module: cuba-petclinic.petclinic-core.main
2020-08-06 14:33:15,100 [ 18023] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,100 [ 18023] DEBUG - ta.context.AppPropertiesFacade - Module not accept for ApplicationContext
2020-08-06 14:33:15,100 [ 18023] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/web/WEB-INF/web.xml
2020-08-06 14:33:15,102 [ 18025] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.metadataConfig, components: true]’ in module: cuba-petclinic.petclinic-core
2020-08-06 14:33:15,102 [ 18025] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,102 [ 18025] DEBUG - ta.context.AppPropertiesFacade - Module not accept for ApplicationContext
2020-08-06 14:33:15,102 [ 18025] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/web/WEB-INF/web.xml
2020-08-06 14:33:15,106 [ 18029] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.webContextName, components: true]’ in module: cuba-petclinic.petclinic-web
2020-08-06 14:33:15,107 [ 18030] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,110 [ 18033] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.dataSourceProvider, components: true]’ in module: cuba-petclinic.petclinic-core
2020-08-06 14:33:15,111 [ 18034] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,111 [ 18034] DEBUG - ta.context.AppPropertiesFacade - Module not accept for ApplicationContext
2020-08-06 14:33:15,111 [ 18034] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/web/WEB-INF/web.xml
2020-08-06 14:33:15,112 [ 18035] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSourceProvider’; processed property value: ‘application’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,113 [ 18036] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.metadataConfig, components: true]’ in module: cuba-petclinic.petclinic-core
2020-08-06 14:33:15,113 [ 18036] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,114 [ 18037] DEBUG - ta.context.AppPropertiesFacade - Module not accept for ApplicationContext
2020-08-06 14:33:15,114 [ 18037] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/web/WEB-INF/web.xml
2020-08-06 14:33:15,122 [ 18045] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.metadataConfig’; processed property value: ‘com/haulmont/cuba/metadata.xml com/haulmont/addon/helium/metadata.xml com/haulmont/sample/petclinic/metadata.xml’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,124 [ 18047] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.persistenceConfig’; processed property value: ‘com/haulmont/cuba/base-persistence.xml com/haulmont/cuba/persistence.xml com/haulmont/addon/helium/persistence.xml com/haulmont/sample/petclinic/persistence.xml’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,126 [ 18049] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSource.jdbcUrl’; processed property value: ‘null’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,126 [ 18049] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSource.username’; processed property value: ‘sa’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,126 [ 18049] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSource.dbName’; processed property value: ‘petclinic’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,127 [ 18050] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSource.port’; processed property value: ‘null’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,128 [ 18051] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSource.host’; processed property value: ‘localhost’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,128 [ 18051] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSource.password’; processed property value: ‘null’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,129 [ 18052] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dataSource.connectionParams’; processed property value: ‘null’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,129 [ 18052] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.dbmsType, components: true]’ in module: cuba-petclinic.petclinic-core
2020-08-06 14:33:15,129 [ 18052] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,129 [ 18052] DEBUG - ta.context.AppPropertiesFacade - Module not accept for ApplicationContext
2020-08-06 14:33:15,129 [ 18052] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/web/WEB-INF/web.xml
2020-08-06 14:33:15,130 [ 18053] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dbmsType’; processed property value: ‘hsql’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,130 [ 18053] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.dbmsVersion, components: true]’ in module: cuba-petclinic.petclinic-core
2020-08-06 14:33:15,130 [ 18053] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:15,130 [ 18053] DEBUG - ta.context.AppPropertiesFacade - Module not accept for ApplicationContext
2020-08-06 14:33:15,130 [ 18053] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/web/WEB-INF/web.xml
2020-08-06 14:33:15,130 [ 18053] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.dbmsVersion’; processed property value: ‘null’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,133 [ 18056] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.webContextName’; processed property value: ‘petclinic’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/src/com/haulmont/sample/petclinic/web-app.properties
2020-08-06 14:33:15,134 [ 18057] DEBUG - intellij.hotdeploy.HotDeployer - build.gradle module prefix is: petclinic
2020-08-06 14:33:15,134 [ 18057] DEBUG - intellij.hotdeploy.HotDeployer - cuba.webContextName is: petclinic
2020-08-06 14:33:15,134 [ 18057] DEBUG - intellij.hotdeploy.HotDeployer - cuba.tomcat.dir is: C:/Users/William/StudioProjects/cuba-petclinic-master/deploy/tomcat
2020-08-06 14:33:15,135 [ 18058] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.metadataConfig’; processed property value: ‘com/haulmont/cuba/metadata.xml com/haulmont/addon/helium/metadata.xml com/haulmont/sample/petclinic/metadata.xml’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,136 [ 18059] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.ftsConfig’; processed property value: ‘null’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/core/src/com/haulmont/sample/petclinic/app.properties
2020-08-06 14:33:15,138 [ 18061] DEBUG - io.backend.fts.FtsConfigLoader - cuba.ftsConfig is empty
2020-08-06 14:33:15,139 [ 18062] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.themeConfig’; processed property value: '/com/haulmont/sample/petclinic/web/helium-theme.properties '; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/src/com/haulmont/sample/petclinic/web-app.properties
2020-08-06 14:33:16,020 [ 18943] INFO - org.eclipse.jetty.util.log - Logging initialized @21153ms
2020-08-06 14:33:16,102 [ 19025] INFO - rg.eclipse.jetty.server.Server - jetty-9.2.20.v20161216
2020-08-06 14:33:16,164 [ 19087] INFO - pp.StandardDescriptorProcessor - NO JSP Support for /studio, did not find org.eclipse.jetty.jsp.JettyJspServlet
2020-08-06 14:33:16,269 [ 19192] DEBUG - studio.ui.server.ServerManager - ServletContext initialized: ServletContext@o.e.j.w.WebAppContext@6f3d44d4{/studio,file:/C:/Users/William/.CubaStudio2019.3/system/,STARTING}
2020-08-06 14:33:16,300 [ 19223] INFO - .server.handler.ContextHandler - Started o.e.j.w.WebAppContext@6f3d44d4{/studio,file:/C:/Users/William/.CubaStudio2019.3/system/,AVAILABLE}
2020-08-06 14:33:16,306 [ 19229] INFO - e.jetty.server.ServerConnector - Started ServerConnector@32dd67de{HTTP/1.1}{0.0.0.0:30200}
2020-08-06 14:33:16,306 [ 19229] INFO - rg.eclipse.jetty.server.Server - Started @21441ms
2020-08-06 14:33:16,390 [ 19313] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.windowConfig, components: true]’ in module: cuba-petclinic.petclinic-web
2020-08-06 14:33:16,394 [ 19317] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.windowConfig, components: true]’ in module: cuba-petclinic.petclinic-web
2020-08-06 14:33:16,394 [ 19317] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:16,395 [ 19318] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:16,396 [ 19319] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.windowConfig’; processed property value: ‘com/haulmont/cuba/web-screens.xml com/haulmont/addon/helium/web-screens.xml com/haulmont/sample/petclinic/web-screens.xml’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/src/com/haulmont/sample/petclinic/web-app.properties
2020-08-06 14:33:16,396 [ 19319] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.windowConfig’; processed property value: ‘com/haulmont/cuba/web-screens.xml com/haulmont/addon/helium/web-screens.xml com/haulmont/sample/petclinic/web-screens.xml’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/src/com/haulmont/sample/petclinic/web-app.properties
2020-08-06 14:33:16,398 [ 19321] DEBUG - intellij.CubaModuleManagerImpl - CUBA module: gui with type: MAIN not found in IDEA modules: cuba-petclinic.petclinic-core, cuba-petclinic.petclinic-web, cuba-petclinic.petclinic-global, cuba-petclinic, cuba-petclinic.petclinic-global.main, cuba-petclinic.petclinic-core.test, cuba-petclinic.petclinic-core.main, cuba-petclinic.petclinic-web.test, cuba-petclinic.petclinic-web.main, cuba-petclinic.petclinic-global.test
2020-08-06 14:33:16,398 [ 19321] DEBUG - intellij.CubaModuleManagerImpl - CUBA module: gui with type: ROOT not found in IDEA modules: cuba-petclinic.petclinic-core, cuba-petclinic.petclinic-web, cuba-petclinic.petclinic-global, cuba-petclinic, cuba-petclinic.petclinic-global.main, cuba-petclinic.petclinic-core.test, cuba-petclinic.petclinic-core.main, cuba-petclinic.petclinic-web.test, cuba-petclinic.petclinic-web.main, cuba-petclinic.petclinic-global.test
2020-08-06 14:33:16,406 [ 19329] DEBUG - intellij.CubaModuleManagerImpl - CUBA module: desktop with type: ROOT not found in IDEA modules: cuba-petclinic.petclinic-core, cuba-petclinic.petclinic-web, cuba-petclinic.petclinic-global, cuba-petclinic, cuba-petclinic.petclinic-global.main, cuba-petclinic.petclinic-core.test, cuba-petclinic.petclinic-core.main, cuba-petclinic.petclinic-web.test, cuba-petclinic.petclinic-web.main, cuba-petclinic.petclinic-global.test
2020-08-06 14:33:16,644 [ 19567] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.windowConfig, components: false]’ in module: cuba-petclinic.petclinic-web
2020-08-06 14:33:16,651 [ 19574] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:16,651 [ 19574] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.windowConfig’; processed property value: ‘com/haulmont/sample/petclinic/web-screens.xml’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/src/com/haulmont/sample/petclinic/web-app.properties
2020-08-06 14:33:16,666 [ 19589] DEBUG - tellij.ui.cubatree.CubaSection - [perf] ProjectSection#getChildren(). Time: 0ms
2020-08-06 14:33:16,680 [ 19603] INFO - .backend.ExternalConfigManager - [external_req] Load config https://files.cuba-platform.com/cuba/studio/studio-config.json
2020-08-06 14:33:16,681 [ 19604] DEBUG - tellij.ui.cubatree.CubaSection - [perf] DataModelSection#getChildren(). Time: 15ms
2020-08-06 14:33:16,683 [ 19606] DEBUG - tellij.ui.cubatree.CubaSection - [perf] MiddlewareSection#getChildren(). Time: 0ms
2020-08-06 14:33:16,683 [ 19606] DEBUG - ta.context.AppPropertiesFacade - Find property ‘Property[cuba.menuConfig, components: true]’ in module: cuba-petclinic.petclinic-web.main
2020-08-06 14:33:16,684 [ 19607] DEBUG - ta.context.AppPropertiesFacade - Search in appContext: - C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/web/WEB-INF/web.xml
2020-08-06 14:33:16,685 [ 19608] DEBUG - .ApplicationContextServiceImpl - #resolveAppPropertyRecursively; property name: ‘cuba.menuConfig’; processed property value: ‘com/haulmont/cuba/web-menu.xml com/haulmont/addon/helium/web-menu.xml com/haulmont/sample/petclinic/web-menu.xml’; in files: C:/Users/William/StudioProjects/cuba-petclinic-master/modules/web/src/com/haulmont/sample/petclinic/web-app.properties
2020-08-06 14:33:16,687 [ 19610] DEBUG - tellij.ui.cubatree.CubaSection - [perf] GenericUiSection#getChildren(). Time: 4ms
2020-08-06 14:33:16,696 [ 19619] DEBUG - tellij.ui.cubatree.CubaSection - [perf] SecuritySection#getChildren(). Time: 8ms
2020-08-06 14:33:16,699 [ 19622] DEBUG - intellij.CubaModuleManagerImpl - CUBA module: portal with type: ROOT not found in IDEA modules: cuba-petclinic.petclinic-core, cuba-petclinic.petclinic-web, cuba-petclinic.petclinic-global, cuba-petclinic, cuba-petclinic.petclinic-global.main, cuba-petclinic.petclinic-core.test, cuba-petclinic.petclinic-core.main, cuba-petclinic.petclinic-web.test, cuba-petclinic.petclinic-web.main, cuba-petclinic.petclinic-global.test
2020-08-06 14:33:16,699 [ 19622] DEBUG - intellij.CubaModuleManagerImpl - CUBA module: front with type: ROOT not found in IDEA modules: cuba-petclinic.petclinic-core, cuba-petclinic.petclinic-web, :
…more

If the problem is not reproduced in other projects using HSQLDB as database, then the problem lays in the project, or in the working copy of the project.

Unfortunately it’s not possible to investigate the problem further without having a scenario how to reliably to reproduce the error, or without having access to the development machine. I would suggest to re-clone the project and try on the fresh copy.

Thanks Alex - before I do that, can you have a look at the build.gradle script attached and confirm that there is nothing obviously wrong with it. This is the script included in the petclinic package.

buildscript {
ext.cubaVersion = ‘7.2.7’
repositories {
maven {
url ‘https://dl.bintray.com/cuba-platform/main
}
jcenter()
}
dependencies {
classpath “com.haulmont.gradle:cuba-plugin:$cubaVersion”
}
}

def modulePrefix = ‘petclinic’

def globalModule = project(“:${modulePrefix}-global”)
def coreModule = project(“:${modulePrefix}-core”)
def webModule = project(“:${modulePrefix}-web”)

def servletApi = ‘javax.servlet:javax.servlet-api:3.1.0’

apply(plugin: ‘cuba’)

cuba {
artifact {
group = ‘com.haulmont.sample.petclinic’
version = ‘2.0’
isSnapshot = false
}
}

dependencies {
appComponent(“com.haulmont.cuba:cuba-global:$cubaVersion”)
appComponent(‘com.haulmont.addon.helium:helium-global:0.2.0’)
}

def hsql = ‘org.hsqldb:hsqldb:2.4.1’

configure([globalModule, coreModule, webModule]) {
apply(plugin: ‘java’)
apply(plugin: ‘maven’)
apply(plugin: ‘cuba’)

dependencies {
    testCompile('org.junit.jupiter:junit-jupiter-api:5.5.2')
    testCompile('org.junit.jupiter:junit-jupiter-engine:5.5.2')
    testCompile('org.junit.vintage:junit-vintage-engine:5.5.2')

    testCompile("org.assertj:assertj-core:3.11.1")

    testCompile 'org.mockito:mockito-core:3.2.4'
    testCompile 'org.mockito:mockito-junit-jupiter:3.2.4'
}

task sourceJar(type: Jar) {
    from file('src')
    classifier = 'sources'
}

artifacts {
    archives sourceJar
}

test {
    useJUnitPlatform()
}

}

configure(globalModule) {
dependencies {
if (!JavaVersion.current().isJava8()) {
runtime(‘javax.xml.bind:jaxb-api:2.3.1’)
runtime(‘org.glassfish.jaxb:jaxb-runtime:2.3.1’)
}
}

entitiesEnhancing {
    main {
        enabled = true
    }
}
buildInfo {
    appName = 'CUBA Petclinic'
    properties = [
            'License'      : 'Apache License 2.0',
            'Github'       : 'https://github.com/cuba-platform/cuba-petclinic',
            'Issue Tracker': 'https://github.com/cuba-platform/cuba-petclinic/issues'
    ]
}

}

configure(coreModule) {

configurations {
    jdbc
    dbscripts
}

dependencies {
    compile(globalModule)
    compileOnly(servletApi)
    jdbc(hsql)
    testRuntime(hsql)
}

task cleanConf(description: 'Cleans up conf directory', type: Delete) {
    delete "$cuba.appHome/${modulePrefix}-core/conf"
}

task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
    appName = "${modulePrefix}-core"
    appJars(modulePrefix + '-global', modulePrefix + '-core')
}

task startDb(type: CubaHsqlStart) {
    dbName = 'petclinic'
}

task createDb(dependsOn: assembleDbScripts, description: 'Creates local database', type: CubaDbCreation) {
}

task updateDb(dependsOn: assembleDbScripts, description: 'Updates local database', type: CubaDbUpdate) {
}

}

configure(webModule) {
configurations {
webcontent
}

dependencies {
    compileOnly(servletApi)
    compile(globalModule)

    testCompile('de.diedavids.sneferu:sneferu:0.3.1')
}

task webArchive(type: Zip) {
    from file("$buildDir/web")
    from file('web')
    classifier = 'web'
}

artifacts {
    archives webArchive
}

task deployConf(type: Copy) {
    from file('src')
    include "com/haulmont/sample/petclinic/**"
    into "$cuba.appHome/${modulePrefix}/conf"
}

task clearMessagesCache(type: CubaClearMessagesCache) {
    appName = "${modulePrefix}"
}
deployConf.dependsOn clearMessagesCache

task cleanConf(description: 'Cleans up conf directory', type: Delete) {
    delete "$cuba.appHome/${modulePrefix}/conf"
}

task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
    appName = "${modulePrefix}"
    appJars(modulePrefix + '-global', modulePrefix + '-web')
}

task buildScssThemes(type: CubaWebScssThemeCreation)

task deployThemes(type: CubaDeployThemeTask, dependsOn: buildScssThemes)

assemble.dependsOn buildScssThemes

task themesJar(type: Jar) {
    from file('themes')
    classifier = 'themes'
}

artifacts {
    archives themesJar
}

}

task undeploy(type: Delete, dependsOn: “:${modulePrefix}-web:cleanConf”) {
delete(“$cuba.tomcat.dir/shared”)
delete(“$cuba.tomcat.dir/webapps/${modulePrefix}-core”)
delete(“$cuba.tomcat.dir/webapps/${modulePrefix}”)
}

task restart(dependsOn: [‘stop’, “:${modulePrefix}-core:deploy”, “:${modulePrefix}-web:deploy”],
description: ‘Redeploys applications and restarts local Tomcat’) {
doLast {
ant.waitfor(maxwait: 6, maxwaitunit: ‘second’, checkevery: 2, checkeveryunit: ‘second’) {
not {
socket(server: ‘localhost’, port: ‘8787’)
}
}
}
}
restart.finalizedBy start.

Alex - I still get the same problem!!!

I’ve have downloaded a different version of the petclinic app - i.e. GitHub - cuba-guides/cuba-petclinic-social-login: CUBA Petclinic example: Social Login & Autoregistration. Unzipped the contents and used File | New project from Existing Sources. I then selected File | Project Structure → Project SDK and set the option to JDK-11.

When I start Studio from scratch I get this Event log message:

java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space

At this point I have just opened Studio - I haven’t attempted to run of compile the App.

What am I doing wrong - whilst I accept I’m probably just doing something silly, it sees ridiculous I can’t get an answer to this question.

Hi,
These example projects were checked, and they work correctly. The build.gradle content you’ve presented is correct.
There is nothing suspicious in the logs you’ve shown. So far we don’t have any other similar feedbacks from other users.
There must be something specific to your environment that prevents embedded HSQL from working correctly, but we don’t know what it is. I can only make blind guesses, e.g.:

  • 32-bit OS?
  • not enough RAM on the computer?
  • some environment variables?
  • firewall/antivirus restricting the Studio process?

As possible workarounds, I can suggest:

  • try to open the same projects on another computer
  • download and install IntelliJ IDEA (community edition) 2020.1 and install the Studio as a plugin to it
  • install local PostgreSQL and switch database in the sample project to Postgres. Anyway any serious development beyond demo projects wouldn’t use HSQL as main database.

Alex - I give up! I’ve tried everything you suggest and I still can’t get the PetClinic example to run. Infact I can’t move beyond the

HSQLDB connection error
java.sql.SQLTransientConnectionException: connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space
connection exception: connection failure: java.lang.OutOfMemoryError: Java heap space

I’m sure its just a basic configuration option, but as there;s no one to talk about this I can’t wast any more time on Cuba. At the very least it would be useful to have a number to call to discuss the problem with.

Sad to hear that!
It’s worth noting that CUBA ecosystem does not end with the Petclinic demo…

Especially when you confirm that: