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

source map server error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.0.2
    • 3.0.2
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      load the example from ZKCHARTS-71 with open developer tools (e.g Chrome):

      results in the following server side warning:

      WARNING: /zksupport86/zkau/web/_zv3.0.2/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:792)
      	at org.zkoss.web.util.resource.ExtendletLoader.load(ExtendletLoader.java:103)
      	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)
      ...
      

      Root Cause

      the JS provides a source mapping comment which causes WpdExtendlet to fail

            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 - 1 hour
                1h