Problem with my substitution variable.

My substitution variables don't prompt properly now. It worked fine before, but I don't know what I did to it. Here is the test code:
set define on;
connect sys/&sysPassword @&instanceName as sysdba;
execute dbms_output.put_line('this is a test');
When I tried to execute above lines in sqlplus, it didn't prompt anything, but got following result instead:
SQL> set define on;
SQL> connect sys/&sysPassword@&instanceName as sysdba;
Enter value for syspassword: execute dbms_output.put_line('this is a test');
Enter value for instancename:
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon> ::= <username>[<password>][@<connect_string>] | /
SQL>
I remember when I used substitution variables before in sqlplus worksheet, it popup a dialog for input, but it doesn't anymore.
Any ideas about this issue? Or what setting could affect the behavior? Thanks in advance.

It would work only if you put these set of statements in a .SQL file and run that file at SQL*Plus prompt:
SQL> @the_sql_script_created_above.SQL

Similar Messages

  • Error with define substitution variable in SQL

    Hi there,
    I am using PL/SQL developer and trying to define a substitution variable as follows:
    define freq = 'Weekly'
    Then later on, in my SQL statement, I used this variable in WHERE statement as follows:
    WHERE ... (&freq = 'Weekly') and ...
    But I got the "ORA-00904: "WEEKLY": invalid identifier" error.
    Where is the problem?
    Thanks in advance!

    I don't know about PL/SQL developer but in sqlplus you need single quotes around the variable.
    SQL> define freq = 'Weekly'
    SQL> select null from dual
      2  where &freq = 'Weekly';
    old   2: where &freq = 'Weekly'
    new   2: where Weekly = 'Weekly'
    where Weekly = 'Weekly'
    ERROR at line 2:
    ORA-00904: "WEEKLY": invalid identifier
    SQL> edi
    Wrote file afiedt.sql
      1  select null from dual
      2* where '&freq' = 'Weekly'
    SQL> /
    old   2: where '&freq' = 'Weekly'
    new   2: where 'Weekly' = 'Weekly'
    N
    SQL>

  • Problem with BW exit variable on range of dates

    Hi everyone:
    I have a problem with exit variables in BW, the scenary is following:
    I need to generate a ratio MTD (month to date, i mean, first day of the month to actual date), for this, I enter a date by keyboard, for example 31.12.2010 and BW must return the range 01.12.2010 - 31.12.2010. The problem is what BW returns: 31.12.2010 - 31.12.2010, i mean, repeats the same date entry by keyboard.
    For this porpuse I have a variable of interval type called "ZCALDAY" on infoobjeto 0CALDAY, and  exit variable of interval type called "ZRANGE", the code in CMOD is the following:
    DATA: L_RANGE         TYPE RRS0_S_VAR_RANGE,
                L_P_RANGE   TYPE RRS0_S_VAR_RANGE,
                L_S_RANGE   TYPE RSR_S_RANGESID.
    when 'ZRANGE'.
         BREAK-POINT.
         IF I_STEP = 2.
           CLEAR l_s_range.
           READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'ZCALDAY'.
           CONCATENATE loc_var_range-low(6) '01' INTO l_s_range-low.
           l_s_range-high = loc_var_range-low.
           l_s_range-sign    = 'I'.
           l_s_range-opt     = 'BT'.
           APPEND l_s_range TO e_t_range.
        ENDIF.
    I doing Something wrong with the variables definition or on the  code??
    I hope you can help me....
    Best regards!!!!
    Cesar.

    Thanks!!
    I think the problem is other, I check the RSRT transaction and the range is calculated ok, i mean, the range generated is 01.12.2010..31.12.2010.
    But the query does not show the data corresponding. the query shows the values of the day 31.12.2010.
    The interval are not restricting the key figure...
    I used the variable exit "ZRANGE" on the key figure restriction and the variable ZCALDAY in the filters section.
    Maybe, the variable definition is wrong (variable ZCALDAY and exit variable ZRANGE)
    Thanks!!!

  • Comma problem with global string variable

    Hi,
    I'm fiighting with comma problem for global string variable. I've on page string for example "7nndqrr52vzyb,0" and by dynamic column link I'm assigning this string to global variable. Then I'm trying to display value of that global variable on another page but I see only string till comma, nothings more. I'm not sure what I'm doing wrong because when I'm trying to assign that value normally by computation process as a constant value is fine and see on another page correct string. I'll be really glad for help.
    Thanks
    Cheers,
    Mariusz

    When it tries to display the string, it sees the comma and wants to believe the string is terminated. You could escape the , in the string or replace it with a different character..
    See this link: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#BEIGDEHF
    Thank you,
    Tony Miller
    Webster, TX
    If vegetable oil is made of vegetables, what is baby oil made of?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Problem with windows and variable in smartform

    hi guru,
    i create smartform for printing tax document and found problem.
    1) 
    i create layout in form like this.
           {Main Window}
                     <<<< Data to print
           <<<< secondary Window
             <<<< secondary Window
    with many data in table, so this form will take 10 page up to print. i found and showed in every page.
    in my solution *i want to display and on last page after {Main Window} Only*. how to resolve this.
    2)  follow to 1st question, can i place position of each window in dynamic?  +like 's position is under {Main Window} 2 cm.+ instead of specific position left margin , upper margin *or should i create other page and place and .*
    3)  i create 2 variables  (sum1 type p , sum2  type p ) for keep sum of  tax in table that show in each page and write it at end of each page. i want to clear data in these 2 variables when system create new page and start to keep sum of value again. i create program line node under {Main Window} after but don't know which code or syntax to write.how to code this?
    regards,
    Kittisak.

    1) On the 'Conditions' tab of your WIndow3 & WIndow4 just click the check box
    'Only After End of Main Window'. It will always be printed at the last after your main window is finished.
    2) And if you don't want your window3 & window4 in a fixed place than instead of new windows do the same thing inside your main window creating a new template or anything as per your requirement and place it after your main table.
    3) For clearing the fields, do it like this, in the program lines write the code below:
    IF G_PAGE NE SFSY-PAGE.  " declare g_page with initial value '0'
        CLEAR field1.   
        CLEAR field2.
        G_PAGE = SFSY-PAGE.   
      ENDIF.
    With luck,
    Pritam.

  • Problem with Multimapping using Variable Susbtitution

    Hi,
    I have done a Multi-Mapping where I have used variable substitution in the mapping
    The problem I am facing is that when my target message generates multiple messages the files are creating successfully on the FTP server but if only a
    single message generates on the target side then my message is successfully processed in IS but in adapter engine the message status is in "Waiting" state.
    When i see the audit log i found the following details:
    Time Stamp Status Description
    2007-09-18 06:10:24 Success The message was successfully received by the messaging system. Profile: XI URL: https://dx1-60.ra.rockwell.com:56001/MessagingSystem/receive/AFW/XI
    2007-09-18 06:10:24 Success Using connection AFW. Trying to put the message into the receive queue.
    2007-09-18 06:10:24 Success Message successfully put into the queue.
    2007-09-18 06:10:24 Success The message was successfully retrieved from the receive queue.
    2007-09-18 06:10:24 Success The message status set to DLNG.
    2007-09-18 06:10:24 Error Unable to find channel ID
    2007-09-18 06:10:24 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: 46ee0b73-f266-3794-e100-000082974e17.
    2007-09-18 06:10:24 Success The asynchronous message was successfully scheduled to be delivered at Tue Sep 18 06:15:24 GMT 2007.
    2007-09-18 06:10:24 Success The message status set to WAIT.
    2007-09-18 06:15:24 Success Retrying to deliver message to the application. Retry: 1
    Iam using SP14
    Can anyone help me to solve the above problem

    DATA: l_tabname TYPE tabname .
    DATA : gi_mara TYPE TABLE OF mara ,
           gi_makt TYPE TABLE OF makt .
    l_tabname = 'MARA' .
    DATA         : l_dref TYPE REF TO data.
    FIELD-SYMBOLS: <li_itab> TYPE ANY TABLE.
    CREATE DATA l_dref TYPE TABLE OF (l_tabname).
    ASSIGN l_dref->* TO <li_itab>  .
    *Define another field symbol and asign it to right internal table
    *here naming of internal table is important
    FIELD-SYMBOLS : <fs_tab> TYPE ANY TABLE .
    CONCATENATE 'GI_' l_tabname INTO l_tabname .
    ASSIGN (l_tabname) TO <fs_tab>.
    <fs_tab> = <li_itab> .

  • Problem with printing one variable in one line in smartforms

    Hi,
           Please help me.  It's my first time to use smartforms, and my problem is that I am trying to print one variable on one line and I just don't know why the variable splits and prints the other half on the next line.  On my paragraph format, I only chose the "Left-aligned" as my alignment choice and line spacing as one.  I used a character format for the variable just to make it bold.  The width of the window is 19.9cm.  Please, really hope someone could help me.  Thanks.
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Oct 13, 2009 9:16 AM

    Yes.  There are actually 3 variables on that window:
    SURNAME   <E1>&wa_surname(C)&</>
    FIRSTNAME <E1>&wa_fname(C)&</>
    MIDDLE NAME <E1>&wa_midname(C)&</>
    The variable for the firstname is the one being split to the next line.  It's like half of the firstname is combined with the middlename as shown in the example:
    FIRSTNAME    FIRST
    MIDDLE NAME NAME MIDDLE NAME
    When it should be:
    FIRSTNAME    FIRST NAME
    MIDDLE NAME MIDDLE NAME
    Thanks.

  • Problem with customer exit variable that is input ready as well

    Hello all,
    I'm facing an issue with a customer exit variable that again has been defined as input ready. I'm not sure why it is working incorrectly and I#m wondering if this is a bug or if I do s.th. stupid.
    The problem is that in the exit program ZXRSRU01 this varibale does not go into the program code I have prepared for this variable. I have added entry points for all three i_step values 1,2,3, but the code will never be touched and in debugging I can see that it simply pypasses the code for this variable.
    I have tried to enter a value or to leave it blank, no difference.
    When I run another test by just using a customer exit variable w/o input ready capability, then I have no issue, the exit does exactly what I have coded.
    Does this mean, that a customer exit variable along with input readiness dows not work ?????
    You may ask why I need this variable. Well, my intention is to use the input value of this variable A to derive other values for a complete different variable B. Afterwards I want to erase the input given into variable A to have it blank.
    Any comments are appreciated
    Thanks

    Hi Heiko,
    I assume A & B variables are defined on different Characteristics. If you wish to derive B based on A, you can create the Query Characteristic Restriction on B & have a dummy RKF restricted on A whose processing is by Manual Input; where processing of B is by Customer Exit. In istep 2 you can check for B, read A & derive B. There would not be a need to blank out A since the Query would not be restricted on A - you can hide the dummy RKF from showing in the output. Just a thought.
    --Priya

  • Problems with static member variables WAS: Why is the static initializer instantiating my class?!

    Hi,
    I have been hunting down a NullPointerException for half a day to come to
    the following conclusion.
    My constructor calls a method which uses static variables. Since an intance
    of my class is created in the static block when the class is loaded, those
    statics are probably not fully initialized yet and the constructor called
    from the static block has those null pointer problems.
    I've considered moving the initialization of the static variables from the
    declaration to the static block. But your code is inserted BEFORE any other
    code. Therefore not solving my problem.
    Two questions:
    1) what would be a solution to my problem? How can I make sure my static
    variables are initialized before the enhancer generated code in the static
    block calls my constructor? Short of decompiling, changing the code and
    recompiling.
    2) Why is the enhancing code inserted at the beginning of the static block
    and not at the end? The enhancements would be more transparent that way if
    the static variables are initialized in the static block.
    Thanks,
    Eric

    Hi Eric,
    JDO calls the no-args constructor. Your application should regard this constructor as belonging
    primarily to JDO. For example, you would not want to initialize persistent fields to nondefault
    values since that effort is wasted by JDO's later initilization to persistent values. Typically all
    you want to initialize in the no-args constructor are the transactional and unmanaged fields. This
    rule means that you need initialization after construction if your application uses the no-args
    constructor and wants persistent fields initialized. On the other hand, if your application really
    uses constructors with arguments, and you're initializing persistent fields in the no-args
    constructor either unintentionally through field initializers or intentionally as a matter of
    consistency, you will find treating the no-args constructor differently helpful.
    On the other hand, if Kodo puts its static initializer code first as you report, then it is a bug.
    Spec Section 20.16: "The generated static initialization code is placed after any user-defined
    static initialization code."
    David Ezzio
    Eric Borremans wrote:
    >
    Hi,
    I have been hunting down a NullPointerException for half a day to come to
    the following conclusion.
    My constructor calls a method which uses static variables. Since an intance
    of my class is created in the static block when the class is loaded, those
    statics are probably not fully initialized yet and the constructor called
    from the static block has those null pointer problems.
    I've considered moving the initialization of the static variables from the
    declaration to the static block. But your code is inserted BEFORE any other
    code. Therefore not solving my problem.
    Two questions:
    1) what would be a solution to my problem? How can I make sure my static
    variables are initialized before the enhancer generated code in the static
    block calls my constructor? Short of decompiling, changing the code and
    recompiling.
    2) Why is the enhancing code inserted at the beginning of the static block
    and not at the end? The enhancements would be more transparent that way if
    the static variables are initialized in the static block.
    Thanks,
    Eric

  • Problem with the Formula variable

    Dear All,
    There is a need to convert INR values to USD values. Since my source table in r/3 is not having currency value stored i cant use currency translation type to achieve the same.
    So i am using formula variable to determine the Exchange rate.
    I have created the CKF with the following calculation = INR values / 'ZEXC_RT'.
    Here zexc_rt is a formula variable which is a customer exit and of type Number.
    Now in cmod i am writing a code to determine the value for this formula variable. But the problem is with data type of formula variable and tcurr table UKURS (Exchange rate) field. I have defined formula variable as Number and my UKURS field is of decimal data type because of which the currency conversion is not taking place.
    Here is my code below . Kindly suggest how can i achieve this.
    My logic is :- Whenever the user runs the report take the system date and determine the previous month. Then go to tcurr table and get the exchange rate which matches with the previous month date.
    WHEN 'ZEXC_RT'.
    *   IF I_STEP=2.
        CLEAR L_S_RANGE.
        DATA:  v_date(10).
        DATA:  v_rate type C.
        DATA: z_date(8).
        concatenate sy-datum+0(4) sy-datum+4(2) '01' into v_Date.
        v_date = v_date - 1.
        concatenate v_date+0(4) v_date+4(2) '01' into v_date.
    select SINGLE UKURS into v_rate from tcurr where GDATU = V_date
    and KURST ='M'.
        l_s_range-low = v_rate.
        l_s_range-opt = 'EQ'.
        l_s_range-sign = 'I'.
        APPEND l_s_range TO e_t_range.

    Hi Anup,
    I am not able to get the exact problem.
    CKF is not working means it is giving the INR Values or it is giving some random value.
    Please check your code first by writing a text program in se38 if you are able to read the value correctly from TCURR.
    Domain UKURS has a conversion routine EXCRT. You may require to use it to get the correct value.
    Once you get the right value in the program, you can use the same logic in your formula variable and you should get the correct values.
    Let me know if it helps.
    Regards,
    Gaurav

  • Problems with using a variable of type flash.filesystem.File

    I need to parse a file with my flex app.  I can import flash.filesystem.File with no problem but if I try to create a variable of that type, it does strange things at run time.  If the variable is defined inside a function, it's as if that function no longer exists.  The function doesn't get called and I can't step into it.  If I define a File variable at global scope, the swf simply won't do anything at all.
    I've added all the AIR libs to my project and don't know what else to try at this point.  Any ideas?
    This sample code shows the problem.  If I comment out the File in initData, initData doesn't get called and I can't step into it.  If I comment out the global File, then I get a blank swf.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application           
       xmlns:mx="http://www.adobe.com/2006/mxml" minWidth="955" minHeight="600"
       initialize="initData()">
        <mx:Script>
            <![CDATA[
                import flash.filesystem.File;
                //private var file:File;
                private function initData():void
                    //var file:File;  
                    testLabel.text = "test";   
            ]]>
        </mx:Script>
        <mx:TextArea y="200" id="testLabel" text="hello" />
    </mx:Application>

    sorry for my ignorance, I've only been using flex since 4.0
    shouldn't you be using WindowedApplication rather than Application for an AIR app?
    also there is no need to import File
    below is my code that work's fine
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
                                  layout="absolute"
                                  initialize="initData()">
         <mx:Script>
              <![CDATA[
                   private var file:File;
                   private function initData():void
                        var file:File;
                        testLabel.text = "test";
              ]]>
         </mx:Script>
         <mx:TextArea y="200" id="testLabel" text="hello" />
    </mx:WindowedApplication>

  • Problem with Material Substitution

    Hi Guys,
    In VB12, we set the order reason to something that will make the substitute material as a sub-item. Then we create the SO via VA01, and the subtitute material is correct to be in the sub-item.
    We have changed the order reason of material determination from something that makes the substitute material as a sub-item to something that makes it automatically replaced. Meaning, no sub-item, instead, the substitute will replace the original material in SO line item.
    We change the qty of SO created via VA01 but the original material was not replaced with the substitute material, instead the sub-item has been removed and the original material is maintained in the line item. We are expecting that since the order reason in material determination has been changed, the material number should also be automatically replaced when we do VA02.
    Thanks.

    Hi Freishz,
    Please go to configuration from SD >> basic functions >> material determination >> define substitution reasons. Reason needed to define in creation material determination from VB12 should be should be deined as below:
    -warning should be ticked,
    -strategy should be selected as automatic,
    -outcome should be defined as B.
    I hope these will help you on this issue.
    Thanks,

  • Problem with customer exit variable in BeX Query

    Hi All,
    We have created a customer exit variable in a query and populated with few patterns in customer exit.
    My query has to bring all the records where the address line is containg the patterns passed through customer exit. Here the query is not working as expected.
    It is bringing the values where the address line is exactly same as the pattern and not bringing the records where the pattern is part of the address line.
    For example: Pattern passed in customer exit = 'HOSPITAL'
    The record where address line = 'HOSPITAL' is shown in the rpeort, where the record with address line = 'HOSPITAL ROAD' is not shown in the report.
    I would appreciate your help on this.
    Regards,
    Rakesh

    Hi Diogo,
    Below is the code I am using in the customer exit.
    SELECT * FROM zae_tt_pbuild INTO TABLE gt_pbuild.
          IF sy-subrc = 0.
            LOOP AT gt_pbuild INTO gs_pbuild.
              CONCATENATE '*' gs_pbuild-pbuild '*' into lv_pattern.
              ls_range-low = lv_pattern.
              ls_range-sign = lc_sign_i.
              ls_range-opt = 'CP'.
              APPEND ls_range TO e_t_range.
              CLEAR: ls_range,
                     lv_pattern.
            ENDLOOP.
          ENDIF.
         ENDIF.
    I have tried using '%' instead of '*' aswell but the result is same.
    Thanks,
    Rakesh

  • Problem with UWL substitution - ASAP

    Hello,
    When creating a Manage Subtitution Rule we have the button to create rule and delete the record. In this i would like to disable the delete button only.
    The property option in UWL iview is to disable both create and delete button.
    So can anyone help me to figure out a solution to this problem as the delete button would delete my record from the table which we donot want.
    Is there any alternative to save all the substitution records even after deleting them.
    Thanks.
    Points are rewarded

    Hi,
    The template you used is different.
    Try to create a java webdynpro iview and in the package you will find substitution application variant.
    After creating the iview open the preview and here you can use CTRL plus right click and personalize.
    Thanks and Regards,
    gopal

  • Problems with Date bind variable

    I'm trying to use a Date as a bind variable in a View Object, and I'm running into difficulties. I've got the bind variable type set to date, and the control hints for Format Type and Format set to "Simple Date" and "yyyy-MM-dd" respectively. When I run the application module test and enter the date in the correct format, the View Object returns the expected results. However, when I try to set a Query Bind Parameters property for a JHeadstart group in my application definition in order to set the bind variable's value from an dateField input control, I get the following exception:
    30-Jan 08:49:56 ERROR (ErrorReportingUtils) -java.lang.IllegalArgumentException
    at java.sql.Date.valueOf(Date.java:104)
    at oracle.jbo.domain.Date.toDate(Date.java:348)
    at oracle.jbo.domain.Date.<init>(Date.java:279)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:73)
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:739)
    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:90)
    at oracle.jbo.common.VariableImpl.convertToJava(VariableImpl.java:546)
    at oracle.jbo.common.VariableValueManagerImpl.doSetVariableValue(VariableValueManagerImpl.java:182)
    at oracle.jbo.common.VariableValueManagerImpl.setVariableValue(VariableValueManagerImpl.java:223)
    at oracle.jbo.common.VariableValueManagerImpl.setVariableValue(VariableValueManagerImpl.java:229)
    at oracle.jheadstart.model.adfbc.v2.JhsApplicationModuleImpl.applyBindParams(JhsApplicationModuleImpl.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
    at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
    at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:1989)
    at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
    at oracle.adf.model.binding.DCInvokeActionDef$DCInvokeAction.refresh(DCInvokeActionDef.java:140)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2521)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:534)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:98)
    at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.prepareRender(JhsPageLifecycle.java:1155)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$1.execute(Lifecycle.java:297)
    at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
    at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)
    at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$1.before(ADFPhaseListener.java:426)
    at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:77)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:228)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    However, it seems that the value of the bind parameter did in fact change, according to the debug message issued by the JhsApplicationModuleImpl.applyBindParams(...) procedure:
    30-Jan 08:46:23 DEBUG (JhsApplicationModuleImpl) -ViewObject ViewObj: value of bind param move_date has changed: old value=null ,new value=Wed Jan 07 00:00:00 CST 2009
    One thing I have noticed that may be of interest - if I run the debugger into the JhsApplicationModuleImpl.applyBindParams(...) procedure, a default date in my bind variable shows up as an oracle.jbo.domain.Date object when it comes out of the following line:
    Object oldValue = vo.ensureVariableManager().getVariableValue(key);
    as opposed to the new value that gets sent from the input value of the dateField control, which shows up as a java.util.Date in the following line:
    Object value = args.get(key);
    In the string of functions leading up to the following in the stack trace:
                   at java.sql.Date.valueOf(Date.java:104)
    at oracle.jbo.domain.Date.toDate(Date.java:348)
    at oracle.jbo.domain.Date.<init>(Date.java:279)
    it looks like the value of the java.util.Date is converted to a string, then passed to these functions to be turned into a java.sql.Date object. However, according to the java.sql.Date.valueOf(...) function, it's expecting date in "yyyy-mm-dd" format, per the header comments:
    * Converts a string in JDBC date escape format to
    * a <code>Date</code> value.
    * @param s a <code>String</code> object representing a date in
    * in the format "yyyy-mm-dd"
    * @return a <code>java.sql.Date</code> object representing the
    * given date
    * @throws IllegalArgumentException if the date given is not in the
    * JDBC date escape format (yyyy-mm-dd)
    When the input value from the dateField input control is added as a java.util.Date, the toString() is producing the wrong date format, which could be seen in the debug output I included above that said the bind variable has changed.
    Has anyone done this before that can let me know what I am missing and how to fix this? I've search all over the web, and all the articles I've seen relating to bind variables only refer to those of numeric or string types, which aren't giving me any trouble. Even the Developer's Guide (http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/bcquerying009.htm) article "5.9 Using Named Bind Variables" doesn't reference using a Date type.

    I had the same problem about a year ago (using JHeadstart 10.1.3.2.52):
    15-feb 14:10:31 DEBUG (JhsApplicationModuleImpl) -Search item matches query bind param SubjectenKernPeildatum, value set to 2000-01-01
    15-feb 14:10:33 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for BasServiceKern.AdresRollenSubjecten
    15-feb 14:10:33 DEBUG (JhsApplicationModuleImpl) -ViewObject AdresRollenSubjecten: value of bind param peildatum has changed: old value=null ,new value=Sat Jan 01 00:00:00 CET 2000
    15-feb 14:10:33 ERROR (ErrorReportingUtils) -java.lang.IllegalArgumentException
    at java.sql.Date.valueOf(Date.java:104)
    at oracle.jbo.domain.Date.toDate(Date.java:348)
    It appears a java.util.Date gets put on the criteria Map in the searchBean, this can't be used as input for a jbo.Date bindvariable.
    My ugly solution was to override public void applyBindParams(String voUsage,HashMap args)
    in MyProjectApplicationModuleImp (which extends JhsApplicationModuleImpl of course),
    check if value is a java.util.Date, and then
    value = new java.sql.Date(((java.util.Date)value).getTime());
    Greetings, HJ
    Edited by: HJHorst on Feb 6, 2009 12:22 AM

Maybe you are looking for

  • How to execute unix command in plsql block( urgent)

    Hi All, i want rename the unix folder to New name on update non_employee table . So, please give me idea how to use unix command here.... Please suggest me ASAP ... Its urgent CREATE or REPLACE TRIGGER NON_EMPLOYEE_AftUpd_trg AFTER UPDATE ON NON_EMPL

  • SetSystemUIMode Bus Error

    I have written a java program which accesses: SetSystemUIMode(kUIModeNormal, 0); (through JNI) to return system settings to normal after the java program has been locked out. When I call this function about one in ten calls it gives a Bus Error and b

  • Flash cs6 text is not showing up.

    Hello, I just opened up flash cs6 and found out that the text tool isn't working right.  It lets me select the tool and place a text box, but the text is not showing up.  It is taking up space in the text box, but I cannot see it.  The alpha is 100%

  • AT&T contract,suddenly lost my LTE connection on my iPhone 5

    just have signed up an at&t contract for less than a month, and suddenly my iphone lost LTE connection a few days ago. no matter how many times i reboot or reset the network settings, my iphone just can't connect to the internet. strangely however, s

  • Globalization Problem

    Hi,All. I am chinese,and recently I have joined a project using occi.In our project,there are three major tires:database,server program,and client program.Our Oracle Databe 10.1.0.2 will run on Red Hat Linux Advanced Server 3,server c++ program ,whic