I looked at the log files and saw many errors related to database access. I had to rebuild the database - stop the service, delete C:\madsonic\db and restart the service. It rebuilt the database and now it runs fine. The log file shows no errors so far.
Apparently the problem was not related to Java but to lack of disk space or something similar, and it incidentally happened just after some Java update.