Home » Java » Playframework [Java]: Error injecting constructor, java.nio.file.AccessDeniedException

Playframework [Java]: Error injecting constructor, java.nio.file.AccessDeniedException

Posted by: admin June 30, 2018 Leave a comment

Questions:

I’m getting an exception (java.nio.file.AccessDeniedException) and I don’t know the reason behind it.

Does this occur when play.http.secret.key is incorrect in prod.conf or is this a symptom of some other credential being incorrect?

Oops, cannot start the server.
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) Error injecting constructor, java.nio.file.AccessDeniedException: /tmp/playtemp5604435787006203928
  at play.api.libs.Files$DefaultTemporaryFileCreator.<init>(Files.scala:145)
  at play.api.libs.Files$DefaultTemporaryFileCreator.class(Files.scala:142)
  while locating play.api.libs.Files$DefaultTemporaryFileCreator
  while locating play.api.libs.Files$TemporaryFileCreator    
Caused by: java.nio.file.AccessDeniedException: /tmp/playtemp5604435787006203928
Answers: