2 Replies Latest reply on May 4, 2017 10:46 AM by JanGLi

    Executing Outline Load Utility using Jython

    JanGLi

      Hi,


      I have created a jython script which will call my linux shell script which will further call outline load utility.

      I am able to run this script successfully on OS level.

      But when i execute my jython script from, outline load utility isn't working as it is supposed to work.

      This is my outline utility command that i am using

      . /u01/hyperion/application/user_projects/epmsystem1/Planning/planning1/OutlineLoad.sh -f:/u01/hyperion/fdmee_custom/PROD_FEED_AND_FUEL/PASSWORD.txt /A:HypUAT1 /U:sarmad /M /I:/u01/hyperion/fdmee_custom/PROD_FEED_AND_FUEL/"$filename.csv" /D:Account /TR /X:/u01/hyperion/fdmee_custom/PROD_FEED_AND_FUEL/"$filename1.exc" /L:/u01/hyperion/fdmee_custom/PROD_FEED_AND_FUEL/"$filename1.log" >> /u01/hyperion/fdmee_custom/PROD_FEED_AND_FUEL/"$filename.log"

      Nothing is being written in the file. I edit the outline load utility to echo a text, which it did. So outlineload.sh is being executed but not properly.

       

      Regards

       

      Hyperion Planning: 11.1.2.4.500

      FDMEE: 11.1.2.4.210

        • 1. Re: Executing Outline Load Utility using Jython
          JanGLi

          I tried catching the error and this is what i got

          "Unrecognized VM option '-FlightRecorder'

          Could not create the Java virtual machine."

           

          Regards

          • 2. Re: Executing Outline Load Utility using Jython
            JanGLi

            I found the solution.

             

            If you edit outlineload.sh file, a variable ${JAVA_OPTIONS} can be seen; being used in the file as a parameter.

             

            When i execute my script from OS the variable is NULL, because which java shows that the java being used is from this locaiton /usr/bin/java

            When i execute my script from fdmee the variable is not NULL,  because which java shows java being used is from this location /u01/hyperion/application/jrockit_160_37/jre/bin/java


            This difference is because shell script is being called from different interface.

             

            What i did is, i just hard coded my JAVA_OPTIONS variable to null.

            $JAVA_OPTIONS=""

            Proper way would be to add bashrc or profile or something like this at the beginning of my script. But couldn't figured it out.

             

            I have very little knowledge of linux so don't take my reasoning as absolute. But the solutions worked for me

             

            regards