• 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

    Error editing e-mail address

    User help
    4
    14
    4.9k
    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.
    • C
      craig
      last edited by

      the OS is windows 7. It does happen every time.

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

        Sorry, by "reproduceable", i meant not reproduceable in a development environment.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • C
          craig
          last edited by

          on my local machine it is reproduceable if you would like me to test any patches

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

            Unfortunately, the UserDao class has undergone changes for multiple purposes, so i can't just send you a class file. But if you're feeling ambitious, you could modify the code by changing the updateUser method to that below. I have not tested this in 1.12.4, so ymmv.

                void updateUser(User user) {
                    // Potential fix for "An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'null'"
                    if (user.getPhone() == null)
                        user.setPhone("");
                    if (user.getHomeUrl() == null)
                        user.setHomeUrl("");
            
                    try {
                        ejt.update(
                                USER_UPDATE,
                                new Object[] { user.getUsername(), user.getPassword(), user.getEmail(), user.getPhone(),
                                        boolToChar(user.isAdmin()), boolToChar(user.isDisabled()), user.getHomeUrl(),
                                        user.getReceiveAlarmEmails(), boolToChar(user.isReceiveOwnAuditEvents()),
                                        user.getId() }, new int[] { Types.VARCHAR, Types.VARCHAR,
                                        Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.INTEGER,
                                        Types.VARCHAR, Types.INTEGER });
                        saveRelationalData(user);
                    }
                    catch (DataIntegrityViolationException e) {
                        // Log some information about the user object.
                        LOG.error("Error updating user: " + user, e);
                        throw e;
                    }
                }
            
            

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • C
              craig
              last edited by

              that fixed it. thanks.

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

                Awesome. Thanks Craig.

                Best regards,
                Matthew

                1 Reply Last reply Reply Quote 0
                • V
                  Victorino
                  last edited by

                  Can you make the updated library available for 1.12.4? I'm also having the same error when changing data point permissions on any users.

                  Actually I get the error when changing anything on a user.

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

                    You should consider using Mango Automation. http://m2m2.serotoninsoftware.com/

                    Best regards,
                    Matthew

                    1 Reply Last reply Reply Quote 0
                    • C
                      craig
                      last edited by

                      I have attached the patched UserDao classes off of an instance of 1.12.4.
                      Good Luck

                      @Victorino said:

                      Can you make the updated library available for 1.12.4?

                      Attachment: download link

                      1 Reply Last reply Reply Quote 0
                      • L
                        lordportux
                        last edited by

                        I had the same problem in mango 1.12.3 and I solved it using the Derby.jar file from mango 1.12.5

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