Vert.x - Cache

Java Conceptuel Diagram

Static cache

See static cache

Support

java.lang.IllegalStateException: Failed to create cache dir

20:04:11.550 [main] ERROR io.vertx.core.impl.launcher.commands.RunCommand - Failed to create the vert.x instance
java.lang.IllegalStateException: Failed to create cache dir
        at io.vertx.core.file.impl.FileResolver.setupCacheDir(FileResolver.java:332) ~[bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.file.impl.FileResolver.<init>(FileResolver.java:87) ~[bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.VertxImpl.<init>(VertxImpl.java:167) ~[bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.VertxImpl.vertx(VertxImpl.java:92) ~[bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:40) ~[bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:32) ~[bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.Vertx.vertx(Vertx.java:85) ~[bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.launcher.commands.ClasspathHandler.create(ClasspathHandler.java:113) [bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.launcher.commands.BareCommand.startVertx(BareCommand.java:278) [bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.launcher.commands.BareCommand.run(BareCommand.java:192) [bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.launcher.commands.RunCommand.run(RunCommand.java:249) [bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.launcher.VertxCommandLauncher.execute(VertxCommandLauncher.java:248) [bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:402) [bytle-api-0.0.1-SNAPSHOT-all.jar:?]
        at io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch(VertxCommandLauncher.java:346) [bytle-api-0.0.1-SNAPSHOT-all.jar:?]

The user that starts the process does not have the right to create the cache directory

Possible Solution: you can specify it at the command line with the vertx.cacheDirBase property

java  -jar myVertx.jar -Dvertx.cacheDirBase=/tmp/cacheThatIWant







Share this page:
Follow us:
Task Runner