Problem with HSQL memory

Hello everyone !

From 1 day to another I am not able to launch my app anymore; I get the message

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

If I try to lanch it I get:

Could not connect to MAIN

The project is quite simple and doesn’t use so much memory. Any idea for the root cause and mainly on the way to get it back on track ?
Any help very appreciated.

Have a great day.

Hi,
Can you please attach here the full IDE log file idea.log?
It can be found from the main menu: Help → Show log in explorer.

What version of the CUBA plugin are you using?

You can now try the latest nightly build . It is only available on IDEA 2020.2. Perhaps this problem is not there.

Hi Alexander

First sorry for the late answer: my PC went to the IT to be fully reformatted.
Then the same project I had trouble with was working correctly. But this afternoon a similar issue happened:
I have no compilation errors, the server starts and when I launch a session on the client I’ve this message:

image

HTTP status 410 - Disappeared
Type: status report
Message: session expired
Description: the requested resource is not available and no forwarding address is found.
I’m attaching below the logs

idea.log (604.4 KB)

I’m using this version
image

And the version 7.2.5 of the plugin.

Thanks for your help.

hi
may be this one helps as well ?
threadDump-20200827-165914.txt (101.5 KB)
thanks

Hi, @olivier.choquet!
Try to change port for hsql DB. See: HSQLDB connection error OutOfMemory - #7 от пользователя joel.bohnes - CUBA.Platform

If this does not help, please answer the following questions:

  1. What is the state of the project now?
  2. Still not starting up?
  3. I understand correctly, the error HSQLDB connection error is no longer reproducible?

I have no compilation errors, the server starts and when I launch a session on the client I’ve this message:

  1. During the start of the project, are there any warnings in IDEA (CUBA Studio)?
  2. What happens when you press start in IDEA (CUBA Studio)?
  3. Do you see the run/debug tool window after start application?
  4. Can you attach the contents of the catalina.out?

Also, as an experiment, try downloading a clean Intellij IDEA and installing the CUBA plugin.
Steps:

  1. Download and install Community IntelliJ IDEA. Link: Download IntelliJ IDEA: The Capable & Ergonomic Java IDE by JetBrains
  2. Start IDEA
  3. Install CUBA plugin. Instruction link: CUBA Studio Plugin Installation – CUBA Platform
  4. Restart IDEA
  5. Open your project and try to run it.

Hi
Thanks for your reply. The issue remains on my “work” computer while I can run the same project on my “Home” PC without any problems.
The HSQLDB issue is gone, but the project still doesn’t start well.

  1. I launch CUBA studio and open my project: no warning nor errors.
  2. I try to run the project. I got the expected output in the console
    image
  3. I attache the catalina.out file, but I didn’t find any weird things
    catalina.out.txt (9.8 KB)
  4. However the project doesn’t behave as expected in the browser
    image

Meaning that the requested resource isn’t available and no forwarding address is found.

I(m going to setup a brand new IntelliJ + CUBA plug-in and let you know.

Regards

Hi again.
Meanwhile I think I was able to fix my problem by changing the project’s ports. Setting 8100 instead of 6100 for the HTTP port was enough to let the program start well.
Issue fixed. May be something to add to your knowledge base in case it happens to another developer.

Thanks for your time. I think this ticket can be closed now :slight_smile:

Cheers.

O.

Thanks, for your feedback! We will improve the error message and add instructions to fix it.