Jump to content
We've recently updated our Privacy Statement, available here ×
  • Visualize.js: Cannot read property '2' of null


    stasp
    • Version: v6.4, v6.4.3, v6.4.2, v6.4.0, v6.3, v6.3.1, v6.3.0, v6.2.1, v6.2.0 Product: JasperReports® Server

    Issue description

    A script which uses Visualize.js API fails to run and produced the following error in browser log:

    Cannot read property '2' of null
    

    Cause and solution

    This error is thrown when trying to run a script from a local file. For example, when your browser path looks something like file:///C:/Users/Desktop/index.html

    The URL in such case starts will file://* which is not supported by Visualize.js. The URL has to start from http(s)://*. This limitation is imposed for security reasons.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...