java.io.FileNotFoundException

http:\localhost\Invoices\output\file1.pdf (The filename, directory name, or volume label syntax is incorrect)


Solutions on the web12324

Solution icon of stackoverflow
http:\localhost\Invoices\output\file1.pdf (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
C:\Users\Surya's\Documents\file1.gz (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
via Stack Overflow by user3774889
, 1 year ago
file:\d:\file1.xml (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
http:\localhost:8080\leopardcreek\xxxx.pem (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
http:\localhost:8080\jbehave\storyDurations.props (The filename, directory name, or volume label syntax is incorrect)

Solution icon of web
via java.net by Unknown author, 1 year ago
http:\localhost\website\screenshots\amit1220120625_110414.PNG (The filename, directory name, or volume label syntax is incorrect)

Solution icon of web
http:\localhost:8080\leopardcreek\xxxx.pem (The filename, directory name, or volume label syntax is incorrect)

Solution icon of oraclecommunity
.\070610_080133721\PO_ _2.pdf (The filename, directory name, or volume label syntax is incorrect)

Solution icon of oraclecommunity
via Oracle Community by 807606, 4 weeks ago
http:\localhost:8080\Spaceco\SpaceCoReports\043628-05-22-2007(08-50-54 PM).pdf (The filename, directory name, or volume label syntax is incorrect)

Solution icon of web
.\070610_080133721\PO_ _2.pdf (The filename, directory name, or volume label syntax is incorrect)

Stack trace

  • java.io.FileNotFoundException: http:\localhost\Invoices\output\file1.pdf (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1118) at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1106) at Invoice.SplitPdfServlet.saveFileToRelavantFolder(SplitPdfServlet.java:174) at Invoice.SplitPdfServlet.splitPdfUsingPageNumber(SplitPdfServlet.java:127) at Invoice.SplitPdfServlet.doPost(SplitPdfServlet.java:81) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

43 times, 11 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
169 more bugmates