Cassandra error while starting application


(Mghildiy) #1

Hi,

When I try to start my lagom services with: mvn lagom:runAll, I get following error:

11/04 11:19:33 ERROR[NonPeriodicTasks:1] o.a.c.d.l.LogTransaction - Unable to delete D:\projects\lagom\java-based\lagom-test\target\embedded-cassandra\data\system\local-7ad54392bcdd35a684174e047860b377\mc-6
-big-Data.db
java.nio.file.AccessDeniedException: D:\projects\lagom\java-based\lagom-test\target\embedded-cassandra\data\system\local-7ad54392bcdd35a684174e047860b377\mc-6-big-Data.db
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) ~[na:na]
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) ~[na:na]
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) ~[na:na]

Moreover, I also don’t see any target folder at mentioned location.
And it used to work till recently.

What can be the cause?


(Alan Klikic) #2

@mghildiy AccessDeniedException is indicating file system access denial.
You should check access rights in D:\projects\lagom\java-based\lagom-test\target\ folder and subfolders. Match it with a running user.
Also try sbt clean that will delete all target subfolders.


(Mghildiy) #3

It turned out to be Java version issue.
Mine was 10, while 8 is needed.

Hope it helps others facing similar issue.