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


Samebug tips1

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


2 weeks ago

Solutions on the web353

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

Solution icon of github
via GitHub by oncecreated
, 3 months ago
original\unknown\?? .xml (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
C:\TA\TR\LoginCaptchaChrome_22082016_1838.xlsx" (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
via Stack Overflow by dirtydan
, 1 week ago
drscqei<@.txt (The filename, directory name, or volume label syntax is incorrect)

Solution icon of github
via GitHub by 6157bhr
, 1 year ago
xxx\unknown\♀∟.xml (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
C:\temp\??.txt (The filename, directory name, or volume label syntax is incorrect)

Solution icon of github
base\unknown\? .xml (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
via Stack Overflow by nate
, 1 year ago
Names?.txt (The filename, directory name, or volume label syntax is incorrect)

Solution icon of stackoverflow
<location>\log.out (The filename, directory name, or volume label syntax is incorrect)

Solution icon of github
via GitHub by Strandkrypa
, 8 months ago
base\unknown\?.xml (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, 1 year 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
176 more bugmates