• 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

    Meta Data Source HELP

    User help
    3
    17
    7.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.
    • M
      mlohbihler
      last edited by

      What is the error message you get?

      Best regards,
      Matthew

      1 Reply Last reply Reply Quote 0
      • P
        peppemath
        last edited by

        Is an "empty" error :(, I don't understand

        I attached the snapshot

        Attachment: download link

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

          Ah. Can you check the tomcat console for a stack trace?

          Best regards,
          Matthew

          1 Reply Last reply Reply Quote 0
          • P
            peppemath
            last edited by

            I attached the section of logcatalina when i tried to check the script

            Attachment: download link

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

              What version of Mango are you using?

              Best regards,
              Matthew

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

                Assuming you're using 1.8.0, it seems that your environment cannot create a Javascript engine. The null its complaining about is the JS engine itself. What O/S and Java version are you using?

                Best regards,
                Matthew

                1 Reply Last reply Reply Quote 0
                • P
                  peppemath
                  last edited by

                  when I installed mango i used the mango-1.8.0.tar.gz packet

                  Centos release 5.3 (final)
                  java version 1.6.0

                  1 Reply Last reply Reply Quote 0
                  • P
                    peppemath
                    last edited by

                    I tried to install the old versions of "Java Runtime Environment":

                    jre-6u10-xxxxx
                    jre-6u14-xxxxx
                    jre-6u17-xxxxx
                    jre-6u18-xxxxx

                    but the error continues to exist.

                    The error, could be caused by tomcat?

                    What could be the best configuration?

                    Ciao

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

                      Script engines come as part of your java installation. There are a few things you can look for, but probably the easiest thing to do is to run something like this:

                          public static void main(String[] args) throws Exception {
                              ScriptEngineManager manager = new ScriptEngineManager();
                              for (ScriptEngineFactory factory : manager.getEngineFactories()) {
                                  System.out.println(factory.getEngineName() + " - " + factory.getLanguageName());
                              }
                          }
                      
                      

                      This will list out available script engines, at least verifying (or not) the existence of a Javascript engine.

                      Best regards,
                      Matthew

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

                        Imports:

                        import javax.script.ScriptEngineFactory;
                        import javax.script.ScriptEngineManager;
                        
                        

                        Best regards,
                        Matthew

                        1 Reply Last reply Reply Quote 0
                        • P
                          peppemath
                          last edited by

                          I launched the test

                          start test .....
                          ...... stop test

                          there aren't script engines !!!! :(

                          How must it do?

                          ciao

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

                            Weird. What does it say when you run "java -version"? Confirm that the correct java version is running. You might also check that the rt.jar file contains entries in the com.sun.script package. I've never come across this before, so i'm not sure what the solution is.

                            Best regards,
                            Matthew

                            1 Reply Last reply Reply Quote 0
                            • A
                              apl
                              last edited by

                              Maybe you have a look at the startup script of tomcat /etc/init.c/tomcat*.
                              They may do things like debian/ubuntu and change the jre/jdk there?

                              see:http://mango.serotoninsoftware.com/forum/posts/list/331.page
                              for that thread.

                              Arne

                              1 Reply Last reply Reply Quote 0
                              • P
                                peppemath
                                last edited by

                                I found the problem!
                                Excuse me, but it is my error: i'm new with java!

                                I have executed the command

                                java -version
                                

                                and i have noticed that the version was not the jre1.6.0_17 but jre1.6.0-openjdk: this because when i installed all java world I didn't set the JAVA_HOME variable and it remained the configuration of java of centos distribution (i don't know well the mechanisms of management of Centos related to java ,openJDK).
                                However, now I have setted JAVA_HOME=/usr/java/latest/ in the script to start tomcat and all work fine!!!

                                Thanks again, your advices have been very precious!!!

                                Ciao

                                peppemath

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

                                  Glad to hear. Thanks for closing off.

                                  Best regards,
                                  Matthew

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