Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.10 KB | None | 0 0
  1. Error while generating PDF:
  2. java.lang.NullPointerException
  3. at org.mapfish.print.map.MapChunkDrawer.renderImpl(MapChunkDrawer.java:86)
  4. at org.mapfish.print.ChunkDrawer.render(ChunkDrawer.java:55)
  5. at org.mapfish.print.ChunkDrawer.tableLayout(ChunkDrawer.java:49)
  6. at com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:786)
  7. at com.itextpdf.text.pdf.ColumnText.goComposite(ColumnText.java:1765)
  8. at com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:882)
  9. at com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:877)
  10. at com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:866)
  11. at com.itextpdf.text.pdf.PdfPRow.writeCells(PdfPRow.java:549)
  12. at com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:764)
  13. at com.itextpdf.text.pdf.ColumnText.goComposite(ColumnText.java:1765)
  14. at com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:882)
  15. at com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:877)
  16. at com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:866)
  17. at com.itextpdf.text.pdf.PdfPRow.writeCells(PdfPRow.java:549)
  18. at com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:764)
  19. at com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:889)
  20. at com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:837)
  21. at com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:815)
  22. at org.mapfish.print.config.layout.ColumnsBlock$1.render(ColumnsBlock.java:67)
  23. at org.mapfish.print.PDFCustomBlocks.addAbsoluteDrawer(PDFCustomBlocks.java:183)
  24. at org.mapfish.print.config.layout.ColumnsBlock.render(ColumnsBlock.java:56)
  25. at org.mapfish.print.config.layout.Page.render(Page.java:73)
  26. at org.mapfish.print.config.layout.MainPage.render(MainPage.java:63)
  27. at org.mapfish.print.config.layout.Layout.render(Layout.java:59)
  28. at org.mapfish.print.output.AbstractOutputFormat.doPrint(AbstractOutputFormat.java:30)
  29. at org.mapfish.print.output.PdfOutputFactory.print(PdfOutputFactory.java:58)
  30. at org.mapfish.print.MapPrinter.print(MapPrinter.java:175)
  31. at org.mapfish.print.servlet.MapPrinterServlet.doCreatePDFFile(MapPrinterServlet.java:370)
  32. at org.mapfish.print.servlet.MapPrinterServlet.createPDF(MapPrinterServlet.java:184)
  33. at org.mapfish.print.servlet.MapPrinterServlet.doPost(MapPrinterServlet.java:112)
  34. at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
  35. at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  36. at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:158)
  37. at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
  38. at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
  39. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
  40. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
  41. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
  42. at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870)
  43. at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
  44. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
  45. at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  46. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
  47. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  48. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  49. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  50. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  51. at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
  52. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  53. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  54. at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
  55. at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
  56. at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
  57. at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
  58. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  59. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  60. at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
  61. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  62. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  63. at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
  64. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
  65. at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
  66. at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
  67. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
  68. at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
  69. at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  70. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
  71. at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
  72. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
  73. at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
  74. at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  75. at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
  76. at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  77. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
  78. at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)
  79. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  80. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
  81. at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
  82. at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:84)
  83. at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  84. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
  85. at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
  86. at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
  87. at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
  88. at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
  89. at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
  90. at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
  91. at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
  92. at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:152)
  93. at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
  94. at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
  95. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  96. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  97. at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
  98. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  99. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  100. at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
  101. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  102. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  103. at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
  104. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  105. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  106. at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
  107. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  108. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  109. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
  110. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  111. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
  112. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  113. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
  114. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  115. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  116. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
  117. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  118. at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
  119. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  120. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
  121. at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
  122. at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
  123. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
  124. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
  125. at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  126. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  127. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  128. at java.lang.Thread.run(Unknown Source)
  129.  
  130. mainPage:
  131. pageSize: A4
  132. landscape: false
  133. items:
  134. # Map Title
  135. - !columns
  136. absoluteX: 96
  137. absoluteY: 830
  138. width: 235
  139. items:
  140. - !text
  141. font: Helvetica
  142. fontSize: 20
  143. align: center
  144. text: '${mapTitle}'
  145. # Map
  146. - !columns
  147. absoluteX: 12
  148. absoluteY: 778
  149. width: 403
  150. config:
  151. borderWidth: 1
  152. cells:
  153. - padding: 1
  154. items:
  155. - !map
  156. width: 401
  157. height: 712
  158. # Map overview
  159. - !columns
  160. absoluteX: 315
  161. absoluteY: 136
  162. width: 100
  163. config:
  164. borderWidth: 1
  165. cells:
  166. - padding: 1
  167. items:
  168. - !map
  169. width: 98
  170. height: 70
  171. backgroundColor: #FFFFFF
  172. overviewMap: 10
  173.  
  174. {
  175. "pages": [{
  176. "center": [80999.999999998, 125750],
  177. "langfr": "true",
  178. "dataOwner": "ch.swisstopo",
  179. "scale": 500000,
  180. "comment": "This is the first page selected by the user.",
  181. "mapTitle": "First map"
  182. }],
  183. "dpi": "75",
  184. "units": "m",
  185. "srs": "EPSG:2169",
  186. "mapTitle": "title",
  187. "comment":"comment",
  188. "rotation": 0,
  189. "minMap": "min-map-tamale.png",
  190. "layers": [{
  191. "opacity": 1,
  192. "customParams": {},
  193. "type": "Vector",
  194. "styles": {
  195. "1": {
  196. "label": "",
  197. "labelSelect": true,
  198. "pointRadius": 6,
  199. "fillColor": "#ee9900",
  200. "fillOpacity": 0.4,
  201. "hoverFillColor": "white",
  202. "hoverFillOpacity": 0.8,
  203. "strokeColor": "#ee9900",
  204. "strokeOpacity": 1,
  205. "strokeWidth": 1,
  206. "strokeLinecap": "round",
  207. "strokeDashstyle": "solid",
  208. "hoverStrokeColor": "red",
  209. "hoverStrokeOpacity": 1,
  210. "hoverStrokeWidth": 0.2,
  211. "hoverPointRadius": 1,
  212. "hoverPointUnit": "%",
  213. "pointerEvents": "visiblePainted",
  214. "cursor": "inherit"
  215. },
  216. "2": {
  217. "label": "Vérité",
  218. "labelSelect": true,
  219. "fontFamily": "Courier",
  220. "fontColor": "#FF0000",
  221. "fontSize": 28,
  222. "fontWeight": "Bold",
  223. "labelAlign": "rt",
  224. "labelXOffset": -25,
  225. "labelYOffset": -25,
  226. "pointRadius": 0,
  227. "fillColor": "#ee9900",
  228. "fillOpacity": 0.4,
  229. "hoverFillColor": "white",
  230. "hoverFillOpacity": 0.8,
  231. "strokeColor": "#ee9900",
  232. "strokeOpacity": 1,
  233. "strokeWidth": 1,
  234. "strokeLinecap": "round",
  235. "strokeDashstyle": "solid",
  236. "hoverStrokeColor": "red",
  237. "hoverStrokeOpacity": 1,
  238. "hoverStrokeWidth": 0.2,
  239. "hoverPointRadius": 1,
  240. "hoverPointUnit": "%",
  241. "pointerEvents": "visiblePainted",
  242. "cursor": "inherit"
  243. },
  244. "3": {
  245. "label": "",
  246. "labelSelect": true,
  247. "pointRadius": 6,
  248. "fillColor": "#ee9900",
  249. "fillOpacity": 0.4,
  250. "hoverFillColor": "white",
  251. "hoverFillOpacity": 0.8,
  252. "strokeColor": "#ee9900",
  253. "strokeOpacity": 1,
  254. "strokeWidth": 1,
  255. "strokeLinecap": "round",
  256. "strokeDashstyle": "solid",
  257. "hoverStrokeColor": "red",
  258. "hoverStrokeOpacity": 1,
  259. "hoverStrokeWidth": 0.2,
  260. "hoverPointRadius": 1,
  261. "hoverPointUnit": "%",
  262. "pointerEvents": "visiblePainted",
  263. "cursor": "inherit"
  264. },
  265. "4": {
  266. "label": "",
  267. "labelSelect": true,
  268. "pointRadius": 6,
  269. "fillColor": "#ee9900",
  270. "fillOpacity": 0.4,
  271. "hoverFillColor": "white",
  272. "hoverFillOpacity": 0.8,
  273. "strokeColor": "#ee9900",
  274. "strokeOpacity": 1,
  275. "strokeWidth": 1,
  276. "strokeLinecap": "round",
  277. "strokeDashstyle": "solid",
  278. "hoverStrokeColor": "red",
  279. "hoverStrokeOpacity": 1,
  280. "hoverStrokeWidth": 0.2,
  281. "hoverPointRadius": 1,
  282. "hoverPointUnit": "%",
  283. "pointerEvents": "visiblePainted",
  284. "cursor": "inherit"
  285. }
  286. },
  287. "styleProperty": "_style",
  288. "geoJson": {
  289. "type": "FeatureCollection",
  290. "features": [{
  291. "type": "Feature",
  292. "id": "OpenLayers.Feature.Vector_202",
  293. "properties": {
  294. "_style": 1,
  295. "name": "",
  296. "description": ""
  297. },
  298. "geometry": {
  299. "type": "LineString",
  300. "coordinates": [
  301. [77500, 133125],
  302. [68500, 122375],
  303. [74250, 108625],
  304. [97250, 135125],
  305. [89500, 152625],
  306. [89250, 152625]
  307. ]
  308. }
  309. },
  310. {
  311. "type": "Feature",
  312. "id": "OpenLayers.Feature.Vector_226",
  313. "properties": {
  314. "_style": 2,
  315. "name": "Hello",
  316. "description": ""
  317. },
  318. "geometry": {
  319. "type": "Point",
  320. "coordinates": [77250, 101875]
  321. }
  322. },
  323. {
  324. "type": "Feature",
  325. "id": "OpenLayers.Feature.Vector_235",
  326. "properties": {
  327. "_style": 3,
  328. "name": "",
  329. "description": ""
  330. },
  331. "geometry": {
  332. "type": "Point",
  333. "coordinates": [102750, 116875]
  334. }
  335. },
  336. {
  337. "type": "Feature",
  338. "id": "OpenLayers.Feature.Vector_277",
  339. "properties": {
  340. "_style": 4,
  341. "name": "",
  342. "description": ""
  343. },
  344. "geometry": {
  345. "type": "Polygon",
  346. "coordinates": [
  347. [
  348. [72000, 150375],
  349. [61250, 141625],
  350. [65000, 134625],
  351. [84500, 146875],
  352. [83250, 169125],
  353. [67250, 171625],
  354. [63500, 157625],
  355. [62500, 157125],
  356. [72000, 150375]
  357. ]
  358. ]
  359. }
  360. }
  361. ]
  362. },
  363. "name": "Cosmetic"
  364. },
  365. {
  366. "opacity": 1,
  367. "customParams": {},
  368. "type": "Vector",
  369. "styles": {},
  370. "styleProperty": "_style",
  371. "geoJson": {
  372. "type": "FeatureCollection",
  373. "features": []
  374. },
  375. "name": "OpenLayers.Handler.Polygon"
  376. }
  377. ],
  378. "overviewLayers": [{
  379. "type": "Image",
  380. "baseURL": "http://geoportail-luxembourg.demo-camptocamp.com//gfx/keymap.png",
  381. "opacity": 1,
  382. "extent": [40000, 44000, 114000, 149000],
  383. "pixelSize": [130, 150],
  384. "name": "overview"
  385. }],
  386. "layout": "A4 portrait",
  387. "title": "A simple example"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement