Data Point Details No Graph - Unlicensed Module - How to Register License?
-
Also you can open it in Chrome and turn on Developer tools to see any page errors in the console.
-
Hello Joel,
I have tried the same page on Firefox Ver 44, Chrome 48 and after update on Chrome 49. They all display the same. No Charts and the increasing "None Events".I have checked the events list and there are no "None Events" listed. The number of "None Events" far exceeds my total number of events.
I have checked the events table and the level zero events are recent ones from the last few days and is called "Maximum Alarm Level Changed", I assume this is when I was changing alarm levels for testing. Again the level zero events in the table only number at 8158, far less than the 100K plus I saw on the data point details page.
When I look at the event handlers page, under system events there is a line with out a flag called "Maximum Alarm Level Changed". I have now set that to "Do Not Log" in the system settings page.
I opened the developers console on Chrome as you suggested and this is what was shown on the console when the data points details page was opened:
Warning: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Warning: The XMLHttpRequest progress event property 'position' is deprecated. Please use 'loaded' instead.
Error: GET http://[ip:port]/audio/information.mp3 404 (Not Found)
Level1 Sound Failed to loadError: GET http://[ip:port]/resources/amcharts.serial.js
e.load @ require.js:34#
h.load @ require.js:29
Z.load @ require.js:18
Z.fetch @ require.js:18
Z.check @ require.js:20
Z.enable @ require.js:23
h.enable @ require.js:28
(anonymous function) @ require.js:23
(anonymous function) @ require.js:8
v @ require.js:7
Z.enable @ require.js:22
Z.init @ require.js:17
(anonymous function) @ require.js:27Error: Uncaught Error: Script error for: amcharts.serial
http://requirejs.org/docs/errors.html#scripterror
B @ require.js:8
h.onScriptError @ require.js:30I am not a programmer so am not sure what any of this means.
Do I need to update java?
Thanks for your help.
Brian
-
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:6I hope this helps.
Brian
-
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.
-
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
-
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.
-
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.
-
BG's, sorry. Did you have the similar output in your developer console? (Ctrl + Shift + i in chrome)
-
I'll get back to you later during the week probably with that information.
-
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.
-
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.
-
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
-
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.
-
Excellent!
-
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
-
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.
-
The issue has been resolved. Thanks Phil.
-
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)
-
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?
-
How exactly do I move back to jfree chart?
And are you implying that some people don't have this issue?