Server-side graphical view throws error, null pointer
-
Hello -
I'm unable to add a server-side component. The error "Error:" pops up when selecting a point. I've tried numerous points, the same points work when choosing analog graphic, other components.
Running linux, java 1.6, tomcat 6, latest stable. Below is stack trace from catalina.out
WARN 2009-10-04 14:40:20,265 (org.directwebremoting.util.CommonsLoggingOutput.warn:59) - --Erroring: batchId[7] message[java.lang.NullPointerException]
ERROR 2009-10-04 14:40:20,641 (com.serotonin.web.dwr.ExceptionDetectionFilter.doFilter:29) - DWR invocation exception
java.lang.NullPointerException
at com.serotonin.mango.view.component.ScriptComponent.addDataToModel(ScriptComponent.java:75)...
WARN 2009-10-04 14:40:20,644 (org.directwebremoting.util.CommonsLoggingOutput.warn:67) - Method execution failed:
java.lang.NullPointerException
at com.serotonin.mango.view.component.ScriptComponent.addDataToModel(ScriptComponent.java:75)...
-
The code at that line looks fine. Can you get meta points to work? If not, there's a problem with Javascript execution in your environment.
-
Sorry, but what do you mean "get meta points to work"? RE JavaScript environment, I tried on XP IE 7, MAC OS X with Safari and Firefox
I've been playing around pretty heavy with point hierarchy, I will create a new data source and data point and try again.
-
I meant create a "meta" data source, create a point in it, and give it any old script to give the point a value.
The only thing potentially wrong that i could see in the code is possible failure to create the Javascript engine, which would be an environmental thing, probably to do with the JVM. Of course, if you're not using the most current Mango version (1.6.4) that could be an issue too.