Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    If the directory ../.foo/bar/ doesn't exist, you can't create a file there, so make sure you create the directory first.

    File f = new File("somedirname1/somedirname2/somefilename");
    if (!f.getParentFile().exists())
        f.getParentFile().mkdirs();
    

Solutions on the web

via Sonatype JIRA by Jochen Wiedmann, 1 year ago
Permission denied
via Stack Overflow by Dan
, 2 years ago
via Google Groups by Matthias Hofschen, 2 years ago
via Oracle Community by 389161, 1 year ago
via Oracle Community by 354440, 1 year ago
java.io.IOException: Permission denied	at java.io.UnixFileSystem.createFileExclusively(Native Method)	at java.io.File.checkAndCreate(File.java:1704)	at java.io.File.createTempFile(File.java:1793)	at java.io.File.createTempFile(File.java:1830)	at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:299)	at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:49)	at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:417)	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:453)	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)	at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)	at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167)	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89)	at org.eclipse.jetty.server.Server.doStart(Server.java:261)	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)	at org.sonatype.plexus.jetty.Jetty7$JettyWrapperThread.run(Jetty7.java:142)