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 Google Groups by Callum Scott, 1 year ago
via GitHub by sno0k
, 2 months ago
via Google Groups by Art Clarke, 9 months ago
via blogspot.com by Unknown author, 2 years ago
via Oracle Community by 666705, 1 year ago
via oracle.com by Unknown author, 2 years ago
java.io.IOException: Permission denied	at java.io.UnixFileSystem.createFileExclusively(Native Method)	at java.io.File.createNewFile(File.java:1006)	at org.eclipse.jgit.internal.storage.file.LockFile.lock(LockFile.java:159)	at org.eclipse.jgit.internal.storage.file.RefDirectoryUpdate.tryLock(RefDirectoryUpdate.java:83)	at org.eclipse.jgit.lib.RefUpdate.updateImpl(RefUpdate.java:630)	at org.eclipse.jgit.lib.RefUpdate.update(RefUpdate.java:512)	at org.eclipse.jgit.lib.RefUpdate.update(RefUpdate.java:493)	at com.google.gerrit.server.git.VersionedMetaData$1.updateRef(VersionedMetaData.java:387)	at com.google.gerrit.server.git.VersionedMetaData$1.commitAt(VersionedMetaData.java:342)	at com.google.gerrit.server.git.VersionedMetaData$1.commit(VersionedMetaData.java:334)	at com.google.gerrit.server.git.VersionedMetaData.commit(VersionedMetaData.java:173)	at com.google.gerrit.server.account.SetDiffPreferences.writeToGit(SetDiffPreferences.java:90)	at com.google.gerrit.server.account.SetDiffPreferences.apply(SetDiffPreferences.java:74)	at com.google.gerrit.server.account.SetDiffPreferences.apply(SetDiffPreferences.java:41)	at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:329)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)	at com.google.gerrit.httpd.GetUserFilter.doFilter(GetUserFilter.java:82)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:73)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:117)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.gerrit.httpd.RequireSslFilter.doFilter(RequireSslFilter.java:68)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:136)	at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:138)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:75)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)	at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)	at org.eclipse.jetty.server.Server.handle(Server.java:499)	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)	at java.lang.Thread.run(Thread.java:745)