XQuery - Example for binding strings

The example in this article - http://www.oracle.com/technology/sample_code/tech/xml/xmldb/jxqi.html for string binding does not work, as the PreparedXQuery setString api signature is not setString(String, String), as mentioned in the article.
May be the api changed. The current api - setString(QName, String).
So, how can the string be bound.
Pasting example from the article as below.
PreparedXQuery xq = ctx.prepareXQuery(
" for $iN document(bind(\"filename\")) "+
" WHERE $b/publisher = 'Addison-Wesley' "+
" AND $b/@year > 1991 " +
" RETURN <book year={ $b/@year }> "+
" { $b/title } </book> ");
So, how can filename be defined in the code.
Thank in advance.
Malkit S. Bhasin

Hi,
The article you are looking at was written well before the XQJ standard (JSR225) was finalised. You should be able to find your answer in the XQJ documentation.
HTH
Chris

Similar Messages

  • Sample Dynamic Xquery Example in OSB

    Hi, can any body please provide Sample Dynamic Xquery Example in OSB......or jar file plzzz

    or this one :
    http://blogs.oracle.com/christomkins/entry/dynamic_transformations_using_1
    basically it's the same as a normal xquery
    only this time the xquery you want to execute comes from an to be executed expression
    so look at the path at which your xquery exists
    for example <YOUR_OSB_PROJECT>/sharedresource/xqueries/your_xquery
    assign this to the expression field of the dynamic xquery
    and after that bind all the parameters like you also do with a normal xquery

  • Getting error for input string 0000 #

    Hi ,
    I am getting error on the portal that has an exception as error occured for For input string: "0000  #" .I think its because of some problem with the RFC that m getting this error but please suggest.The code done with dynamic coding is given below:
    for(int j=0; j<intList; j++)
                                       IDynamicNodeElement dynObj = wdContext.createDynamicNodeElement();
                                       strLine = wdContext.nodeWeb_Table_Disp1_Out().getWeb_Table_Disp1_OutElementAt(j).getTline();
    intLine = strLine.length();
                                       strLine = strLine.substring(1,intLine-1);               
                                  String[] strArr = strLine.split("#");
                                       for(int k=0;k<intCat;k++)
    String strVal = strArr[k];
                                            if(wdContext.nodeField_Catalog_Disp1_Out().getField_Catalog_Disp1_OutElementAt(k).getDatatype().equalsIgnoreCase("DATE"))
                                                 try
                                                      String strdate ="";
                                                      SimpleDateFormat ch1 = new SimpleDateFormat("yyyyMMdd");
                                                      //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(wdContext.currentUser_ProfileElement().getDatefmt()+strVal);
                                                      String strFmt = "";
                                                      if("YYYY/MM/DD".equalsIgnoreCase(wdContext.currentUser_ProfileElement().getDatefmt()))
                                                           strFmt = "yyyy/MM/dd";
                                                      else
                                                           strFmt = "MM/dd/yyyy";
                                                      SimpleDateFormat ch2 = new SimpleDateFormat(strFmt);
                                                      strVal = strVal.trim();
                                                      if(!"".equals(strVal))
                                                           strdate = ch2.format(ch1.parse(strVal));     
                                                      }          dynObj.setAttributeValue(wdContext.nodeField_Catalog_Disp1_Out().getField_Catalog_Disp1_OutElementAt(k).getFieldname(),strdate);
                                                 catch(Exception e)
                                            else if(wdContext.nodeField_Catalog_Disp1_Out().getField_Catalog_Disp1_OutElementAt(k).getDatatype().equalsIgnoreCase("QUAN"))
                                                 Double dblVal = null;
                                                 DecimalFormat sdf = new DecimalFormat("#,###.####");
                                                 dblVal = new Double(strVal);
                                                 if(!strVal.matches("(?i).-."))
                                                      dblVal = new Double(strVal);
    dynObj.setAttributeValue(wdContext.nodeField_Catalog_Disp1_Out().getField_Catalog_Disp1_OutElementAt(k).getFieldname(),new BigDecimal(strVal.trim()));
                                                 else
                                                      dynObj.setAttributeValue(wdContext.nodeField_Catalog_Disp1_Out().getField_Catalog_Disp1_OutElementAt(k).getFieldname(),null);
                                            else
                                                 dynObj.setAttributeValue(wdContext.nodeField_Catalog_Disp1_Out().getField_Catalog_Disp1_OutElementAt(k).getFieldname(),strVal);
    col.add(dynObj);     
                             wdContext.nodeDynamicNode().bind(col);
    Please help.
    Thanks & Regards,
    Reinuka.

    I guess the reason for the exception is the "date format" and conversions. Try something like this.
    SimpleDateFormat sdf = new SimpleDateFormat("date format you want");
    java.util.Date asDate = sdf .parse(codes.getString("your date value").trim());
    node element to which you want to set the date value.setfieldname(asDate.getTime());
    Example:
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    java.util.Date asDate = sdf .parse(codes.getString("DELIV_DATE").trim());
    outboundpr.setDel_date(asDate.getTime());

  • Script to search all files in specified folder for multiple string text values listed in a source file and output each match to one single results txt file

    I have been searching high and low for this one.  I have a vbscript that can successfully perform the function if one file is listed.  It does a Wscript.echo on the results and if I run this via command using cscript, I can output to a text file
    that way.  However, I cannot seem to get it to work properly if I want it to search ALL the files in the folder.  At one point, I was able to have it create the output file and appear as if it worked, but it never showed any results when the script
    was executed and folder was scanned.  So I am going back to the drawing board and starting from the beginning.
    I also have a txt file that contains the list of string text entries I would like it to search for.  Just for testing, I placed 4 lines of sample text and one single matching text in various target files and nothing comes back.  The current script
    I use for each file has been executed with a few hundred string text lines I want it to search against to well over one thousand.  It might take awhile, but it works every time. The purpose is to let this run against various log files in a folder and
    let it search.  There is no deleting, moving, changing of either the target folder/files to run against, nor of the file that contains the strings to search for.  It is a search (read) only function, going thru the entire contents of the folder and
    when done, performs the loop function and onto the next file to repeat the process until all files are searched.  When completed, instead of running a cscript to execute the script and outputting the results to text, I am trying to create that as part
    of the overall script.  Saving yet another step for me to do.
    My current script is set to append to the same results file and will echo [name of file I am searching]:  No errors found.  Otherwise, the
    output shows the filename and the string text that matched.  Because the results append to it, I can only run the script against each file separately or create individual output names.  I would rather not do that if I could include it all in one.
     This would also free me from babysitting it and running each file script separately upon the other's completion.  I can continue with my job and come back later and view the completed report all in one.  So
    if I could perform this on an entire folder, then I would want the entries to include the filename, the line number that the match occurred on in that file and the string text that was matched (each occurrence).  I don't want the entire line to be listed
    where the error was, just the match itself.
    Example:  (In the event this doesn't display correctly below, each match, it's corresponding filename and line number all go together on the same line.  It somehow posted the example jumbled when I listed it) 
    File1.txt Line 54 
    Job terminated unexpectedly
     File1.txt Line 58 Process not completed
    File1.txt
    Line 101 User input not provided
    File1.txt
    Line 105  Process not completed
    File2.txt
    No errors found
    File3.txt
    Line 35 No tape media found
    File3.txt
    Line 156 Bad surface media
    File3.txt Line 188
    Process terminated
    Those are just random fake examples for this post.
    This allows me to perform analysis on a set of files for various projects I am doing.  Later on, when the entire search is completed, I can go back to the results file and look and see what files had items I wish to follow up on.  Therefore, the
    line number that each match was found on will allow me to see the big picture of what was going on when the entry was logged.
    I actually import the results file into a spreadsheet, where further information is stored regarding each individual text string I am using.  Very useful.
    If you know how I can successfully achieve this in one script, please share.  I have seen plenty of posts out there where people have requested all different aspects of it, but I have yet to see it all put together in one and work successfully.
    Thanks for helping.

    I'm sorry.  I was so consumed in locating the issue that I completely overlooked posting what exactly I was needing  help with.   I did have one created, but I came across one that seemed more organized than what I originally created.  Later
    on I would learn that I had an error in log location on my original script and therefore thought it wasn't working properly.  Now that I am thinking that I am pretty close to achieving what I want with this one, I am just going to stick with it.
    However, I could still use help on it.  I am not sure what I did not set correctly or perhaps overlooking as a typing error that my very last line of this throws an "Expected Statement" error.  If I end with End, then it still gives same
    results.
    So to give credit where I located this:
    http://vbscriptwmi.uw.hu/ch12lev1sec7.html
    I then adjusted it for what I was doing.
    What this does does is it searches thru log files in a directory you specify when prompted.  It looks for words that are contained in another file; objFile2, and outputs the results of all matching words in each of those log files to another file:  errors.log
    Once all files are scanned to the end, the objects are closed and then a message is echoed letting you know (whether there errors found or not), so you know the script has been completed.
    What I had hoped to achieve was an output to the errors.log (when matches were found) the file name, the line number that match was located on in that file and what was the actual string text (not the whole line) that matched.  That way, I can go directly
    to each instance for particular events if further analysis is needed later on.
    So I could use help on what statement should I be closing this with.  What event, events or error did I overlook that I keep getting prompted for that.  Any help would be appreciated.
    Option Explicit
    'Prompt user for the log file they want to search
    Dim varLogPath
    varLogPath = InputBox("Enter the complete path of the logs folder.")
    'Create filesystem object
    Dim oFSO
    Set oFSO = WScript.CreateObject("Scripting.FileSystemObject")
    'Creates the output file that will contain errors found during search
    Dim oTSOut
    Set oTSOut = oFSO.CreateTextFile("c:\Scripts\errors.log")
    'Loop through each file in the folder
    Dim oFile, varFoundNone
    VarFoundNone = True
    For Each oFile In oFSO.GetFolder(varLogPath).Files
        'Verifies files scanned are log files
        If LCase(Right(oFile.Name,3)) = "log" Then
            'Open the log file
            Dim oTS
            oTS = oFSO.OpenTextFile(oFile.Path)
            'Sets the file log that contains error list to look for
            Dim oFile2
            Set oFile2 = oFSO.OpenTextFile("c:\Scripts\livescan\lserrors.txt", ForReading)
            'Begin reading each line of the textstream
            Dim varLine
            Do Until oTS.AtEndOfStream
                varLine = oTS.ReadLine
                Set objRegEx = CreateObject("VBScript.RegExp")
                objRegEx.Global = True  
                Dim colMatches, strName, strText
                Do Until oErrors.AtEndOfStream
                    strName = oFile2.ReadLine
                    objRegEx.Pattern = ".{0,}" & strName & ".{0,}\n"
                    Set colMatches = objRegEx.Execute(varLine)  
                    If colMatches.Count > 0 Then
                        For Each strMatch in colMatches 
                            strText = strText & strMatch.Value
                            WScript.Echo "Errors found."
                            oTSOut.WriteLine oFile.Name, varLine.Line, varLine
                            VarFoundNone = False
                        Next
                    End If
                Loop
                oTS.Close
                oFile2.Close
                oTSOut.Close
                Exit Do
                If VarFoundNone = True Then
                    WScript.Echo "No errors found."
                Else
                    WScript.Echo "Errors found.  Check logfile for more info."
                End If
        End if

  • Using arrays as type for bind variable

    Hi all,
    I have this stored procedures that takes an array of strings as an argument:
    CREATE OR REPLACE PACKAGE mypackage AS
    TYPE StringArray IS VARRAY(100) OF VARCHAR2(16);
    PROCEDURE doSomething(v_strings IN StringArray);
    END;
    My java code looks something like:
    String[] strings = ...;
    CallableStatement cs = connection.prepareCall("CALL mypackage.doSomething(?)");
    cs.setObject(1, strings, java.sql.Types.ARRAY);
    calling the setObject method throws a SQLException: invalid column type.
    I have tried to change the call to:
    cs.setArray(1, new SqlStringArray(strings))
    where SqlStringArray is a wrapper around String[] that implements the java.sql.Array interface. This however throws a ClassCastException in oracle.jdbc.driver.OraclePreparedStatement. The latter is assuming it is receiving a class that implements yet another interface I guess.
    I also tried:
    cs.setObject(1, strings, java.sql.Types.VARCHAR);
    but that also throws a SqlException: invalid conversion requested
    Does anybody know how to bind String[] into a PreparedStatement?
    Any help is appreciated.
    Rudi.

    Made some progress. I am getting the OracleConnection from the WrappedConnection. This is a temporary solution for me so I would appreciate a final solution from anybody.
    I am now constructing a oracle.sql.ARRAY with an appropriate oracle.sql.ArrayDescriptor. I have found out that the type must be defined on a global level rather than in the scope of the package. Would be good if an Oracle expert could confirm that but I am happy to live with that.
    The IN parameter is correctly bound using the ARRAY instance but I am getting the following error when actually executing the statement:
    ORA-06512: Reference to uninitialized collection: at "BLUETEST_MYPACKAGE", line 57
    Now I have found quite some problem descriptions with that ORA error but all are dealing with OUT parameters that were not correctly initialized, i.e. the array constructor had not been called. In my case however, the array is initialized at by the java code and then bount to the sql statement. You would expect that the jdbc driver takes care of correctly initializing the PL/SQL collection wouldn't you.
    Does anybody know if I need to do anything extra?
    Many thanks,
    Rudi.

  • How to continously read for a string or word in a file?

    Hi
    I have been trying for a while now to search for a word that is being written to a file.
    I was wondering if anyone can get me over this hump?
    What I am doing is reading from the serial port to a file (example file called test), and while this is being done I want to search for the word "passed" or the phrase "test passed"
    Once I fine this word or phrase, I can stop the test
    I cannot figure out how to search the file, I used the scan file VI and the search/ replace VI etc with no luck!
    Your suggestions is appreciated

    It's always best to post your code so others can see the work you've done.  Suggestions will be more effective that way.
    So your reading from a serial port to a file?  What do you mean by this?  Are you reading from the serial port and writing the data to a file?  It's the file you want to read, isn't it?  If I had your code I could answer my own questions  
    Why don't you just monitor the incoming data stream from the serial port for "passed."
    But to read from a file and search for a string, Smercurio is correct.  Match Pattern will do what you need (You can use this same function for ASCII serial data as well).
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • Searching for a string in given text file

    Hi,
    I have two strings and i need to search the entire file for the strings and highlight the lines between the strings
    say, for example,
    hi this is xyz
    i am a begineer in java
    can i have some help in this issue please
    i gave 'hi' and 'can' i need the three lines to be highlighted
    can you give me an idea about this.
    how to proceed
    thanks all in advance
    Edited by: anub on Feb 6, 2009 3:24 AM

    Here's an idea. Find a link to the java API. Create a utility class with a method to read a file and a method to write a file. Look in java.io for this. That should keep you busy for a while and give you something specific to ask questions about. Next, create a GUI class and put a button on it. Figure out how to make a button click open a "FileChooser" or "JFileChooser" (Look in the api for that) Imagine that these need to talk to each other so figure out what parameters are needed. After you've done that then figure out how the user is going to enter the two search criteria (something that acts like a text field). Choose a GUI class that supports text highlighting. Display all the information that the user would like to know e.g. The name of the file selected to parse, the name of the file to write, and whether the strings were found successfully.
    kr
    walker

  • Scorecard error "For input string" ....

    Hi has anyone had and solved the following error?
    When selecting "Last Run", one of my scorecards is returing an error "For Input string "7127912115" right after loading the Key data domain details.
    When selecting "Now" it works fine.
    However, when I send out the "Share link" it come back with the same error.  See attached.
    Please help?
    Mike

    label="Credit Account" value="CRA"no no :) it's not like that
    from the error itself you can understood. "not whole number"
    right format :
    label="Credit Account" value=0 //it will take index value
    label="Creditx " value=1
    label="Creditx " value=n // upto your limitif you want the same means you can achive in some other way.
      <af:selectOneChoice id="soc1" label="Export To" autoSubmit="true"
                                  valuePassThru="true"
                                  binding="#{backingBeanScope.x.soc1}"
                                  valueChangeListener="#{backingBeanScope.x.ValueChangeListener}"
                                  required="true" contentStyle="width:200.0px;">
                <f:selectItems value="#{backingBeanScope.x.selectItems}"
                               id="si1"/>
              </af:selectOneChoice>
        public java.util.List<SelectItem> getSelectItems() {
            selectItems = new ArrayList<SelectItem>();
            selectItems.add(new SelectItem("PDF", "PDF"));
            selectItems.add(new SelectItem("XLS", "EXCEL"));
            selectItems.add(new SelectItem("HTML", "HTML"));
            return selectItems;
        }in more simplified manner.
    http://www.youtube.com/watch?v=hryJoJ0OIsM
    https://blogs.oracle.com/dana/entry/static_list_view_objects_exposed

  • For input string error by filter table and execute CreateInsert

    Dear all
    I am useing Jdeveloper 11.1.1.3
    i have a pannel tabl with 2 showDetail item
    one for table another for form.
    by default table tab is active , when user press create button form will be active and CreateInsert Action will execute.
    now if user search any value in table filter (for example seach name column with Admin value)then press create botton :
    form will be active an an error raise :      For input string:"Admin"
    in console i have :
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Admin"
    java.lang.NumberFormatException: For input string: "Admin"

    Hi,
    is the "CreateInsert" action completed by the user - entering a new row and submitting it ? Note that table and form share the same VO and therefore validation applies to both of them. Also which version of JDeveloper do you use ?
    Frank

  • Error For input string: "M"

    hi i have select radio button but when i make seletion am geting this error      Error
    For input string: "M" am in jdeveloper 11.1.1.6.0
    <af:selectOneRadio id="sor4" layout="horizontal"
                                                     value="#{bindings.Gender.inputValue}"
                                 autoSubmit="true" immediate="true">
                <af:selectItem label="Female" value="F" id="si16"/>
                <af:selectItem label="Male" value="M" id="si10"/>
              </af:selectOneRadio>

    the error is
    <DCExecutableBinding> <refreshIfNeeded> [11074] Invoke refresh for :UamPractitionersView1Iterator
    <DCIteratorBinding> <refresh> [11075] Executing and syncing on IteratorBinding.refresh from :UamPractitionersView1Iterator
    <DCUtil> <findSpelObject> [11076] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for IntlModuleDataControl
    <ADFLogger> <begin> Attaching an iterator binding to a datasource
    <DCIteratorBinding> <getViewObject> [11077] Resolving VO:UamPractitionersView1 for iterator binding:UamPractitionersView1Iterator
    <ADFLogger> <addContextData> Attaching an iterator binding to a datasource
    <SelectItemUtils> <_addUIXSelectItem> class org.apache.myfaces.trinidadinternal.convert.IntegerConverter:"The number is not a whole number." for the value "M"
    <SelectItemUtils> <_addUIXSelectItem> class org.apache.myfaces.trinidadinternal.convert.IntegerConverter:"The number is not a whole number." for the value "F"
    <JboBeanUtils> <getProperty> [11078] *** Using bean introspection to lookup value :componentClientId
    <LoopDiagnostic> <dump> [11079] variableIterator variables passivated >>> TrackQueryPerformed def SearchAppliedCriteria def SearchAppliedCriteria=IntlUsersCriteria
    <DCIteratorBinding> <releaseDataInternal> [11080] Releasing iterator binding:values_3068
    <DCIteratorBinding> <releaseDataInternal> [11081] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [11082] Releasing iterator binding:values_3075
    <DCIteratorBinding> <releaseDataInternal> [11083] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [11084] Releasing iterator binding:values_3082
    <DCIteratorBinding> <releaseDataInternal> [11085] Releasing iterator binding:values_3089
    <DCIteratorBinding> <releaseDataInternal> [11086] Releasing iterator binding:values_3096
    <ViewObjectImpl> <closeStatementsResetRowSet> [11087] ViewObject: [internal_vcival_def]Root.internal_vcival_def_3100 close prepared statements...
    <DCIteratorBinding> <releaseDataInternal> [11088] Releasing iterator binding:operators_3079
    <DCIteratorBinding> <releaseDataInternal> [11089] Releasing iterator binding:operators_3086
    <DCIteratorBinding> <releaseDataInternal> [11090] Releasing iterator binding:operators_3093
    <DCIteratorBinding> <releaseDataInternal> [11091] Releasing iterator binding:operators_3065
    <DCIteratorBinding> <releaseDataInternal> [11092] Releasing iterator binding:operators_3072
    <ViewObjectImpl> <closeStatementsResetRowSet> [11093] ViewObject: [internal_vco_def]Root.internal_vco_def_3114 close prepared statements...
    <DCIteratorBinding> <releaseDataInternal> [11094] Releasing iterator binding:criteriaItemsForSearch_3056
    <DCIteratorBinding> <releaseDataInternal> [11095] Releasing iterator binding:nestedViewCriteria_3070
    <DCIteratorBinding> <releaseDataInternal> [11096] Releasing iterator binding:nestedViewCriteria_3077
    <DCIteratorBinding> <releaseDataInternal> [11097] Releasing iterator binding:nestedViewCriteria_3084
    <DCIteratorBinding> <releaseDataInternal> [11098] Releasing iterator binding:nestedViewCriteria_3091
    <DCIteratorBinding> <releaseDataInternal> [11099] Releasing iterator binding:nestedViewCriteria_3098
    <DCIteratorBinding> <releaseDataInternal> [11100] Releasing iterator binding:nestedViewCriteria_3070
    <DCIteratorBinding> <releaseDataInternal> [11101] Releasing iterator binding:nestedViewCriteria_3070
    <DCIteratorBinding> <releaseDataInternal> [11102] Releasing iterator binding:nestedViewCriteria_3070
    <DCIteratorBinding> <releaseDataInternal> [11103] Releasing iterator binding:nestedViewCriteria_3070
    <DCIteratorBinding> <releaseDataInternal> [11104] Releasing iterator binding:nestedViewCriteria_3077
    <DCIteratorBinding> <releaseDataInternal> [11105] Releasing iterator binding:nestedViewCriteria_3077
    <DCIteratorBinding> <releaseDataInternal> [11106] Releasing iterator binding:nestedViewCriteria_3077
    <DCIteratorBinding> <releaseDataInternal> [11107] Releasing iterator binding:nestedViewCriteria_3077
    <DCIteratorBinding> <releaseDataInternal> [11108] Releasing iterator binding:nestedViewCriteria_3084
    <DCIteratorBinding> <releaseDataInternal> [11109] Releasing iterator binding:nestedViewCriteria_3084
    <DCIteratorBinding> <releaseDataInternal> [11110] Releasing iterator binding:nestedViewCriteria_3084
    <DCIteratorBinding> <releaseDataInternal> [11111] Releasing iterator binding:nestedViewCriteria_3084
    <DCIteratorBinding> <releaseDataInternal> [11112] Releasing iterator binding:nestedViewCriteria_3091
    <DCIteratorBinding> <releaseDataInternal> [11113] Releasing iterator binding:nestedViewCriteria_3091
    <DCIteratorBinding> <releaseDataInternal> [11114] Releasing iterator binding:nestedViewCriteria_3091
    <DCIteratorBinding> <releaseDataInternal> [11115] Releasing iterator binding:nestedViewCriteria_3091
    <DCIteratorBinding> <releaseDataInternal> [11116] Releasing iterator binding:nestedViewCriteria_3098
    <DCIteratorBinding> <releaseDataInternal> [11117] Releasing iterator binding:nestedViewCriteria_3098
    <DCIteratorBinding> <releaseDataInternal> [11118] Releasing iterator binding:nestedViewCriteria_3098
    <DCIteratorBinding> <releaseDataInternal> [11119] Releasing iterator binding:nestedViewCriteria_3098
    <ViewObjectImpl> <closeStatementsResetRowSet> [11120] ViewObject: [internal_vci_def]Root.internal_vci_def_3063 close prepared statements...
    <DCIteratorBinding> <releaseDataInternal> [11121] Releasing iterator binding:viewObjectBindVars_3059
    <ViewObjectImpl> <closeStatementsResetRowSet> [11122] ViewObject: [internal_vci_def]Root.internal_vci_def_3170 close prepared statements...
    <DCIteratorBinding> <releaseDataInternal> [11123] Releasing iterator binding:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11124] Releasing iterator binding:properties_3061
    <ViewObjectImpl> <closeStatementsResetRowSet> [11125] ViewObject: [IntlModule.IntlUsers1.IntlUsersCriteria]Root.IntlModule_IntlUsers1_IntlUsersCriteria_3054 close prepared statements...
    <DCUtil> <findSpelObject> [11126] DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding, for IntlUsersCriteriaQuery
    <DCIteratorBinding> <releaseDataInternal> [11127] Releasing iterator binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlListBinding_3132List_3133
    <DCIteratorBinding> <releaseDataInternal> [11128] Releasing iterator binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlListBinding_3150List_3151
    <DCIteratorBinding> <releaseDataInternal> [11129] Releasing iterator binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlListBinding_3168List_3169
    <JUCtrlHierNodeBinding> <release> [11130] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_32, value:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11131] Releasing iterator binding:operators_3065
    <DCIteratorBinding> <releaseDataInternal> [11132] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [11133] Releasing iterator binding:values_3068
    <DCIteratorBinding> <releaseDataInternal> [11134] Releasing iterator binding:values_3068
    <DCIteratorBinding> <releaseDataInternal> [11135] Releasing iterator binding:operators_3065
    <DCIteratorBinding> <releaseDataInternal> [11136] Releasing iterator binding:operators_3072
    <DCIteratorBinding> <releaseDataInternal> [11137] Releasing iterator binding:listIter
    <DCIteratorBinding> <releaseDataInternal> [11138] Releasing iterator binding:values_3075
    <DCIteratorBinding> <releaseDataInternal> [11139] Releasing iterator binding:values_3075
    <DCIteratorBinding> <releaseDataInternal> [11140] Releasing iterator binding:operators_3072
    <DCIteratorBinding> <releaseDataInternal> [11141] Releasing iterator binding:operators_3079
    <DCIteratorBinding> <releaseDataInternal> [11142] Releasing iterator binding:values_3082
    <DCIteratorBinding> <releaseDataInternal> [11143] Releasing iterator binding:values_3082
    <DCIteratorBinding> <releaseDataInternal> [11144] Releasing iterator binding:operators_3079
    <DCIteratorBinding> <releaseDataInternal> [11145] Releasing iterator binding:operators_3086
    <DCIteratorBinding> <releaseDataInternal> [11146] Releasing iterator binding:values_3089
    <DCIteratorBinding> <releaseDataInternal> [11147] Releasing iterator binding:values_3089
    <DCIteratorBinding> <releaseDataInternal> [11148] Releasing iterator binding:operators_3086
    <DCIteratorBinding> <releaseDataInternal> [11149] Releasing iterator binding:operators_3093
    <DCIteratorBinding> <releaseDataInternal> [11150] Releasing iterator binding:values_3096
    <DCIteratorBinding> <releaseDataInternal> [11151] Releasing iterator binding:values_3096
    <DCIteratorBinding> <releaseDataInternal> [11152] Releasing iterator binding:operators_3093
    <DCIteratorBinding> <releaseDataInternal> [11153] Releasing iterator binding:criteriaItemsForSearch_3056
    <DCIteratorBinding> <releaseDataInternal> [11154] Releasing iterator binding:viewObjectBindVars_3059
    <DCIteratorBinding> <releaseDataInternal> [11155] Releasing iterator binding:viewObjectBindVars_3059
    <DCIteratorBinding> <releaseDataInternal> [11156] Releasing iterator binding:properties_3061
    <DCIteratorBinding> <releaseDataInternal> [11157] Releasing iterator binding:properties_3061
    <DCIteratorBinding> <releaseDataInternal> [11158] Releasing iterator binding:criteriaItemsForSearch_3056
    <JUCtrlHierNodeBinding> <release> [11159] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_33, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11160] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_32, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11161] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_33, value:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11162] Releasing iterator binding:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11163] Releasing iterator binding:variableIterator
    <ADFLogger> <begin> Rollback transaction
    <ApplicationModuleImpl> <resetState> [11164] Resetting AM=Root
    <ApplicationPoolMessageHandler> <doPoolMessage> [11165] **** PoolMessage REQ DETACH LWS
    <DCUtil> <findSpelObject> [11166] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for view_pageDefs_usersPageDef_WEB_INF_Updusrtask_flow_definition_xml_Updusrtask_flow_definition
    <DCIteratorBinding> <releaseDataInternal> [11167] Releasing iterator binding:TitlecodeList_3052
    <DCIteratorBinding> <releaseDataInternal> [11168] Releasing iterator binding:CountrycodeList_3050
    <DCIteratorBinding> <releaseDataInternal> [11169] Releasing iterator binding:BranchcodeList_3051
    <DCIteratorBinding> <releaseDataInternal> [11170] Releasing iterator binding:OfficecodeList_3048
    <DCIteratorBinding> <releaseDataInternal> [11171] Releasing iterator binding:RoleaccesscodeList_3049
    <JUCtrlHierNodeBinding> <release> [11172] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_34, value:IntlUsers1Iterator
    <JUCtrlHierNodeBinding> <release> [11173] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_34, value:IntlUsers1Iterator
    <DCIteratorBinding> <releaseDataInternal> [11174] Releasing iterator binding:IntlUsers1Iterator
    <JUCtrlHierNodeBinding> <release> [11175] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_32, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11176] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_33, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11177] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_32, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11178] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_33, value:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11179] Releasing iterator binding:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11180] Releasing iterator binding:variableIterator
    <DCIteratorBinding> <releaseDataInternal> [11181] Releasing iterator binding:UamUserdetailsView2Iterator
    <DCIteratorBinding> <releaseDataInternal> [11182] Releasing iterator binding:UamUserextensionView1Iterator
    <DCIteratorBinding> <releaseDataInternal> [11183] Releasing iterator binding:UamPractitionersView1Iterator
    <ApplicationPoolMessageHandler> <doPoolMessage> [11184] **** PoolMessage REQ ATTACH LWS
    <ApplicationPoolMessageHandler> <doPoolMessage> [11185] **** PoolMessage REQ DETACH LWS
    <JUCtrlHierNodeBinding> <release> [11186] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_34, value:IntlUsers1Iterator
    <JUCtrlHierNodeBinding> <release> [11187] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_34, value:IntlUsers1Iterator
    <DCIteratorBinding> <releaseDataInternal> [11188] Releasing iterator binding:IntlUsers1Iterator
    <JUCtrlHierNodeBinding> <release> [11189] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_32, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11190] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_33, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11191] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_32, value:vcRowsIterator
    <JUCtrlHierNodeBinding> <release> [11192] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_33, value:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11193] Releasing iterator binding:vcRowsIterator
    <DCIteratorBinding> <releaseDataInternal> [11194] Releasing iterator binding:variableIterator
    <DCIteratorBinding> <releaseDataInternal> [11195] Releasing iterator binding:UamUserdetailsView2Iterator
    <DCIteratorBinding> <releaseDataInternal> [11196] Releasing iterator binding:UamUserextensionView1Iterator
    <DCIteratorBinding> <releaseDataInternal> [11197] Releasing iterator binding:UamPractitionersView1Iterator
    <af:selectOneRadio id="sor2" layout="horizontal"
                                   value="#{bindings.Gender.inputValue}"
                                   partialTriggers="resId1">
                  <af:selectItem label="Male" value="M" id="si5"/>
                  <af:selectItem label="Female" value="F" id="si4"/>
                </af:selectOneRadio>
    i what to store F,M NOT WHOLE NAME FEMALE OR MALE
    my pagedefination is
    <list IterBinding="UamUserdetailsView2Iterator" id="Gender"
              DTSupportsMRU="false" StaticList="true">
          <AttrNames>
            <Item Value="Gender"/>
          </AttrNames>
          <ValueList>
            <Item Value="M"/>
            <Item Value="F"/>
          </ValueList>
        </list>Edited by: adf009 on 2013/05/20 10:24 AM

  • Jax-ws:  Examples for @ResponseWrapper @RequestWrapper...and Issues!!!

    Hi,
    i'm trying to use on my web services this annotations:
    @ResponseWrapper @RequestWrapper, but without any success!
    I have this example
    For HelloWorld.java:
    package demo.spring;
    import javax.jws.*;
    import javax.xml.ws.*;
    @WebService
    public interface HelloWorld {
         // Meta-Attributes//
         @WebMethod(operationName="getSay")
         @RequestWrapper(className = "java.lang.String")
         @ResponseWrapper(className = "demo.spring.AddressWrapper")
         AddressWrapper sayHi(String text);
    // END SNIPPET: service
    For HelloWorldImpl.java:
    import javax.jws.*;
    import javax.xml.ws.*;
    @WebService(endpointInterface = "demo.spring.HelloWorld")
    public class HelloWorldImpl implements HelloWorld {
    public AddressWrapper sayHi(String text) {
    return new AddressWrapper("Hello " + text);
    // END SNIPPET: service
    AddressWrapper.java:
    public class AddressWrapper {
    //Properties//
         String nome;
         public AddressWrapper () {}
         public AddressWrapper (String valor)
              this.nome=valor;
         public String getNome()
              return nome;
         public void setNome(String me)
              nome=me;
         public String toString()
              return nome;
    What happens here? The webservice doesn't return anything! But, without @RequestWrapper, @ResponseWrapper, everything is ok!
    Why that?
    Thanks a lot!
    Orlando Agostinho

    Updating myself....
    I now believe that the <xs:annotation><xs:appinfo> is for when you are modifying the schema so that you don't need the external bindings file. As a result I have modified my xjb as follows:
    <bindings xmlns="http://java.sun.com/xml/ns/jaxb"
              xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
              xmlns:xs="http://www.w3.org/2001/XMLSchema"
              xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc"
              xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
              version="2.1">
           <jaxb:globalBindings>
              <xjc:treatRestrictionLikeNewType/>
           </jaxb:globalBindings>
    </bindings>This removes the error that xs:annotation is not associated with any schema element but results in the same error -
    [ERROR] Base complex type "A" is derived by restriction, while this complex type "B" is derived by extension. This is not currently handled by XJC, but we are seeking input on this issue. Please report this to the JAXB team.So it seems that my bindings file is either being ignored by wsimport or is still just plain wrong. Any suggestions.
    Thanks

  • Where I can find an example for an ADF application

    where I can find an example for an ADF application where the view layer is JSF and the Business service layer is JAVA with JSF controller as controller layer
    Edited by: belal on Jun 18, 2011 11:59 PM

    I created new Fusion web application so I have now to parts in the application navigator (model, viewcontroller)
    I want to write java class in the Model part as following:
    package persistence;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class DBManager {
    Connection connection = null;
    public DBManager() {
    super();
    public void init() {
    try {
    // Load the JDBC driver
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName(driverName);
    // Create a connection to the database
    String serverName = Constant.DB_SERVER_NAME;
    String portNumber = Constant.DB_PORT_NUMBER;
    String sid = Constant.DB_SID;
    String url =
    "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" +
    sid;
    String username = Constant.DB_USER_NAME;
    String password = Constant.DB_PASSWORD;
    connection = DriverManager.getConnection(url, username, password);
    System.out.println("*");
    System.out.println(connection.getCatalog());
    } catch (ClassNotFoundException e) {
    System.out.println("Could not find the database driver");
    } catch (SQLException e) {
    System.out.println("Could not connect to the database");
    e.printStackTrace();
    and wrote JSP page in the view controller part as following :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import="persistance.*"%>
    <% persistance.DBManager manager = new DBManager(); %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>Browse</title>
    </head>
    <body>
    <table>
    </table>
    </body>
    </html>
    but this I have the following error in the jsp page :*type persistance.DBManager not found*
    my job is to build simple ADF application using JSF and java without any ADF faces or JPA or any another technology
    thanks
    Edited by: belal on Jun 19, 2011 12:51 AM

  • Why won't Pages set uneven margins for binding a booklet?

    I have set up a booklet, mostly with pictures, with a page size of 5.5 x 8.5. I want a wider inside margin for binding the booklet. Pages 09 lets me select this margin, but it doesn't appear on the screen. I am planning to have this booklet printed by a professional printer, not on my own printer. How can I make this work?
    I am using 10.6.8.

    Beth,
    First, I suspect from your picture that you may be working with a Page Layout document, which would seem appropriate for the subject matter. In that case, margins are pretty much irrelevant because they apply to the main text layer, which doesn't exist. All objects in Page Layout are floating and can be positioned anywhere, including off the page. You just center the left pages on (in your example) on a layout line 4" from the left edge of the page and the right pages on a line at 4 ½."
    It's a little hard to see from your photo, but the ruler measurements don't seem to have any relationship to your page so there may be some other issue here. (If you type Command Shift 4, you get a cursor which you can drag across the screen to capture a screenshot, which will be easier and more readable.)
    Jeff

  • Patch for Bind on OS X server 10.3.9 ?

    Where can I find the patch for Bind for my OS X server 10.3.9 (we have 9.3.4-1) ?

    Or better yet, see if you can get shasum working,
    http://search.cpan.org/~mshelor/Digest-SHA-PurePerl-5.47/shasum
    http://search.cpan.org/src/MSHELOR/Digest-SHA-PurePerl-5.47/shasum
    You'll need to use CPAN to get Digest::SHA installed,
    which (if you've not used CPAN before) will be an adventure in itself.
    An absolutely necessary one. If you want to be empowered to have the option to handle a matter such as this on your own (a worthy goal !!), then using CPAN should already be part of your toolkit.
    From there, put shasum in (for example) /usr/local/bin
    Then you can use
    /usr/local/bin/shasum -a 512 /Users/yournamehere/Downloads/bind-9.4.2-P1.tar.gz

  • Bean methods for binding

    How should the methods of my TestBean look like when i use the following selectionlist:
    <h:selectOneMenu id="choose" binding="#{TestBean.selectList}"/>
    when I would like to show a list and preselect one of the values
    regards

    i am new to jsf and tried to make a selectbox working via binding. Searching through examples and documentation i have found not much information for binding backing beans.
    Is my previous post a vague or silly question or is binding generally not used and has nobody experience with binding?
    Thanks for any reaction.

Maybe you are looking for

  • DID SYSTEM RESTORE, LOST ITUNES WONT RE-INSTALL

    Right, this one is bugging me. ive just got an ipod nano for my birthday (november) and have installed all my songs onto it. but then after a few weeks of having itunes my pc decided it didnt like its sound device, so the sound on my pc completley va

  • HTML Client: How to get the content/value of a custom control?

    I made two Custom Controls named, "CustomControl_1" and "CustomControl_2".  In the render function of "CustomControl_1", how to access the value of "CustomControl_2"? For example, myapp.BrowseOrders.CustomControl_2_render = function (element, content

  • Iphone is synced to another itunes library

    I posted this earlier in the wrong place. I am having a problem syncing my iphone. I recently had to reload my vista OS and now I am getting the above error message. I hit the "accept" button by accident and had to unplug my phone quickly. I lost my

  • Set DISPLAY ONLY based on privilege

    Hello. I'm using Apex 4.0. I'm trying to enable the Read Only function based on a Privilege assigned to a User. For instance, I have several users where their privilege is set to 'View' in the Access Control List. How do I code for this. On the "Read

  • Getting a parent folder WITHOUT IfsFileSystem

    Hi, We discovered that using the IfsFileSystem class drastically increases access times to iFS public objects. As a result we are considering phasing out use of this class in favour of other API calls, which appear to be faster. Unfortunately we cann