Fail to evaluate expression

Hi,
I have and entity bean and a manager bean for this entity.
in this manager bean if i want to test if a value in the entity is null than raise an error.
e.g TABLE EMP(FIRSTNAME,LASTNAME)
my manager bean contains an insnatce of the entity bean
e.g EMP managed = new EMP();
if (managed.getFirstName != null) then ...
in the watch window the expression managed.getFirstName returns "?"
or when i expand in the watch window the "managed"
i get FIRSTNAME NULL STRING
Kindly advice how can to bypass this problem
Thank you in adavnce

The expression in a formula node cannot be changed at run-time. Instead, use Eval Formula Node (Analyze>Mathematics>Formula palette) or the Advanced Formula Parsing functions on the sub-palette under there. These functions are not in the LabVIEW base package.

Similar Messages

  • RPE-01038: Failed to evaluate expression null.

    Hi, gurus! :)
    Upon executing a process flow, I got the following error message:
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-01038: Failed to evaluate expression null.  Please modify the expression, redeploy and retry again.
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-02227: Cannot test Control Center user OWF_MGR. This user must match the login credentials of the evaluation location configured on owning module.
    RPE-01003: An infrastructure condition prevented the request from completing.
    java.lang.NullPointerException
    I suspect I got this error from improper use of parameters (just started using). I've searched for answers in the internet, still I am not sure how to efficiently and correctly use parameters. I'm dealing with this "literal" confusion. I would like to confirm the following:
    1. If a local parameter is an integer, how should I set the value and literal field? (say, set value to 0, literal = true?)
    2. How about for while loops? The condition is automatically a string. If I use the paramater par_loc, how should I write it (say, par_loc < 100).
    3. For Assign operators, data type is also an automatic string. What if I want to have an integer value? Or maybe an integer value thru an expression? (e.g. par_loc + 20).
    The questions above somehow summarize the activity I created.
    I'll try to do more tests and research and give you an update if I found any solution.
    Any help will be deeply appreciated. Thank you, gurus!
    Manoy :)

    Thanks, Carsten! :)
    I applied what you suggested. I still got the same error.
    1. Defined the parameter via local variable --> same error as above
    2. Defined it under start activity --> got a new error:
    RPE-02075: Oracle Workflow failed to process the execution request for Activity PF_WHILE:WHILE_LOOP. This may be because dependent objects have not yet been deployed.
    ORA-20007: The execution cannot be activated because not all required parameters have been set
    WB_RT_WORKFLOW_UTIL_10G.Execute_Any_Task(PKG_WL, WB_IK_20090327_083358_51724, 12463, RUN)
    WB_RT_WORKFLOW_UTIL_10G.Execute_Task(PKG_WL, WB_IK_20090327_083358_51724, 12463, RUN)
    Wf_Engine_Util.Function_Call(WB_RT_WORKFLOW_UTIL_10G.EXECUTE_TASK, PKG_WL, WB_IK_20090327_083358_51724, 12463, RUN)
    RPE-02083: Process PF_WHILE has errored Activities. Dependent objects may not have been deployed. You can use Oracle Workflow Monitor to retry the activities or abort the Process
    Did I miss something? :|
    Manoy

  • The Expression Engine failed to evaluate the expression for a Subportal Act

    Anyone seen this error before and know of a fix? We're getting it on our 6.1 MP1 portal after we deployed our custom sso solution.
    "62     12-19-2007     12:58:37.292     Error     Portal_UI_Infrastructure     portal.c27mynrspaxr01.webadm     .NET #32     com.plumtree.portaluiinfrastructure.condition.ConditionTypeManager     The Expression Engine failed to evaluate the expression for a Subportal Action.
    System.NullReferenceException: Object reference not set to an instance of an object.
    at com.plumtree.portaluiinfrastructure.condition.ConditionTypeManager.EvaluateExpressionForSubportalAction(AActivitySpace asCurrentSpace, IApplication application, IXPRequest xpRequest, Object ptUserSession) in e:\buildroot\Release\portalui\6.1.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\condition\ConditionTypeManager.cs:line 260 <ptLogMsgEnd>"

    As far as i know this is a harmless error. Our portal generated that message every time someone browsed /portal/server.pt.

  • Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

    Hi,
    I am trying to run a long running process, by redirecting to the LongRunningView using the code below. But its throwing exception Can anyone please help
    string strCurrentUrl = SPUtility.OriginalServerRelativeRequestPath;
    strCurrentUrl = strCurrentUrl + "?ListName=" + strListName;
    ////Initiates the Excel Import
    if (ObjdtExcel != null && ObjdtExcel.Rows.Count > 0)
    ExcelImportJob objJob = new ExcelImportJob(strTabName, ObjdtExcel, strFileExt, SPContext.Current.Site.ID, SPContext.Current.Web.ID, strWorkflow, strListName);
    objJob.Title = "Excel Import Job";
    //// Redirect the user to another page when finished.
    objJob.RedirectWhenFinished = false;
    //// Specify if the user can cancel this.
    objJob.UserCanCancel = false;
    //// Specify the refresh rate of the job, here, the page polls every 5 seconds for completion.
    objJob.MillisecondsToWaitForFinish = 15000;
    //// Finally, start the job on a web.
    objJob.Start(SPContext.Current.Web);
    string strUrl = string.Format("{0}?JobId={1}&Source={2}", PROGRESS_PAGE_URL, objJob.JobId, strCurrentUrl);
    SPUtility.Redirect(strUrl, SPRedirectFlags.Default, HttpContext.Current);
    The exception being "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
    Arjun Menon U.K

    Hi Arjun,
    Any update?
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Deployment failed: The evaluate phase failed. The Adapter used in the evalu

    Hi All,
    I am deploying an application in Oracle Application Server ( 10.1.2.0.2) made using EJB and myfaces as the front end.
    While deploying the application i am facing the following Error.
    Deployment failed: The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception.
    Resolution:
    Please call Oracle support.
    Base Exception:
    java.lang.NoClassDefFoundError
    org/apache/commons/logging/LogFactory. org/apache/commons/logging/LogFactory
    I have all the ADF libraries in applib of OC4J. Also, i have added "jsp-el-api.jar" in the applib of OC4J, as mention in reply to similar error in the forum.
    But still i am getting the same error when i try to deploy the application.
    Please help.
    Thanks and Regards,
    Vikram singh

    The one you're missing is something like commons-logging-xxx.jar. It either needs to be included in the EAR and the MANIFEST.MF, or you can put it in app-lib with the other stuff.

  • CorrelationSet with JMS: "Failed to evaluate correlation query"

    Hi,
    i want to send a message over JMS to another service and then receive the correlated message back in my BPEL process.
    The only documentation i found was http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/async.htm#CIHBIEEJ
    Here the error message:
    callbackClient (faulted)
    [2007/01/31 10:16:41] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.less
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    Failed to evaluate correlation query.
    Failed to evaluate the correlationAlias query "/ns2:Request/ns2:Header/@Nummer" on the element "oracle.xml.parser.v2.XMLElement@b0abcb"
    Please check your BPEL/WSDL source to make sure that property alias is defined correctly.
    </summary>
    </part>
    </selectionFailure>
    Here the source of invoke and receive:
    <invoke name="callbackClient" partnerLink="ControlEntrance"
    portType="ns1:Produce_Message_ptt" operation="Produce_Message"
    inputVariable="callbackClient_Produce_Message_InputVariable">
    <correlations>
    <correlation initiate="yes" set="myCorrelationSet"
    pattern="out"/>
    </correlations>
    </invoke>
    <receive name="Receive_1" partnerLink="ControlExit"
    portType="ns3:Consume_Message_ptt" operation="Consume_Message"
    variable="Receive_1_Consume_Message_InputVariable"
    createInstance="no">
    <correlations>
    <correlation initiate="no" set="myCorrelationSet"/>
    </correlations>
    </receive>
    If i change the pattern="out" to "in" (invoke-node), then the instance never completes in the BPELConsole (stops before invoke in AUDIT) but my JMS-webservice is executed....
    If pattern="in" i see in the logfile:
    ORABPEL-03813
    Failed to evaluate correlation query.
    Failed to evaluate the correlationAlias query "/ns2:Request/ns2:Header/@Nummer" on the element "oracle.xml.parser.v2.XMLElement@ccef02"
    Please check your BPEL/WSDL source to make sure that property alias is defined correctly.
    So it is the same error but my webservice is invoked and i can provide a ORABPEL-number...
    Message was edited by:
    HEWizard

    Hi,
    "The property alias was not defined correctly in the BPEL/WSDL source, or the payload is not as expected"...
    I bet on the latter... the payload is not as expected... Have you checked the payload?
    Cheers,
    Vlad

  • Failed to evaluate correlation query

    Hi,
    can anyone help me in resolving this error even after giving all the correlation properly. i am getting the following error message
    Failed to evaluate correlation query.
    Failed to evaluate the correlationAlias Query /esa:processServiceOrder/esa:ServiceOrder/esa:id" on the element "oracle.xml.parser.v2.XMLElement@29b829b8"
    Please check your BPEL/WSDL source to make sure that property alias is defined correctly.

    Hi,
    "The property alias was not defined correctly in the BPEL/WSDL source, or the payload is not as expected"...
    I bet on the latter... the payload is not as expected... Have you checked the payload?
    Cheers,
    Vlad

  • "Application failed to evaluate" during OSD after SP1 Upgrade

    Hi,
    Today i upgraded out configuration manager from 2012 rtm to 2012 sp1. The update process completet without any errors but now i'm unable to install application during osd. The first application crashed with the message:
    Installation job completed with exit code 0x00000000
    Execution status received: 16 (Application failed to evaluate )
    in smsts.log
    I know that there are some gotcha's regarding application installation during osd after sp1 upgrade. I already did the following steps:
    - Update the deployment type of the application in my osd task sequence
    - Re-Add the Network Access Account
    - Removed the first application in the task sequence to see if the problem is application related
    - Checked the option "Allow this application to be installed.." in the application properties
    - Reboot my site servers
    I can install application via Software Center without any problems, also the software updates are working normally.
    Thanks in advance

    Hi,
    How are things going? Please let us know if there is any progress.
    Regards.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Failed to evaluate package P01000XX, Error code 0x80070002

    I have a package that got deleted while it still had all the DP's listed under content location, so now I have every site flagged with a big yellow warning.
    Not really a big deal but before I could just look at all 54 secondary's at a glance and see green but now I have to select each one to check its status.
    Anyone know how to remove it like it never existing so my update status points will go back to green?

    Hi,
    Does the smsdpmon.log still say "Failed to evaluate package P01000F3, Error code 0x80070002" now?
    Please check the blog below.
    If the package is not on the site, you must remove the package from WMI on the distribution point. The namespace to connect to is root\sccmdp.
    Troubleshooting Content Mismatch Warnings on a Distribution Point in
    System Center 2012 Configuration Manager
    Best Regards,
    Joyce
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Tomcat 6 failing to evaluate EL expressions, Tomcat 6 bug?!!!!

    Can someone please tell me this is not a bug in Tomcat 6, its too obvious and to some extend unacceptable I must be doing something wrong.
    Here is my problem, I have written my own custom component to display a div tag.
    the JSP is as follows:
    <faces:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>My Custom Tags</title>
        </head>
        <body>
          <html:form>
          <h2>Cat In The Rain</h2>
          <mine:mytag title="#{index.title}">Dancing in the rain.</mine:mytag>
          </html:form>
        </body>
    </html>
    </faces:view>The tag class is given below:
    This text #{index.title} is being interpreted as Literal text which is obviously wrong, when deployed in glassfish the code works fine.
    Output text in my tomcat console is
    MyTag.setProperties(): Title is literal text....
    MyTag.setProperties(): title value= #{index.title}
    MyTag.setProperties(): Title Value expression is null
    The Tag class.
    public class MyTag extends UIComponentELTag{
      private ValueExpression title;
      public String getComponentType() {
        return "test.MyOutput";
      public String getRendererType() {
        return "test.MyRenderer";
      @Override()
      protected void setProperties(UIComponent component) {
        super.setProperties(component);
        if (null!= title){
          if (!title.isLiteralText()){
            component.setValueExpression("component.title", title);
            System.out.println("MyTag.setProperties(): Its not literal text.");
            System.out.println("MyTag.setProperties ():              title value = "+ title.getValue(getELContext()));
          else{
            component.getAttributes().put("component.title", title.getExpressionString());
            System.out.println ("MyTag.setProperties(): Title is literal text....");
            System.out.println("MyTag.setProperties():              title value= "+ title.getExpressionString());
        System.out.println ("MyTag.setProperties(): Title Value expression is "+ component.getValueExpression("component.title"));
      }The component class.
    public class MyOutput extends UICommand{
      public MyOutput(){
        setRendererType("test.MyRenderer");
      @Override()
      public String getFamily() {
        return "test.MyOutput";
    }The tld file
    <?xml version=" 1.0 " encoding="UTF-8"?>
    <taglib version="2.0"
            xmlns="http://java.sun.com/xml/ns/j2ee "
            xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
      <tlib-version> 1.0</tlib-version>
      <short-name>mine</short-name>
      <uri>http://www.my-tests.com </uri>
      <tag>
        <name>mytag</name>
        <tag-class> test.MyTag</tag-class>
        <body-content>JSP</body
    -content>
        <description></description>
        <attribute>
          <name>binding</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <deferred-value>
            <type>test.MyOutput</type>
          </deferred-value>
          <description>
              A ValueExpression that resolves to the UIComponent that corresponds
              to this tag. This binding allows the Java bean that contains the UIComponent
              to manipulate the UIComponent, its properties, and its children.
          </description>
        </attribute>
        <attribute>
          <name>title</name>
          <required>false</required>
          <deferred-value>
            <type>java.lang.String</type>
          </deferred-value>
          <description></description>
        </attribute>  
            <attribute>
                <name>rendered</name>
                <required>false</required>
                <deferred-value>
                    <type>boolean</type>
                </deferred-value>
                <description><![CDATA[ Use the rendered attribute to indicate whether the HTML code for the
    component should be included in the rendered HTML page. If set to false,
    the rendered HTML page does not include the HTML for the component. If
    the component is not rendered, it is also not processed on any subsequent
    form submission.
    ]]></description>
            </attribute>
            <attribute>
                <name>id</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
            </attribute>
      </tag>  
    </taglib>

    Set the JSP version in your TLD to 2.1.
    Meaning from:
    <taglib version="2.0"
            xmlns="http://java.sun.com/xml/ns/j2ee "
            xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">to:
    <taglib version="2.1"
            xmlns="http://java.sun.com/xml/ns/j2ee "
            xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">Edited by: rlubke on Oct 15, 2007 9:32 PM

  • Evaluate Expression from PL/SQL without passing it SQL engine

    I have an expression similar to '1+2+(3*6)/12*ROUND(10*3, 3)' which I generate programatically in VARCHAR2 variable. One way to calculate the expression is execute immediate 'select '||exp||' from dual' into lv_x; which would return the value. But my shared pool is filling up as I do this thousands of times may more in some cases. I unsuccessfully tried to use bind variables.
    1. Is there a way to temporarily turn shared pool off before the query an enable it after executing the query?
    2. Is there a simple function in PL/SQL which evaluvates the expression? If not I may have to painfully write one.
    Please advice

    few additional coffee breaks to put together a functions version (not heavily tested)
    create or replace function evaluate_expression(p_expression in varchar2) return number is
      ret_val number;
      sep varchar2(1) := '|';
      operand_stack varchar2(4000) := sep;
      operator_stack varchar2(4000) := sep;
      function_stack varchar2(4000) := sep;
      w_expression varchar2(4000) := replace(p_expression,' ','');
      i pls_integer := 1;
      next_char varchar2(1);
      num_in boolean := false;
      opr_in boolean := false;
      fun_in boolean := false;
      top_function varchar2(100);
      top_operator varchar2(100);
      left_operand varchar2(100);
      right_operand varchar2(100);
      function pop_stack(p_stack in out varchar2) return varchar2 is
        ret_val varchar2(4000);
      begin
        ret_val := rtrim(substr(p_stack,instr(p_stack,sep,-1,2) + 1),sep);
        p_stack := substr(p_stack,1,instr(p_stack,ret_val||sep,-1,1) - 1);
    dbms_output.put_line('pop stack: '''||ret_val||''' = '||substr(p_stack,1,100));
        return ret_val;
      end;
      function peek_stack(p_stack in varchar2) return varchar2 is
        ret_val varchar2(4000);
      begin
        ret_val := substr(rtrim(p_stack,sep),instr(rtrim(p_stack,sep),sep,-1) + 1);
    dbms_output.put_line('peek stack = '''||ret_val||''' '||substr(p_stack,1,100));
        return ret_val;
      end;
      procedure push_stack(p_stack in out varchar2,p_item in varchar2) is
      begin
        p_stack := replace(p_stack || p_item || sep,sep || sep,sep);
    dbms_output.put_line('push stack: '''||p_item||''' = '||substr(p_stack,1,100));
      end;
      function is_empty(p_stack in varchar2) return boolean is
        ret_val boolean;
      begin
        if p_stack = sep then
          ret_val := true;
        else
          ret_val := false;
        end if;
        return ret_val;
      end;
      function precedence(p_operator in varchar2) return pls_integer is
        ret_val pls_integer;
      begin
        if p_operator in ('+','-') then
          ret_val := 1;
        elsif p_operator in ('*','/') then
          ret_val := 2;
        elsif p_operator in ('^') then
          ret_val := 3;
        elsif p_operator in ('(') then
          ret_val := 0;
        elsif p_operator in (')') then
          ret_val := 0;
        elsif p_operator in ('F') then
          ret_val := -1;
        else
          ret_val := 4;
        end if;
        return ret_val;
      end;
      function evaluate_operation(p_left in varchar2,p_right in varchar2,p_operator in varchar2) return number is
        ret_val number := to_number(null);
      begin
        if p_operator = '+' then
          ret_val := to_number(p_left) + to_number(p_right);
        elsif p_operator = '-' then
          ret_val := to_number(p_left) - to_number(p_right);
        elsif p_operator = '*' then
          ret_val := to_number(p_left) * to_number(p_right);
        elsif p_operator = '/' then
          ret_val := to_number(p_left) / to_number(p_right);
        elsif p_operator = '^' then
          ret_val := power(to_number(p_left),to_number(p_right));
        end if;
    dbms_output.put_line('evaluate operation: ('||p_left||')'||p_operator||'('||p_right||') = '||to_char(ret_val));
        return ret_val;
      end;
      function evaluate_function(p_function in varchar2) return number is
        ret_val number := to_number(null);
      begin
        if p_function = 'ROUND' then
          right_operand := pop_stack(operand_stack);
          left_operand := pop_stack(operand_stack);
          ret_val := round(to_number(left_operand),to_number(right_operand));
    dbms_output.put_line('evaluate function: round['||left_operand||';'||right_operand||']');
        elsif p_function = 'TRUNC' then
          right_operand := pop_stack(operand_stack);
          left_operand := pop_stack(operand_stack);
          ret_val := trunc(to_number(left_operand),to_number(right_operand));
    dbms_output.put_line('evaluate function: trunc['||left_operand||';'||right_operand||']');
        end if;
        return ret_val;
      end;
      procedure treat_operand(p_char in varchar2) is
      begin
        operand_stack := operand_stack || p_char;
      end;
      procedure treat_operator(p_char in varchar2) is
        done boolean := false;
        result number;
      begin
        if num_in then
          push_stack(operand_stack,'');
          num_in := false;
        end if;
        while not done loop
          if is_empty(operator_stack) or p_char = '(' then
            push_stack(operator_stack,p_char);
            done := true;
          else
            top_operator := peek_stack(operator_stack);
            if precedence(p_char) > precedence(top_operator) then
              push_stack(operator_stack,p_char);
              done := true;
            else
              top_operator := pop_stack(operator_stack);
              if top_operator = '(' then
                done := true;
              else
                right_operand := pop_stack(operand_stack);
                left_operand := pop_stack(operand_stack);
                result := evaluate_operation(left_operand,right_operand,top_operator);
                push_stack(operand_stack,to_char(result));
              end if;
            end if;
          end if;
        end loop;
      end;
      procedure treat_function(p_char in varchar2) is
        result number;
      begin
        if p_char = '[' then  -- function parameters in square brackets
          push_stack(function_stack,'');
          push_stack(operator_stack,'F');
        elsif p_char = ';' then  -- ';' function parameter separator (my decimal point is comma)
          push_stack(operand_stack,'');
          while peek_stack(operator_stack) != 'F' loop
            top_operator := pop_stack(operator_stack);
            right_operand := pop_stack(operand_stack);
            left_operand := pop_stack(operand_stack);
            ret_val := evaluate_operation(left_operand,right_operand,top_operator);
            push_stack(operand_stack,to_char(ret_val));
          end loop;
        elsif p_char = ']' then  -- function parameters in square brackets
          push_stack(operand_stack,'');
          while peek_stack(operator_stack) != 'F' loop
            top_operator := pop_stack(operator_stack);
            right_operand := pop_stack(operand_stack);
            left_operand := pop_stack(operand_stack);
            ret_val := evaluate_operation(left_operand,right_operand,top_operator);
            push_stack(operand_stack,to_char(ret_val));
          end loop;
          top_operator := pop_stack(operator_stack);
          top_function := pop_stack(function_stack);
          ret_val := evaluate_function(upper(top_function));
          push_stack(operand_stack,to_char(ret_val));
          while peek_stack(operator_stack) not in ('F','(') loop
            top_operator := pop_stack(operator_stack);
            right_operand := pop_stack(operand_stack);
            left_operand := pop_stack(operand_stack);
            ret_val := evaluate_operation(left_operand,right_operand,top_operator);
            push_stack(operand_stack,to_char(ret_val));
          end loop;
        else
          function_stack := function_stack || p_char;
        end if;
      end;
    begin
      if substr(w_expression,1,1) = '-' then
        w_expression := '0' || w_expression;
      elsif substr(w_expression,1,1) = '+' then
        w_expression := substr(w_expression,2);
      end if;
      w_expression := replace(replace(replace(w_expression,'(-','(0-'),'(+','('),'[-','[0-');
      while true loop
        next_char := substr(w_expression,i,1);
    dbms_output.put_line('loop next_char('||to_char(i)||') = '''||next_char||'''');
        exit when next_char is null;
        if next_char in ('0','1','2','3','4','5','6','7','8','9',',') then -- ',' = decimal point
          treat_operand(next_char);
          num_in := true;
        elsif next_char in ('+','-','*','/','^','(',')') then
          treat_operator(next_char);
          if not fun_in then
            opr_in := true;
          end if;
        else
          treat_function(next_char);
          fun_in := true;
        end if;
        i := i + 1;
      end loop;
      push_stack(operand_stack,'');
      while not is_empty(operator_stack) loop
        top_operator := pop_stack(operator_stack);
        if top_operator = 'F' then
          top_function := pop_stack(function_stack);
          ret_val := evaluate_function(upper(top_function));
        else
          if top_operator != '(' then
            right_operand := pop_stack(operand_stack);
            left_operand := pop_stack(operand_stack);
            ret_val := evaluate_operation(left_operand,right_operand,top_operator);
          end if;
        end if;
        push_stack(operand_stack,to_char(ret_val));
      end loop;
      left_operand := pop_stack(operand_stack);
      ret_val := to_number(left_operand);
    dbms_output.put_line('operand_stack = '||substr(operand_stack,1,100));
    dbms_output.put_line('operator_stack = '||substr(operator_stack,1,100));
    dbms_output.put_line('function_stack = '||substr(function_stack,1,100));
    dbms_output.put_line(w_expression||' = '||to_char(ret_val));
      if is_empty(operand_stack) and is_empty(operator_stack) and is_empty(function_stack) then
        return ret_val;
      else
        return to_number(null);
      end if;
    end;Regards
    Etbin
    some comments added
    to keep it simple:
    - stacks are just strings (elements separated by pipes) on developing everything is revealed at first glance
    - function parameters are specified in square brackets separated by semicolons (comma is our decimal point)
    - dbms_output.put_line intentionally kept in place as on developing provided sufficient trace info
    Edited by: Etbin on 9.6.2009 21:07

  • How to evaluate Expression??

    Is it possible to change the expression in “Expression Node” in run-time?
    For example: User enters the expression as a string. I need to evaluate it and give the result.
    Is it possible to do that?
    Any ideas how to sole this problem??

    The expression in a formula node cannot be changed at run-time. Instead, use Eval Formula Node (Analyze>Mathematics>Formula palette) or the Advanced Formula Parsing functions on the sub-palette under there. These functions are not in the LabVIEW base package.

  • DOM Parser fails with regular expression using anchor (carat, dollar)

    I'm using version "Oracle XDK Java 9.0.4.0.0 Production"
    In trying to parse XML against schema: a regular expression fails to parse the data "8:00" with the following simple regular expression: "^.*$" (used to narrow the error)
    The error message is
    <Line 14, Column 25>: XSD-2025: (Error) Invalid text '8:00' in element: 'XYZ'
    If I remove the anchors and just have ".*", the data is parsed successfully.
    I dont understand why the parse fails when I use a anchors in the regular expression, and the java Pattern/Matcher classes succeed with the anchors?

    That "ns670" string is an xml namespace prefix. it should have a corresponding xml namespace declaration somewhere in the xml document (i'm guessing you have not shown the whole document). the actual value of an xml namespace prefix is meaningless. if you parse the xml with a namespace aware DOM parser, it should generate Nodes with the correct namespace. the namespace is the value you care about when extracting data from the document, not the namespace prefix.
    alternately, if you parse the document using a namespace aware DOM parser, you can just look for nodes based on their "local" name (the part after the ":" separator) and ignore the namespace/prefix.
    whatever you do, please do not parse the xml with a regex, see this http://stackoverflow.com/a/1732454/552759 for details (applies to xml as well).

  • Failed to fetch express pluggable data source

    Dear Friends,
    I am encountering the following the error while running the reports.
    REP-4102: Failed to fetch pluggable data source.
    java.lang.NumberFormatException: 75,000000
    I am using an Express Query in this case.
    The same report runs perfectly when connected to the NT server that has the reports server,Http server and the rdf file.The db that the reports uses is on the SOLARIS server.
    But when I use the reports server,http server and the rdf file avaiable to me on the SOLARIS server with the db also now on the same machine it does not run and gives the error.
    What could be the problem ?
    Just to add more clarity below is the URL which I use to display the report
    NT URL(This works perfectly)
    http://sa560:7778/reports/rwservlet?server=rep_sa560&report=c:\DWHReports\Man_Days_Spent.rdf&express_server="server=ora_ro_tcp:172.20.128.199/sl=-2/st=1/ct=0/st=1/"&destype=cache&desformat=htmlcss&OESHOST=172.20.128.199&SUSR_NAME='oraexp'&PASSWORD='test'
    SOLARIS URL(This does not work and gives the error)
    http://172.20.128.199:7778/reports/rwservlet?server=rep_gosisvr&report=Man_Days_Spent.rdf&express_server="server=ora_ro_tcp:172.20.128.199/sl=-2/st=1/ct=0/st=1/"&destype=cache&desformat=htmlcss&OESHOST=172.20.128.199&USR_NAME='oraexp'&PASSWORD='test'
    Regds,
    Ramakrishnan L

    Dear Oracle Reports Team,
    Can you please help me out ???
    Need your help in this regard urgently.
    Best Regards,
    Ramakrishnan L
    Dear Friends,
    I am encountering the following the error while running the reports.
    REP-4102: Failed to fetch pluggable data source.
    java.lang.NumberFormatException: 75,000000
    I am using an Express Query in this case.
    The same report runs perfectly when connected to the NT server that has the reports server,Http server and the rdf file.The db that the reports uses is on the SOLARIS server.
    But when I use the reports server,http server and the rdf file avaiable to me on the SOLARIS server with the db also now on the same machine it does not run and gives the error.
    What could be the problem ?
    Just to add more clarity below is the URL which I use to display the report
    NT URL(This works perfectly)
    http://sa560:7778/reports/rwservlet?server=rep_sa560&report=c:\DWHReports\Man_Days_Spent.rdf&express_server="server=ora_ro_tcp:172.20.128.199/sl=-2/st=1/ct=0/st=1/"&destype=cache&desformat=htmlcss&OESHOST=172.20.128.199&SUSR_NAME='oraexp'&PASSWORD='test'
    SOLARIS URL(This does not work and gives the error)
    http://172.20.128.199:7778/reports/rwservlet?server=rep_gosisvr&report=Man_Days_Spent.rdf&express_server="server=ora_ro_tcp:172.20.128.199/sl=-2/st=1/ct=0/st=1/"&destype=cache&desformat=htmlcss&OESHOST=172.20.128.199&USR_NAME='oraexp'&PASSWORD='test'
    Regds,
    Ramakrishnan L

  • Tag does not evaluate expression

    Here is the tag I am using:
    <lst:select name="country" table="country" column="name" key="id" selected="<%= rsNetwork.getString("country_id") %>" />
    The selected attribute does not return the value of "country_id" instead it results the entire expression "rsNetwork.getString("country_id")"
    What am i doing wrong??????

    In JSP 1.1 and without using JSTL u can do this in the following way
    define a variable outside the tag (either using scriplets or using struts-bean tags) and then use it inside your tag
    <%
    String selected = rsNetwork.getString("country_id");
    %>
    <lst:select name="country" table="country" column="name" key="id" selected="<%=selected%>" />
    well, your lst tag must have <rtexprvalue>true</rtexprvalue> for the selected attribute inside your tld.

Maybe you are looking for