Print map fails
Closed this issue · 1 comments
If you try to print the map or generate a report with the training, it fails:
The error you can view on the javascript console is:
Error while generating PDF: java.lang.IllegalStateException: unsupported protocol: 'c' at org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Protocol.java:149) at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:117) at org.apache.commons.httpclient.HttpHost.<init>(HttpHost.java:107) at org.apache.commons.httpclient.HttpMethodBase.setURI(HttpMethodBase.java:280) at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:220) at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89) at org.mapfish.print.PDFUtils.loadImageFromUrl(PDFUtils.java:245) at org.mapfish.print.PDFUtils.getImageDirect(PDFUtils.java:175) at org.mapfish.print.PDFUtils.getImage(PDFUtils.java:95) at org.mapfish.print.PDFUtils.createImage(PDFUtils.java:640) at org.mapfish.print.PDFUtils.createImageChunk(PDFUtils.java:630) at org.mapfish.print.PDFUtils.createImageChunk(PDFUtils.java:627) at org.mapfish.print.config.layout.ImageBlock.render(ImageBlock.java:92) at org.mapfish.print.PDFUtils.createCell(PDFUtils.java:598) at org.mapfish.print.PDFUtils.buildTable(PDFUtils.java:583)
Maybe could be fixed change the file path from C:\
to file://C:\\
if you change the file 'ROOT/training/data_dirs/gs_data_dir/printing/config.yaml' with this content:
https://gist.github.com/alediator/8594503
You fix this issue on the training package.