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

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

Error "getElement(mango.share.users, data.userId) is null"

  • I have been using Mango for several months with no serious problems; until now.
    I attempted to update a user's password, and received the following error message when I clicked on the save icon:

    PreparedStatementCallback; SQL [update users set   username=?, password=?, email=?, phone=?, admin=?, disabled=?, homeUrl=?, receiveAlarmEmails=?,   receiveOwnAuditEvents=? where id=?]; An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'null'.; nested exception is java.sql.SQLDataException: An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'null'.

    After that I went to the "Watch list" page, and immediately receive this error:

    getElement(mango.share.users, data.userId) is null

    Consequently, I cannot share the watch list with other users because no users are shown; not even admin.
    If I attempt to edit a "Graphical view" I also receive the null error message because the share menu is displayed on the "Graphical view" edit page.
    I can create new users without seeing this message, and edit the settings for existing users. However, I cannot save any of the changes as the Callback error is displayed instead. I restarted Tomcat in the hopes that it would fix the problem, but it made no difference.

    To summarize: I can't edit users, and I can't share views.

    Any help is appreciated. I don't know where to turn from here short of a database restore, which would cause me to lose the all the new configuration work and data points since the last backup / version update.

  • Thanks for the link. I had searched for the other error message before posting, so I had not seen your helpful link.

    I backed up MangoDB when troubleshooting, and got the same error when running the backed up database under older Mango versions. For some reason, lately I could no longer get Mango to initialize when using the originally backed up MangoDB, so I had to start Mango with an empty database and import the json files to recreate my setup, and re-upload the graphical background images. Consequently, I lost all my historical data points. Actually, they're still in the backup MangoDB, but since Mango won't load when that database is used, I don't know how to retrieve that historical data, let alone import it into the new database. That data is not critical at the moment, but when historical data becomes important, it concerns me that I may not be able to retrieve it.

    I created new usernames and set their home pages, and this time I was able to update passwords of users with homepages and save without seeing the null error. However, I just got that error again when updating the admin password:

    ERROR 2011-06-01 20:57:54,121 ( - DWR invocation exception 
    	at sun.reflect.GeneratedMethodAccessor1306.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    	at java.lang.reflect.Method.invoke(
    	at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(
    	at org.directwebremoting.impl.DefaultRemoter$1.doFilter(
    	at org.directwebremoting.impl.DefaultRemoter$1.doFilter(
    	at com.serotonin.web.dwr.LocalizationFilter.doFilter(
    	at org.directwebremoting.impl.DefaultRemoter$1.doFilter(
    	at org.directwebremoting.impl.DefaultRemoter$1.doFilter(
    	at org.directwebremoting.impl.DefaultRemoter.execute(
    	at org.directwebremoting.impl.DefaultRemoter.execute(
    	at org.directwebremoting.servlet.PlainCallHandler.handle(
    	at org.directwebremoting.servlet.UrlProcessor.handle(
    	at org.directwebremoting.servlet.DwrServlet.doPost(
    	at javax.servlet.http.HttpServlet.service(
    	at javax.servlet.http.HttpServlet.service(
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    	at org.apache.catalina.core.StandardWrapperValve.invoke(
    	at org.apache.catalina.core.StandardContextValve.invoke(
    	at org.apache.catalina.core.StandardHostValve.invoke(
    	at org.apache.catalina.valves.ErrorReportValve.invoke(
    	at org.apache.catalina.core.StandardEngineValve.invoke(
    	at org.apache.catalina.connector.CoyoteAdapter.service(
    	at org.apache.coyote.http11.Http11Processor.process(
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

    This error occurred even though I had previously set a homepage for user admin.