java.lang.UnsupportedOperationException: Cannot parse (FILE)assets/pdf_sample.pdf as a PDF file

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

Solutions on the web

via GitHub by klabarge
, 1 year ago
Cannot parse (FILE)assets/pdf_sample.pdf as a PDF file
java.net.MalformedURLException: no protocol: assets/pdf_sample.pdf
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at qz.printer.action.PrintPDF.parseData(Unknown Source)
at qz.utils.PrintingUtilities.processPrintRequest(Unknown Source)
at qz.ws.PrintSocketClient.processMessage(Unknown Source)
at qz.ws.PrintSocketClient.onMessage(Unknown Source)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:70)
at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:68)
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver$2.run(JettyAnnotatedEventDriver.java:210)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

2 times, 1 day ago
55 times, 3 weeks ago
304 times, 1 month ago
Once, 1 month ago
Once, 3 months ago

Write tip

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