Uploaded image for project: 'ZK Charts'
  1. ZK Charts
  2. ZKCHARTS-104

missing source map errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.2.1.1
    • 7.2.1.0
    • Security Level: Jimmy

      Steps to Reproduce

      load a zul page with a chart
      open developer tools (e.g. chrome)

      Current Result

      Jan 15, 2020 12:59:46 PM org.eclipse.jetty.server.HttpChannel handleException
      WARNING: /zksupport9/zkau/web/_zv7.2.1.0/js/svg2pdf.js.map
      java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 18
      	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
      	at java.base/java.lang.String.substring(String.java:1874)
      	at org.zkoss.zk.ui.http.WpdExtendlet$WpdLoader.getRealPath(WpdExtendlet.java:803)
      	at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:104)
      	at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:42)
      	at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:227)
      	at org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:202)
      	at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134)
      	at org.zkoss.zk.ui.http.WpdExtendlet.retrieve(WpdExtendlet.java:172)
      	at org.zkoss.zk.ui.http.WpdExtendlet.service(WpdExtendlet.java:113)
      	at org.zkoss.web.util.resource.ClassWebResource.web0(ClassWebResource.java:605)
      	at org.zkoss.web.util.resource.ClassWebResource.web(ClassWebResource.java:592)
      	at org.zkoss.web.util.resource.ClassWebResource.service(ClassWebResource.java:272)
      	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:424)
      

      Expected Result

      either working source map download
      or
      meaningful error message or ignore missing source maps

      Debug Information

      there's a source mapping comment in the js code which is processed by the browser linking to a source which doesn't exist

      Workaround


            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 10 minutes
                2h 10m