首页 / 浏览问题 / 云GIS / 问题详情
Jaspersoft Studio自定义模板之后报错
43EXP 2022年08月02日
2022-8-2 12:47:58 - WARN - Error executing print job spec:
        {"layoutOptions":{"template":"A4_portrait","northArrowOptions":{"picAsUrl":"file://NorthArrow.svg"},"requestHeaders":{"requestHeaders":{"sec-fetch-mode":["cors"],"content-length":["1241"],"referer":["http://localhost:8090/iserver/services/webprinting/rest/webprinting/v1/jobs"],"sec-fetch-site":["same-origin"],"accept-language":["zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"],"cookie":["JSESSIONID=F73E6A98E51913F42A98720DE38C509C; pathType=normal; filemanagerview=list; docRoot=D%3A%5C; workspaceRoot=D:/Users/Z690/Desktop/%E5%9C%9F%E5%9C%B0%E5%88%A9%E7%94%A8%E8%A7%84%E5%88%92%E8%87%AA%E5%8A%A8%E6%89%93%E5%8D%B0%E5%9B%BE"],"origin":["http://localhost:8090"],"accept":["application/json"],"sec-ch-ua":["\" Not;A Brand\";v=\"99\", \"Microsoft Edge\";v=\"103\", \"Chromium\";v=\"103\""],"sec-ch-ua-mobile":["?0"],"sec-ch-ua-platform":["\"Windows\""],"host":["localhost:8090"],"connection":["keep-alive"],"content-type":["application/json"],"accept-encoding":["gzip, deflate, br"],"user-agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71"],"sec-fetch-dest":["empty"]}},"subTitle":"图幅号:F50G013046(1:10000标准分幅)","templateName":"A4_portrait2","author":"陈艺娴","title":"汕头市澄海区2022年度第十五批次城镇建设用地2020年度土地利用现状图(局部)"},"exportOptions":{"format":"pdf","scale":1.0E-4,"dpi":200},"content":{"type":"WEBMAP","value":{"maxScale":6.922910011716541E-6,"scaleDenominator":10000,"center":{"x":3.948082869E7,"y":2604466.76},"rotation":0,"layers":[{"layerType":"TILE","name":"DLTB_20LNG_GJHD@土地利用","url":"http://localhost:8090/iserver/services/map-TuLiLiYong/rest/maps/DLTB_20LNG_GJHD@土地利用"}],"description":"","projection":"EPSG:4527","minScale":1.6901635716030298E-9,"title":"china_point","dpi":200,"version":"2.0.0"}}}
9c83b899-b195-4a75-9b86-6ddd754993f1@068caac4-4e0b-48f3-9db7-f3814c29fe97
org.locationtech.jts.util.AssertionFailedException: The following parameters are declared in A4_portrait2.jrxml but are not output values of processors or attributes.
Either remove the references or update the configuration so that all the parameters are available for the report.

        * mapSubReport2
        * copyright
        * scalebarGraphic
        * legendDataSource
        * legendSubReport

        at org.mapfish.print.output.AbstractJasperReportOutputFormat.assertNoError(AbstractJasperReportOutputFormat.java:320)
        at org.mapfish.print.output.AbstractJasperReportOutputFormat.checkRequiredValues(AbstractJasperReportOutputFormat.java:305)
        at org.mapfish.print.output.AbstractJasperReportOutputFormat.getJasperPrint(AbstractJasperReportOutputFormat.java:173)
        at org.mapfish.print.output.AbstractJasperReportOutputFormat.print(AbstractJasperReportOutputFormat.java:98)
        at org.mapfish.print.MapPrinter.print(MapPrinter.java:136)
        at org.mapfish.print.servlet.job.PrintJob.lambda$call$0(PrintJob.java:130)
        at org.mapfish.print.servlet.job.PrintJob.withOpenOutputStream(PrintJob.java:107)
        at org.mapfish.print.servlet.job.PrintJob.call(PrintJob.java:130)
        at org.mapfish.print.servlet.job.PrintJob.call(PrintJob.java:48)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
问题关闭原因: 问题已经解决,后续没有价值,所以关闭

1个回答

您好,您是在iserver里面请求的还是在前端设置参数打印的呢?
3,143EXP 2022年08月02日
你好,问题已经解决了,谢谢
...