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 openxava by yerikab
, 1 year ago
java.io.IOException: No such file or directory
via openxava by ivantag
, 1 year ago
java.io.IOException: No existe el fichero o el directorio
java.io.IOException: No such file or directory	at java.io.UnixFileSystem.createFileExclusively(Native Method)	at java.io.File.createNewFile(File.java:883)	at org.openxava.util.impl.UserPreferences.createFileIfNotExist(UserPreferences.java:85)	at org.openxava.util.impl.UserPreferences.flushSpi(UserPreferences.java:72)	at java.util.prefs.AbstractPreferences.flush2(AbstractPreferences.java:1375)	at java.util.prefs.AbstractPreferences.flush(AbstractPreferences.java:1368)	at com.openxava.naviox.Modules.storeTopModules(Modules.java:255)	at com.openxava.naviox.Modules.setCurrent(Modules.java:153)	at org.apache.jsp.naviox.index_jsp._jspService(index_jsp.java:69)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:659)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:457)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)	at com.openxava.naviox.web.NaviOXServlet.doGet(NaviOXServlet.java:25)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:659)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:457)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)	at com.openxava.naviox.web.NaviOXFilter.doFilter(NaviOXFilter.java:49)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)	at java.lang.Thread.run(Thread.java:662)