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

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

,

try new webdriver if you have this error with firefox while uploading files

Solutions on the web

via Stack Overflow by codeHunter
, 10 months ago
http:\localhost\Invoices\output\file1.pdf (The filename, directory name, or volume label syntax is incorrect)
via GitHub by fanqi
, 7 months ago
/usr/local/lib/node_modules/electric-cli/node_modules/._electric@2.0.0-alpha.14@electric/temp/metal/temp/metal/pages/docs/patterns/grid.soy.js (No such file or directory)
via GitHub by EmanYm
, 7 months ago
.\instances\\[modpack]\manifest.json (The system cannot find the path specified)
via Stack Overflow by Amasiatu Valentine Chidozie
, 7 months ago
‪‪‪C:\Users\Valentine\Documents\NetBeansProjects\Writer\src\Workbook.xls (The filename, directory name, or volume label syntax is incorrect)
via Stack Overflow by Belphegor
, 1 year ago
hdfs:/...path.../avroFileName.avro (No such file or directory)
via GitHub by regisd
, 1 year ago
bugreport_out/data/../raw/087-/data_USAGE (No such file or directory)
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.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1118)
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.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.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

12 times, 17 hours ago
10 times, 4 days ago
6 times, 1 week ago
28 times, 1 week ago
6 times, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.