• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Data Point Details No Graph - Unlicensed Module - How to Register License?

    User help
    5
    28
    14.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BGB
      BG
      last edited by

      And when I try to open a data point on the Data Points View page I get an additional error on the Chrome developers console:

      Uncaught TypeError: this.amChart.validateData is not a function

      SerialChart.onClear @ SerialChart.js:204
      DataProvider.clear @ DataProvider.js:116
      DataProvider.load @ DataProvider.js:143
      ProviderOptionsManager.refreshProvider @ ProviderOptionsManager.js:79
      (anonymous function) @ ProviderOptionsManager.js:69
      m.extend.each @ jquery-1.11.2.min.js:2
      ProviderOptionsManager.refreshProviders @ ProviderOptionsManager.js:68
      ProviderOptionsManager.pickerChanged @ ProviderOptionsManager.js:156
      m.event.dispatch @ jquery-1.11.2.min.js:3
      r.handle @ jquery-1.11.2.min.js:3
      m.event.trigger @ jquery-1.11.2.min.js:3
      (anonymous function) @ jquery-1.11.2.min.js:3
      m.extend.each @ jquery-1.11.2.min.js:2
      m.fn.m.each @ jquery-1.11.2.min.js:2
      m.fn.extend.trigger @ jquery-1.11.2.min.js:3
      TimePresetPicker.setPreset @ TimePresetPicker.js:227
      TimePresetPicker.presetPickerChanged @ TimePresetPicker.js:192
      d.(anonymous function).a @ aspect.js:3
      (anonymous function) @ _FormWidgetMixin.js:6
      (anonymous function) @ lang.js:6
      (anonymous function) @ _WidgetBase.js:16
      (anonymous function) @ lang.js:6

      I hope this helps.

      Brian

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by phildunlap

        Hi Brian,

        Could you check a few things for me? Can you clear your browser's cache (Ctrl + Shift + Del in chrome), and confirm that the 'dashboards' and 'mangoAPI' modules are installed and loaded?

        Also, I edited out the ip address.

        1 Reply Last reply Reply Quote 0
        • BGB
          BG
          last edited by BG

          Hello Phil,
          Thank you for catching that IP for me.

          Yes the dashboards (ver 1.1.2) and MangoAPI (ver 1.1.4) are installed and loaded. I can see in the ma.log file that they both loaded.

          By the way the "None Events" are still accumulating since I set the system setting to "do not log"

          Thanks for checking this.

          Brian

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            Those should work. I haven't been able to reproduce yet. I am wondering why the URL for the chart goes to amcharts.serial.js

            Watching my page load, I request /resources/amcharts/serial.js

            I guess I would try (testing any changes before advancing)... 1) confirm your env.properties has "rest.enabled=true" 2) delete your Mango/work/jsp directory, 3) reinstall the dashboards module.

            1 Reply Last reply Reply Quote 0
            • M
              mihairosu
              last edited by

              Phil,

              I haven't had a chance to follow through on your suggestions yet, been very busy here. Are you replying to my situation or BG's?

              I'll let you know when I get around to it, otherwise.

              1 Reply Last reply Reply Quote 0
              • phildunlapP
                phildunlap
                last edited by

                BG's, sorry. Did you have the similar output in your developer console? (Ctrl + Shift + i in chrome)

                1 Reply Last reply Reply Quote 0
                • M
                  mihairosu
                  last edited by

                  I'll get back to you later during the week probably with that information.

                  1 Reply Last reply Reply Quote 0
                  • BGB
                    BG
                    last edited by BG

                    Hello Phil,
                    Thank you for your advice so far.

                    I have verified that rest.enabled=true, I have also followed your other steps (delete folder and reinstall). The problem is still there.

                    However, It made me think about the env.properties file. I have the env.properties file in our overrides folder because it has site specific settings.

                    I compared the newer env.properties with our older env.properties and there are quite a few lines that have been added since we saved ours in the overrides folder.

                    I am going to update the newer env.properties with our details and save the newer version in the overrides folder.

                    I will update this after I try to say if it worked or not.

                    Thanks

                    Brian

                    Update: env.properties was updated, instance restarted and server rebooted. There is no change to the problem. Charts are still not appearing and the chrome developers console is still showing the same errors.

                    1 Reply Last reply Reply Quote 0
                    • phildunlapP
                      phildunlap
                      last edited by

                      Huh. I can't find a reference to 'amcharts.serial.js' that would be getting requested. I am going to hunt that reference down, but I might not be able to get to it today. What kind of point is it (Numeric with analog renderer, I'm guessing)?

                      I suppose you could try a simple work around, which would be to copy the file Mango/web/resources/amcharts/serial.js to Mango/web/resources/ and name it amcharts.serial.js

                      I tried this on Mihai's system, and unfortunately I still didn't get a chart, but at least the rest of the page was happy.

                      1 Reply Last reply Reply Quote 0
                      • BGB
                        BG
                        last edited by

                        Hello Phil,
                        Sorry for the delay getting back to you on this issue.

                        The problem is affecting all of my point types in use. I am using some binary as well as numeric. From the point templates I can see they are set to plain rendering on the numeric points.

                        I have not tried your work around.

                        For the time being I have changed our users to see the older data points page. I have pointed the DGLux click behaviours to the older data points page as well.

                        Please let me know if anyone finds a solution since I do like the newer data points details page.

                        Cheers

                        Brian

                        1 Reply Last reply Reply Quote 0
                        • phildunlapP
                          phildunlap
                          last edited by phildunlap

                          Hi Brain,

                          No worries. I have good news! We resolved it was just a bad module that got into the store, hence why I couldn't find the reference or replicate with what I had on hand (I should get better about ensuring I am using the store's code at all testing customer inquiry moments. I used the build I thought was in the store, but apparently due to some heavy committing to the dashboards module around that time (our V3 dashboards module is going to have some really cool stuff in it!) a faulty version made it into the store). We will resolve this by putting in a new version either later today or early next week.

                          1 Reply Last reply Reply Quote 0
                          • M
                            mihairosu
                            last edited by

                            Excellent!

                            1 Reply Last reply Reply Quote 0
                            • BGB
                              BG
                              last edited by

                              That is great news Phil,

                              I am sure we all fully understand how that could happen.

                              Thanks for your efforts finding the solution.

                              Cheers

                              Brian

                              1 Reply Last reply Reply Quote 0
                              • phildunlapP
                                phildunlap
                                last edited by

                                There are new versions of the dashboards module and dataPointDetailsView modules. Be sure to check out the custom dashboards page (bar chart icon) to see the new possibilities to use Angular with Mango.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mihairosu
                                  last edited by

                                  The issue has been resolved. Thanks Phil.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    Pedro
                                    last edited by Pedro

                                    Ever since I upgraded to core 2.7.10 none of the charts work on any of the pages I've tested:

                                    • data_point_details.shtm
                                    • point_details.shtm
                                    • watch_list.shtm
                                    • graphical views.shtm

                                    I cleared the cache on both Firefox 45 and Chromium 48. The module versions in ma.log match the modules page, namely:

                                    Loading module 'graphicalViews', v1.6.5
                                    Loading module 'dataPointDetailsView', v1.0.5
                                    Loading module 'watchlists', v1.7.4
                                    Loading module 'dashboards', v1.1.3 
                                    Loading module 'mangoApi', v1.1.5
                                    

                                    Typical ma.log entry:

                                    ERROR (org.apache.taglibs.log.LoggerTag.doStartTag:97) - java.lang.NoSuchMethodError: org.jfree.data.Range.combineIgnoringNaN(Lorg/jfree/data/Range;Lorg/jfree/data/Range;)Lorg/jfree/data/Range;
                                            at org.jfree.data.time.TimeSeriesCollection.getRangeBounds(TimeSeriesCollection.java:742)
                                            at org.jfree.data.general.DatasetUtilities.findRangeBounds(DatasetUtilities.java:898)
                                            at org.jfree.chart.renderer.xy.AbstractXYItemRenderer.findRangeBounds(AbstractXYItemRenderer.java:785)
                                            at org.jfree.chart.renderer.xy.AbstractXYItemRenderer.findRangeBounds(AbstractXYItemRenderer.java:739)
                                            at org.jfree.chart.plot.XYPlot.getDataRange(XYPlot.java:4471)
                                            at org.jfree.chart.axis.NumberAxis.autoAdjustRange(NumberAxis.java:433)
                                            at org.jfree.chart.axis.NumberAxis.configure(NumberAxis.java:415)
                                            at org.jfree.chart.plot.XYPlot.configureRangeAxes(XYPlot.java:1257)
                                            at org.jfree.chart.plot.XYPlot.datasetChanged(XYPlot.java:4540)
                                            at org.jfree.chart.plot.XYPlot.setDataset(XYPlot.java:1396)
                                            at com.serotonin.m2m2.util.chart.ImageChartUtils.writeChart(ImageChartUtils.java:110)
                                            at com.serotonin.m2m2.util.chart.ImageChartUtils.getChartData(ImageChartUtils.java:63)
                                            at com.serotonin.m2m2.util.chart.ImageChartUtils.getChartData(ImageChartUtils.java:55)
                                            at com.serotonin.m2m2.web.servlet.ImageChartServlet.getImageData(ImageChartServlet.java:229)
                                            at com.serotonin.m2m2.web.servlet.ImageChartServlet.doGet(ImageChartServlet.java:69)
                                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
                                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
                                            at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
                                            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
                                            at com.serotonin.m2m2.web.filter.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:63)
                                            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
                                            at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
                                            at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:364)
                                            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
                                            at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
                                            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
                                            at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
                                            at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
                                            at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
                                            at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
                                            at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
                                            at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
                                            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
                                            at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
                                            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
                                            at org.eclipse.jetty.server.Server.handle(Server.java:499)
                                            at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
                                            at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
                                            at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
                                            at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
                                            at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
                                            at java.lang.Thread.run(Thread.java:745)
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • phildunlapP
                                      phildunlap
                                      last edited by

                                      Hi Pedro,

                                      Someone else had a similar issue. They resolved it by moving back to the 1.0.14 jar for jfree chart. Does this resolve your issue?

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        Pedro
                                        last edited by

                                        How exactly do I move back to jfree chart?
                                        And are you implying that some people don't have this issue?

                                        1 Reply Last reply Reply Quote 0
                                        • phildunlapP
                                          phildunlap
                                          last edited by phildunlap

                                          I don't have this issue, for instance. I haven't cornered this bug to investigate it, only vicariously.

                                          That client reported they had definitely not overridden classes and that swapping the old JAR in fixed their issue. I will email you a copy, Pedro.

                                          You would remove the 1.0.19 JAR from Mango/lib and place the 1.0.14 JAR in its place.

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            Pedro
                                            last edited by

                                            Thanks. I saved mango/lib/jfreechart-1.0.14.jar and moved jfreechart-1.0.19.jar to another directory, then restarted Mango. Now the charts are working again. Let me know if you need more information from my ma.log file.

                                            In case it's relevant, I only tested this on Linux browsers, and the Mango server is Ubuntu.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post