首页 / 浏览问题 / 云GIS / 问题详情
web打印失败错误提示
43EXP 2022年08月03日
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError
        at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006) ~[?:1.8.0_265]
        at org.mapfish.print.output.AbstractJasperReportOutputFormat.getJasperPrint(AbstractJasperReportOutputFormat.java:151) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.output.AbstractJasperReportOutputFormat.print(AbstractJasperReportOutputFormat.java:98) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.MapPrinter.print(MapPrinter.java:136) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.servlet.job.PrintJob.lambda$call$0(PrintJob.java:130) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.servlet.job.PrintJob.withOpenOutputStream(PrintJob.java:107) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.servlet.job.PrintJob.call(PrintJob.java:130) [print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.servlet.job.PrintJob.call(PrintJob.java:48) [print-lib-sm-3.23.1-59.jar:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
Caused by: java.lang.OutOfMemoryError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_265]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_265]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_265]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1005) ~[?:1.8.0_265]
        ... 11 more
Caused by: java.lang.OutOfMemoryError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_265]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_265]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_265]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720) ~[?:1.8.0_265]
        at org.mapfish.print.processor.ProcessorDependencyGraph.tryExecuteNodes(ProcessorDependencyGraph.java:61) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.processor.ProcessorDependencyGraph$ProcessorGraphForkJoinTask.lambda$compute$0(ProcessorDependencyGraph.java:210) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.processor.AbstractProcessor$Context.mdcContext(AbstractProcessor.java:240) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.processor.ProcessorDependencyGraph$ProcessorGraphForkJoinTask.compute(ProcessorDependencyGraph.java:206) ~[print-lib-sm-3.23.1-59.jar:?]
        at org.mapfish.print.processor.ProcessorDependencyGraph$ProcessorGraphForkJoinTask.compute(ProcessorDependencyGraph.java:183) ~[print-lib-sm-3.23.1-59.jar:?]
        at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_265]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_265]
Caused by: java.lang.OutOfMemoryError: Java heap space

1个回答

你好,这个报错是tomcat内存不足导致的。可以按照网上的技术博客设置tomcat内存大小。参考博客:

http://baijiahao.xitongzhijia.net/article/114356.html

https://blog.csdn.net/menghuannvxia/article/details/123111668

周萍
1
3,755EXP 2022年08月03日
好的,谢谢,已经解决了
...