com.itextpdf.text.DocumentException: org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: http://a.tile.openstreetmap.org/ (spec.layers[0].baseURL has an invalid value: http://a.tile.openstreetmap.org/)

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Mapfish/Geoserver printing: layer problems

    Geographic Information Systems | 3 years ago | Jan Peters-Anders
    com.itextpdf.text.DocumentException: org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: http://a.tile.openstreetmap.org/ (spec.layers[0].baseURL has an invalid value: http://a.tile.openstreetmap.org/)
  2. 0

    Geoserver Mapfish Printing : Error while generating PDF

    Geographic Information Systems | 1 day ago | Shrikant
    org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: http://myIP:8081/geoserver/wms?SERVICE=WMS& (spec.layers[0].baseURL has an invalid value: http://myIP:8081/geoserver/wms?SERVICE=WMS&)
  3. 0

    How to print a WMTS layer using MapFish v2 (from GeoNetwork)

    Geographic Information Systems | 8 months ago | iant
    org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an invalid value: https://xxxx.xxxx.co.uk/services/xxxxxxx/wmts/os_background_bng_colour/{style}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png (Illegal character in path at index 98: https://xxxx.xxxxx.co.uk/services/xxxxxxx/wmts/os_background_bng_colour/{style}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.mapfish.print.InvalidJsonValueException

      spec.layers[0].baseURL has an invalid value: http://a.tile.openstreetmap.org/

      at org.mapfish.print.map.readers.HTTPMapReader.checkSecurity()
    2. org.mapfish.print
      MapReaderFactoryFinder.create
      1. org.mapfish.print.map.readers.HTTPMapReader.checkSecurity(HTTPMapReader.java:133)
      2. org.mapfish.print.map.readers.HTTPMapReader.<init>(HTTPMapReader.java:76)
      3. org.mapfish.print.map.readers.TileableMapReader.<init>(TileableMapReader.java:42)
      4. org.mapfish.print.map.readers.OsmMapReader.<init>(OsmMapReader.java:50)
      5. org.mapfish.print.map.readers.OsmMapReader$Factory.create(OsmMapReader.java:43)
      6. org.mapfish.print.map.readers.MapReaderFactoryFinder.create(MapReaderFactoryFinder.java:36)
      6 frames
    3. print-lib
      ChunkDrawer.tableLayout
      1. org.mapfish.print.map.MapChunkDrawer.renderImpl(MapChunkDrawer.java:120)
      2. org.mapfish.print.ChunkDrawer.render(ChunkDrawer.java:55)
      3. org.mapfish.print.ChunkDrawer.tableLayout(ChunkDrawer.java:49)
      3 frames
    4. iText, a Free Java-PDF library
      Document.add
      1. com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:786)
      2. com.itextpdf.text.pdf.ColumnText.goComposite(ColumnText.java:1765)
      3. com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:882)
      4. com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:877)
      5. com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:866)
      6. com.itextpdf.text.pdf.PdfPRow.writeCells(PdfPRow.java:549)
      7. com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:764)
      8. com.itextpdf.text.pdf.PdfPTable.writeSelectedRows(PdfPTable.java:889)
      9. com.itextpdf.text.pdf.ColumnText.goComposite(ColumnText.java:1774)
      10. com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:882)
      11. com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:877)
      12. com.itextpdf.text.pdf.ColumnText.go(ColumnText.java:866)
      13. com.itextpdf.text.pdf.PdfDocument.addPTable(PdfDocument.java:2602)
      14. com.itextpdf.text.pdf.PdfDocument.add(PdfDocument.java:727)
      15. com.itextpdf.text.Document.add(Document.java:278)
      15 frames
    5. org.mapfish.print
      Layout.render
      1. org.mapfish.print.config.layout.Page$1.add(Page.java:76)
      2. org.mapfish.print.config.layout.MapBlock.render(MapBlock.java:81)
      3. org.mapfish.print.config.layout.Page.render(Page.java:73)
      4. org.mapfish.print.config.layout.MainPage.render(MainPage.java:63)
      5. org.mapfish.print.config.layout.Layout.render(Layout.java:59)
      5 frames
    6. print-lib
      MapPrinterServlet.doPost
      1. org.mapfish.print.output.AbstractOutputFormat.doPrint(AbstractOutputFormat.java:30)
      2. org.mapfish.print.output.PdfOutputFactory.print(PdfOutputFactory.java:58)
      3. org.mapfish.print.MapPrinter.print(MapPrinter.java:173)
      4. org.mapfish.print.servlet.MapPrinterServlet.doCreatePDFFile(MapPrinterServlet.java:366)
      5. org.mapfish.print.servlet.MapPrinterServlet.createPDF(MapPrinterServlet.java:184)
      6. org.mapfish.print.servlet.MapPrinterServlet.doPost(MapPrinterServlet.java:112)
      6 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      2 frames
    8. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159)
      2. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      3. org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      4. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      5. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      6. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      7. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      7 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      2 frames
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    11. org.geoserver.filters
      ThreadLocalsCleanupFilter.doFilter
      1. org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27)
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    13. org.geoserver.filters
      SpringDelegatingFilter$Chain.doFilter
      1. org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
      1 frame
    14. org.geoserver.wms
      AnimatorFilter.doFilter
      1. org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:70)
      1 frame
    15. org.geoserver.filters
      SpringDelegatingFilter.doFilter
      1. org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)
      2. org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
      2 frames
    16. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    17. Core Platform Module
      AdvancedDispatchFilter.doFilter
      1. org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
      1 frame
    18. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    19. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
      1 frame
    20. org.geoserver.security
      GeoServerCompositeFilter$NestedFilterChain.doFilter
      1. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
      1 frame
    21. Spring Security
      FilterSecurityInterceptor.doFilter
      1. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
      2. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
      2 frames
    22. org.geoserver.security
      GeoServerCompositeFilter.doFilter
      1. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
      2. org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
      2 frames
    23. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
      1 frame
    24. org.geoserver.security
      GeoServerCompositeFilter$NestedFilterChain.doFilter
      1. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
      1 frame
    25. Spring Security
      ExceptionTranslationFilter.doFilter
      1. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
      1 frame
    26. org.geoserver.security
      GeoServerCompositeFilter.doFilter
      1. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
      2. org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
      2 frames
    27. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
      1 frame
    28. org.geoserver.security
      GeoServerAnonymousAuthenticationFilter.doFilter
      1. org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
      1 frame
    29. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
      1 frame
    30. org.geoserver.security
      GeoServerCompositeFilter$NestedFilterChain.doFilter
      1. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
      1 frame
    31. Spring Security
      BasicAuthenticationFilter.doFilter
      1. org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
      1 frame
    32. org.geoserver.security
      GeoServerBasicAuthenticationFilter.doFilter
      1. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
      2. org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
      3. org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:82)
      3 frames
    33. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
      1 frame
    34. org.geoserver.security
      GeoServerCompositeFilter$NestedFilterChain.doFilter
      1. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
      1 frame
    35. Spring Security
      SecurityContextPersistenceFilter.doFilter
      1. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
      1 frame
    36. org.geoserver.security
      GeoServerCompositeFilter.doFilter
      1. org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
      2. org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
      3. org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
      3 frames
    37. Spring Security
      FilterChainProxy.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
      2. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
      2 frames
    38. Main Module
      GeoServerSecurityFilterChainProxy.doFilter
      1. org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:134)
      1 frame
    39. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
      2 frames
    40. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    41. org.geoserver.filters
      LoggingFilter.doFilter
      1. org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
      1 frame
    42. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    43. org.geoserver.filters
      GZIPFilter.doFilter
      1. org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
      1 frame
    44. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    45. org.geoserver.filters
      SessionDebugFilter.doFilter
      1. org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:47)
      1 frame
    46. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    47. org.geoserver.filters
      FlushSafeFilter.doFilter
      1. org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:43)
      1 frame
    48. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    49. Main Module
      SetCharacterEncodingFilter.doFilter
      1. org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
      1 frame
    50. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      10 frames
    51. org.apache.coyote
      AjpProcessor.process
      1. org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
      1 frame
    52. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      2. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      2 frames
    53. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:724)
      3 frames