• 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

    Server-side graphical view throws error, null pointer

    User help
    2
    5
    3.0k
    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.
    • D
      djbakerman
      last edited by

      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)

      ...

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

        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.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • D
          djbakerman
          last edited by

          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.

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

            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.

            Best regards,
            Matthew

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