Problem when perform acceptChanges method on CachedRowset twice

Hi,
i'm using a CachedRowSet in my application.
All goes fine, when i retrieve data from database. But when i'm trying to update my data more than once, a SyncProviderException occur.
This is my code:
crset.updateRow();
crset.acceptChanges(DBProperties.getInstance().getConn());
crset.updateString("first_name", "new val");
crset.updateRow();
crset.acceptChanges(DBProperties.getInstance().getConn());
The first call of acceptChanges work fine, but the second call to the same method throw a SyncProviderException.
What's wrong with this code?
Message was edited by:
zorgz

>
How Can I loop through a piece of code, as if I am running that code for the first time. (i.e. How can I clear all the variables and data and start a new clean instance).
>
Simple - the scope of variables is limited to the block that the variable is in
1. define a new block for that piece of code using { and }.
2. inside the block reinitialize the variables that the code in the block uses
3. don't use any variables that are NOT initialized at the start of the block
This sample code should show you the concept. It has a variable 'j' that is used outside the block to contain the loop iteration number and is used inside the block to contain the value 47.
Note that setting the variable to 47 inside the block has no effect on the value that was set outside the block.
public class Test3 {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++)
            int j;
            j = i;
            System.err.println("Outside j = " + j);
            {   // this begins a new block
                j = 47;  // initialize ALL variables used inside the block here - don't use ANY vars that are not initialized at the block start
                System.err.println("Inside j = " + j);
            }   // this ends the new block - the 'inside' value of 'j' no longer exists
Outside j = 0
Inside j = 47
Outside j = 1
Inside j = 47
Outside j = 2
Inside j = 47
Outside j = 3
Inside j = 47
Outside j = 4
Inside j = 47

Similar Messages

  • Problem when calling a method

    hello,
    I have a problem when Im trying to call the make method that in the Tree class.
    Im calling it from the main method like you can see and It writes:
    -Cannot make a static reference to the non-static method make() from the type Tree.
    Can anyone help me please and tell me what is the problem?
    Im using Eclipse 3.1.2
    Thank you.
    //import java.lang.Object;
    //import java.lang.reflect.Array;
    //structure of the node
    class mainClass extends Tree {
         public static void main(String args[]){
              Tree.make();
              //char temporary[]=new char[9];
              //Tic_Tac_Toe pointersToNodes[]=new Tic_Tac_Toe[9];
              //for(j=0;j<9;j++)
                   //temporary[j]='b';     
    public class Tic_Tac_Toe {
         char currentCaseVector[]=new char[9];
         Tic_Tac_Toe PointersToNodes[]=new Tic_Tac_Toe[9];
         int evaluation;
    //class that builds the game tree
    class Tree {
         public Tic_Tac_Toe T1=new Tic_Tac_Toe();
         //char currentCaseVector[]=new char[9];
         public char currentSign;
         Tree(){
             resetCurrentCaseArray(T1);
             //T1.currentCaseVector.setSize(9);
              //System.out.println(T1.currentCaseVector.elementAt(2));
         void make(){
              Tic_Tac_Toe T = new Tic_Tac_Toe();
              int howMuchCloser,i;
              Tree tree=new Tree();
              for(i=0;i<9;i++)
                   T.currentCaseVector='b';
              howMuchCloser=1;
              for(i=0;i<9;i++){
                   T.PointersToNodes[findAvailablePlaceOnPointersToNodes(T)]=tree.buildNewTree(1,'o',T.currentCaseVector,howMuchCloser);
                   howMuchCloser++;
         Tic_Tac_Toe buildNewTree(int i,char currentSign,char temp[],int howMuchCloser)throws ArrayIndexOutOfBoundsException{
              int j=0;
              //int howMuchCloser=1;
              //for(j=i;j<9;j++){
              Tic_Tac_Toe T1=new Tic_Tac_Toe();
              currentSign=changeSign(currentSign);
              resetCurrentCaseArray(T1);
              //try{
              setBoard(T1.currentCaseVector,temp,howMuchCloser,currentSign);
              //catch(ArrayIndexOutOfBoundsException e){
                   //System.out.print("ArrayIndexOutOfBoundsException");
                   //System.out.println(i);          
              printTest(T1);
              temp=T1.currentCaseVector;
              howMuchCloser=1;
              if((isFull(T1.currentCaseVector))==true)
                   return T1;
              if(checkWin(T1)){
                   return T1;
              //printTest(T1);
                   //break;
              for(j=i;j<9;j++){
                   T1.PointersToNodes[findAvailablePlaceOnPointersToNodes(T1)]=buildNewTree(i+1,currentSign,temp,howMuchCloser);                              
                   howMuchCloser++;
                        //if(checkIfBlankEqualOne(T1.currentCaseVector)==false)
                   //howMuchCloser++;
                   //T1.PointersToNodes[findAvailablePlaceOnPointersToNodes(T1)]=buildNewTree(i+1,currentSign,temp);
         return T1;
         int findCloser(char charArray[],int howMuchCloser){
              int i;
              for(i=0;i<9;i++){
                   if (charArray[i]=='b'){
                        howMuchCloser--;
                   else
                        continue;
                   if (howMuchCloser==0)
                        break;     
              return i;
         void setBoard(char current[],char previous[],int howMuchCloser,char iksOrCircle){
                   int i;
                   for(i=0;i<9;i++){
                        current[i]=previous[i];/******/
                   current[findCloser(current,howMuchCloser)]=iksOrCircle;
         char changeSign(char sign){
              if(sign=='x')
                   return 'o';
              else
                   return 'x';
         boolean isFull(char array[]){
              int i;
              for(i=0;i<9;i++){
                   if(array[i]=='b'){
                        return false;
              return true;
         void resetCurrentCaseArray(Tic_Tac_Toe T1){
              for(int i=0;i<9;i++)
                   T1.currentCaseVector[i]='b';
         boolean checkWin(Tic_Tac_Toe T1){
              int count1=0;
              int count2=0;
              //checking columns
              int i,j;
              for(i=0;i<3;i++){
                   for(j=i;j<(i+7);j+=3){
                        if(T1.currentCaseVector[j]=='x')
                             count1++;
                        if(T1.currentCaseVector[j]=='o')
                             count2++;
                   if(count1==3)
                        return true;
                   if(count2==3)
                        return true;
                   count1=0;
                   count2=0;
              //checking rows
              for(i=0;i<7;i+=3){
                   for(j=i;j<(i+3);j++){
                        if(T1.currentCaseVector[j]=='x')
                             count1++;
                        if(T1.currentCaseVector[j]=='o')
                             count2++;
                   if(count1==3)
                        return true;
                   if(count2==3)
                        return true;
                   count1=0;
                   count2=0;
              //checking diagonal
              for(i=0;i<9;i+=4){
                   if(T1.currentCaseVector[i]=='x')
                        count1++;
                   if(T1.currentCaseVector[i]=='o')
                        count2++;
              if(count1==3)
                   return true;
              if(count2==3)
                   return true;
              count1=0;
              count2=0;
              for(i=2;i<7;i+=2){
                   if(T1.currentCaseVector[i]=='x')
                        count1++;
                   if(T1.currentCaseVector[i]=='o')
                        count2++;
              if(count1==3)
                   return true;
              if(count2==3)
                   return true;
              return false;
         public int findAvailablePlaceOnPointersToNodes(Tic_Tac_Toe tic_tac_toe){
              int i;
              for(i=0;i<9;i++)
                   if(tic_tac_toe.PointersToNodes[i]==null)
                        return i;
              return -1;
         void printTest(Tic_Tac_Toe T1){
              for(int i=0;i<9;i++)
                   System.out.println(T1.currentCaseVector[i]);
         boolean checkIfBlankEqualOne(char array[]){
              for(int i=0;i<9;i++){
                   if(i<8)
                        if(array[i]=='b')
                             return false;
              if(array[8]=='b')
                   return true;
              return false;
         /*void makeFirst(char temporary[]){
              for(int i=0;i<9;i++)
                   temporary[i]='b';

    I have two things in mind:
    1. either modify the make() in class Tree as static
    static void make() {//caution u may have to worry about instance variables referenced under this method2.
    under your main static method, invoke it like this instead
    mainClass mc=new mainClass();
    mc.make();//not Tree.make();

  • SOLAR01: Problem when entering the same T-Code twice

    Hi all,
    I am encountering a problem with Solution Manager 4.0, transaction SOLAR01.
    When entering the same transaction code twice (in the Transactions tab) for a particular Business Process, I get the following error message:
    "The specified key already exists"
    Therefore, unless I flag the object for deletion (by selecting the row and choosing the "Delete Row" option), I am not able to proceed further.
    Has anybody else encountered this problem and is there a proper workaround?
    Thank you,
    Orestis

    Hi Jason,
    Thank you for your post.
    The reason for entering the same transaction twice is to test the sequence of the business process.
    So, for a specific system integration scenario, I may need to create a customer in one transaction and return to that same transaction later to modify the customer (this is just an example). As one transaction may be used for different tasks at different points in time, I would like to reflect that sequence in the Solution Manager.
    Kindly advise if you believe this is not the correct approach or if Solution Manager does not support this kind of "sequencing".
    Thanks for your support!
    Orestis

  • Problem when performing a system recovery on Envy 15 1050nr

    I have a problem when  peforming a factory reset using the recovery discs (3 discs) I created shortly after I purchased the laptop.
    when the recovery process gets to 83%, it gives me the error below :
    "Recovery Manager could not restore your computer. Please contact HP support. Error code: 0xe0f00013"
    I ran HD self test, which doesnt show any problems.
    I have tried the solution in this thread http://h30434.www3.hp.com/t5/Notebook-Recovery/quot-BOOTMGR-is-missing-quot/m-p/1066739/highlight/tr..., but it doesn't work.
    can anyone help me with this?
    Thanks in advance 
    Leon

    The simplest way to reinstall iPhoto and iMovie is to download Pacifist and then extract the relevant applications from the Software Restore Discs.
    Pacifist comes with instructions; this is not a difficult operation and there is no need for erase & install to recover the applications.
    Pacifist is Shareware, but you need not pay the fee in order to use it. Every time that you open Pacifist you will be prompted to purchase a licence. If you feel that Pacifist is worth the money (and I think that it is), you can purchase a licence at any stage.
    If you're a plonker like me, then purchasing a licence will provide justification for third party developers like CharlesSoft to save the day for the rest of us.
    Good luck!

  • File size problem when performing XML Transformation into Excel

    Hi All,
    We are performing XML Transformation in ABAP which can open in Excel and saving to common share. But the file size of excel is around 50MB. After opening the excel and save with diffrent name the file is getting compressed and its below 1MB. So what kind of settings does we need to make to the transformation code which will create the excel files with less memory/size??
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="AAAAAAA"/>
    <tt:root name="BBBBBBBB"/>
    <tt:root name="CCCCCCCC"/>
    <tt:template>
    <?mso-application progid="Excel.Sheet"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
       <ProtectObjects>True</ProtectObjects>
       <ProtectScenarios>True</ProtectScenarios>
      </WorksheetOptions>
    </Worksheet>
    </Workbook>
    </tt:template>
    </tt:transform>
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
    </DocumentProperties>
    <CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <ContentTypeId dt:dt="string">0x01010049B4763FE606154C9C9BC639FE7EE179</ContentTypeId>
    </CustomDocumentProperties>
    <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
      <Colors>
       <Color>
        <Index>0</Index>
        <RGB>#FF0000</RGB>
       </Color>
       <Color>
        <Index>1</Index>
        <RGB>#FFE4B5</RGB>
       </Color>
       <Color>
        <Index>2</Index>
        <RGB>#FFF8DC</RGB>
       </Color>
       <Color>
        <Index>3</Index>
        <RGB>#000000</RGB>
       </Color>
      </Colors>
    </OfficeDocumentSettings>
    <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
      <WindowHeight>7305</WindowHeight>
      <WindowWidth>11340</WindowWidth>
      <WindowTopX>0</WindowTopX>
      <WindowTopY>0</WindowTopY>
      <TabRatio>334</TabRatio>
      <ProtectStructure>True</ProtectStructure>
      <ProtectWindows>False</ProtectWindows>
    </ExcelWorkbook>
    </DocumentProperties>
    <CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <ContentTypeId dt:dt="string">0x01010049B4763FE606154C9C9BC639FE7EE179</ContentTypeId>
    </CustomDocumentProperties>
    <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">

    Hi Raghu,
    have a look at the XLSX file generated by Excel, you'll see that it's simply a zipped file. So you can't do it with a transformation, but you need CL_ABAP_ZIP class. I advise you to look at the abap2xslx project ABAP code (currently 3.0) to see how it works.
    Best regards,
    Sandra

  • Problem when exporting a virtual disk backend twice

    I have a t5140 server, with two 146G disks.
    I have created 2 guest domains ,and want to install solaris for them.
    Followed by the Logical Domains (LDoms) 1.0.3 Administration Guide , using the following command to export the second disk as a virtual disk backend multiple times:
    ldm add-vdsdev /dev/dsk/c1t1d0s2 vdisk1@priamry-vds0
    ldm add-vdsdev /dev/dsk/c1t1d0s2 vdisk2@primary-vds0
    but it said:
    Device /dev/dsk/c1t1d0s2 already used by another server in guest primary!

    I have a t5140 server, with two 146G disks.
    I have created 2 guest domains ,and want to install solaris for them.
    Followed by the Logical Domains (LDoms) 1.0.3 Administration Guide , using the following command to export the second disk as a virtual disk backend multiple times:
    ldm add-vdsdev /dev/dsk/c1t1d0s2 vdisk1@priamry-vds0
    ldm add-vdsdev /dev/dsk/c1t1d0s2 vdisk2@primary-vds0
    but it said:
    Device /dev/dsk/c1t1d0s2 already used by another server in guest primary!

  • Performance problem when printing - table TSPEVJOB big size

    Hi,
    in a SAP ERP system there is performance problem when printing because table TSPEVJOB has many millions of entries.
    This table has reached a considerable size (about 90 Gb); db size is 200 Gb.
    Standard reports have been scheduled correctly and kernel of SAP ERP system is updated.
    I've tried to scheduled report RSPO1041 (instead of RSPO0041) to reduce entries but it is not possible run it during normal operations because it locks the printing system.
    Do you know why this table has increased ?
    Are there any reports to clean this table or other methods ?
    Thanks.
    Maurizio Manera

    Dear,
    Please see the Note 706478 - Preventing Basis tables from increasing considerably and
    Note 195157 - Application log: Deletion of logs.
    Note 1566659 - Table TSPEVJOB is filled excessively
    Note 1293472 - Spool work process hangs on semaphore 43
    Note 1362343 - Deadlocks in table TSP02 and TSPEVJOB
    Note 996455 - Deadlocks on TSP02 or TSPEVJOB when you delete
    For more information see the below link as,
    http://www.sqlservercurry.com/2008/04/how-to-delete-records-from-large-table.html
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=91179
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83525
    If any doubts Let me know.
    Thomas
    Edited by: thomas_raja on Aug 7, 2011 12:29 PM

  • Problem when creating CAF Entity Service finder Methods

    Guys,
    Can any one please suggest me appropriatly to the below problem.
    I am using NWDS 7.06. I have no problem when creating CAF project, Application Service and Entity Service even.
    But in the Entity Service:
    1. Add a string or longtext attribute.
    2. try to create a custom finder method in operations tab, during that operation i am  not finding the attribute which i have created in step1.
    That means i am not able to create the my own finder methods with parameters.
    I was able to do that in some version long ago but i have forgotten that NWDS version.
    summary of Problem Is: " Cannot create custom methods with custom parameters in Entity Service"
    Can you please suggest me the right version or a solution to this problem on urgent basis please.
    I promise you that i will give you full points to you who ever gives me the right solution.
    Please mail your suggestions to [email protected]

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Performance problem when running a personalization rule

    We have a serious performance problem when running a personalization rule.
    The rule is defined like this:
    Definition
    Rule Type: Content
    Content Type: LoadedData
    Name: allAnnouncements
    Description: all announcements of types: announcement, deal, new release,
    tip of the day
    If the user has the following characteristics:
    And when:
    Then display content based on:
    (CONTENT.RessourceType == announcement) or (CONTENT.RessourceType == deal)
    or (CONTENT.RessourceType == new release) or (CONTENT.RessourceType == tip
    of the week)
    and CONTENT.endDate > now
    and CONTENT.startDate <= now
    END---------------------------------
    and is invoked in a JSP page like this:
    <%String customQuery = "(CONTENT.language='en') && (CONTENT.Country='nl'
    || CONTENT.Country='*' ) && (!(CONTENT.excludeIds like '*#7#*')) &&
    (CONTENT.userType ='retailer')"%>
    <pz:contentselector
    id="cdocs"
    ruleSet="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitio
    nHome/b2boost"
    rule="allAnnouncements"
    sortBy="startDate DESC"
    query="<%=customQuery%>"
    contentHome="<%=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>" />
    The customQuery is constructed at runtime from user information, and cannot
    be constructed with rules
    administration interface.
    When I turn on debugging mode, I can see that the rule is parsed and a SQL
    query is generated, with the correct parameters.
    This is the generated query (with the substitutions):
    select
    WLCS_DOCUMENT.ID,
    WLCS_DOCUMENT.DOCUMENT_SIZE,
    WLCS_DOCUMENT.VERSION,
    WLCS_DOCUMENT.AUTHOR,
    WLCS_DOCUMENT.CREATION_DATE,
    WLCS_DOCUMENT.LOCKED_BY,
    WLCS_DOCUMENT.MODIFIED_DATE,
    WLCS_DOCUMENT.MODIFIED_BY,
    WLCS_DOCUMENT.DESCRIPTION,
    WLCS_DOCUMENT.COMMENTS,
    WLCS_DOCUMENT.MIME_TYPE
    FROM
    WLCS_DOCUMENT
    WHERE
    ((((WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'announcement'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'deal'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'new release'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = ''
    AND WLCS_DOCUMENT_METADATA.VALUE = 'tip of the week'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'press release'
    AND (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'endDate'
    AND WLCS_DOCUMENT_METADATA.VALUE > '2001-10-22 15:53:14.768'
    AND (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'startDate'
    AND WLCS_DOCUMENT_METADATA.VALUE <= '2001-10-22 15:53:14.768'
    AND ((WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'language'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'en'
    AND ((WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'Country'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'nl'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'Country'
    AND WLCS_DOCUMENT_METADATA.VALUE = '*'
    AND NOT (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'excludeIds'
    AND WLCS_DOCUMENT_METADATA.VALUE LIKE '%#7#%' ESCAPE '\'
    AND (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'userType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'retailer'
    At this moment, the server makes the user wait more than 10 min for the
    query to execute.
    This is what I found out about the problem:
    1)When I run the query on an Oracle SQL client (We are using Oracle 8.1.7.0)
    , it takes 5-10 seconds.
    2)If I remove the second term of (CONTENT.Country='nl' ||
    CONTENT.Country='*' ) in the custom query,
    thus retricting to CONTENT.Country='nl', the performance is OK.
    3)There are currently more or less 130 records in the DB that have
    Country='*'
    4)When I run the page on our QA server (solaris), which is at the same time
    our Oracle server,
    the response time is OK, but if I run it on our development server (W2K),
    response time is ridiculously long.
    5)The problem happens also if I add the term (CONTENT.Country='nl' ||
    CONTENT.Country='*' )
    to the rule definition, and I remove this part from the custom query.
    Am I missing something? Am I using the personalization server correctly?
    Is this performance difference between QA and DEV due to differences in the
    OS?
    Thank you,
    Luis Muñiz

    Luis,
    I think you are working through Support on this one, so hopefully you are in good
    shape.
    For others who are seeing this same performance issue with the reference CM implementation,
    there is a patch available via Support for the 3.2 and 3.5 releases that solves
    this problem.
    This issue is being tracked internally as CR060645 for WLPS 3.2 and CR055594 for
    WLPS 3.5.
    Regards,
    PJL
    "Luis Muniz" <[email protected]> wrote:
    We have a serious performance problem when running a personalization
    rule.
    The rule is defined like this:
    Definition
    Rule Type: Content
    Content Type: LoadedData
    Name: allAnnouncements
    Description: all announcements of types: announcement, deal, new release,
    tip of the day
    If the user has the following characteristics:
    And when:
    Then display content based on:
    (CONTENT.RessourceType == announcement) or (CONTENT.RessourceType ==
    deal)
    or (CONTENT.RessourceType == new release) or (CONTENT.RessourceType ==
    tip
    of the week)
    and CONTENT.endDate > now
    and CONTENT.startDate <= now
    END---------------------------------
    and is invoked in a JSP page like this:
    <%String customQuery = "(CONTENT.language='en') && (CONTENT.Country='nl'
    || CONTENT.Country='*' ) && (!(CONTENT.excludeIds like '*#7#*')) &&
    (CONTENT.userType ='retailer')"%>
    <pz:contentselector
    id="cdocs"
    ruleSet="jdbc://com.beasys.commerce.axiom.reasoning.rules.RuleSheetDefinitio
    nHome/b2boost"
    rule="allAnnouncements"
    sortBy="startDate DESC"
    query="<%=customQuery%>"
    contentHome="<%=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>" />
    The customQuery is constructed at runtime from user information, and
    cannot
    be constructed with rules
    administration interface.
    When I turn on debugging mode, I can see that the rule is parsed and
    a SQL
    query is generated, with the correct parameters.
    This is the generated query (with the substitutions):
    select
    WLCS_DOCUMENT.ID,
    WLCS_DOCUMENT.DOCUMENT_SIZE,
    WLCS_DOCUMENT.VERSION,
    WLCS_DOCUMENT.AUTHOR,
    WLCS_DOCUMENT.CREATION_DATE,
    WLCS_DOCUMENT.LOCKED_BY,
    WLCS_DOCUMENT.MODIFIED_DATE,
    WLCS_DOCUMENT.MODIFIED_BY,
    WLCS_DOCUMENT.DESCRIPTION,
    WLCS_DOCUMENT.COMMENTS,
    WLCS_DOCUMENT.MIME_TYPE
    FROM
    WLCS_DOCUMENT
    WHERE
    ((((WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'announcement'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'deal'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'new release'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = ''
    AND WLCS_DOCUMENT_METADATA.VALUE = 'tip of the week'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'RessourceType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'press release'
    AND (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'endDate'
    AND WLCS_DOCUMENT_METADATA.VALUE > '2001-10-22 15:53:14.768'
    AND (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'startDate'
    AND WLCS_DOCUMENT_METADATA.VALUE <= '2001-10-22 15:53:14.768'
    AND ((WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'language'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'en'
    AND ((WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'Country'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'nl'
    )) OR (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'Country'
    AND WLCS_DOCUMENT_METADATA.VALUE = '*'
    AND NOT (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'excludeIds'
    AND WLCS_DOCUMENT_METADATA.VALUE LIKE '%#7#%' ESCAPE '\'
    AND (WLCS_DOCUMENT.ID IN (
    SELECT
    WLCS_DOCUMENT_METADATA.ID
    FROM
    WLCS_DOCUMENT_METADATA
    WHERE
    WLCS_DOCUMENT_METADATA.ID = WLCS_DOCUMENT.ID
    AND WLCS_DOCUMENT_METADATA.NAME = 'userType'
    AND WLCS_DOCUMENT_METADATA.VALUE = 'retailer'
    At this moment, the server makes the user wait more than 10 min for the
    query to execute.
    This is what I found out about the problem:
    1)When I run the query on an Oracle SQL client (We are using Oracle 8.1.7.0)
    , it takes 5-10 seconds.
    2)If I remove the second term of (CONTENT.Country='nl' ||
    CONTENT.Country='*' ) in the custom query,
    thus retricting to CONTENT.Country='nl', the performance is OK.
    3)There are currently more or less 130 records in the DB that have
    Country='*'
    4)When I run the page on our QA server (solaris), which is at the same
    time
    our Oracle server,
    the response time is OK, but if I run it on our development server (W2K),
    response time is ridiculously long.
    5)The problem happens also if I add the term (CONTENT.Country='nl' ||
    CONTENT.Country='*' )
    to the rule definition, and I remove this part from the custom query.
    Am I missing something? Am I using the personalization server correctly?
    Is this performance difference between QA and DEV due to differences
    in the
    OS?
    Thank you,
    Luis Muñiz

  • TS1967 i have a problem when i try to update or install apps in my ipad, and a message come up says "can not connect to Itunes Store", anyone know why? please advise. however i had update all my detail of payment method.

    i have a problem when i try to update or install apps in my ipad, and a message come up says "can not connect to Itunes Store", anyone know why? please advise. however i had update all my detail of payment method.

    Settings > General > Reset > Reset Network Settings.
    Power cycle the router.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Performance problem when using CAPS LOCK piano input

    Dear reader,
    I'm very new to Logic and am running into a performance problem when using the CAPS LOCK-piano-keyboard for input of an instrument: when I'm not recording everything is fine and the program instantly responds on my keystrokes, but as soon as I go into record-mode there is sometimes a delay in the response-time (so I press a key and it takes up to half a second longer before the note is actually played).
    Is there anything to do about this to improve performance (for example turning of certain features of the application), or should I never use the CAPS LOCK keyboard anyway and go straight for an external MIDI-keyboard?
    Thanks and regards,
    Tim Metz

    Does your project have Audio tracks and just how heavy it is, how many tracks? Also, what kind of Software Instrument do you use?

  • I have a problem when I loading application. It shown your payment method was declined due to last payment problem which I've already  paid.

    I have a problem when I loading application.
    It shown your payment method was declined due to last payment problem
    which I've already  paid.

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • [svn] 3363: Fix performance problem when changing multiple DisplayObject-dependent properties .

    Revision: 3363
    Author: [email protected]
    Date: 2008-09-25 11:58:56 -0700 (Thu, 25 Sep 2008)
    Log Message:
    Fix performance problem when changing multiple DisplayObject-dependent properties. The call to assignDisplayObjects() is now batched up into the next commitProperties() call.
    Bugs: SDK-17033
    Reviewer: Deepa
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17033
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as

    hello sir,
    i want to your help
    i was installed fresh windows 7 via cd rom and then after installed all software.
    and now after 1 day customer complained me that cd rom not read any cd and i m also check when i insurt cd so its not read and when i am double click on cd rom icon its eject so what i do for that please reply on my email address.
    [text removed for privacy]
    VIMAL

  • Resource scope when performing capacity leveling with Optimization method

    Hello,
    Can anyone tell me if, when performing the Optimization method in Capacity Leveling for transportation resources production resources are validated? I am currently testing this and I found out that if the capacity variant of the production resource is no 00, 01 or 02 the system will give an error message when trying to level a transportation resource, the message indicates that there is no available capacity for the production resource.
    When reading documentation in help.sap it appears to me that Capacity Leveling should only focus on the resource to be level not in other resources and in this case my transportation resource has available capacity that shouldn't be affected for master data errors of production resources...
    Could somebody help me clarify this issue?, I have already open a message and they suggested me to change the capacity variant of the production resource, evidently when I do this everything works but I still don't understand why capacity leveling, with Optimization method, of a transportation resources is checking on production resources.
    Thanks!
    Erika

    Hello Ian,
    I am not talking about the SNP Optimization Run that is certainly manipulated by the constraints that you update on the optimization profile; in this case "Capacity Leveling with Optimization Method" the constraints are automatically set by the system and what I need to know is if these constraints are considering not only the resource that is to be leveled (in this case the transportation resource) but also the production resource.
    Sorry but your answer does not correspond to my request, because you are talking about the Planning Optimization run and I am talking about  "Capacity Leveling with Optimization Method".
    Erika

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

Maybe you are looking for

  • Fiscal year variant VI is not maintained for calendar year 2013 Message no. FGV002

    hi While i asining chart of depreciation to company code i am getting the above error could any one help in resolving this. Thanks, Rakesh Reddy

  • Web Services with POST Bindings

    Hi, I am creating a web service with a method which takes a value from the user and inserts the value into the database .Now the value which is taken is of type 'long' and cannot be sent through the URL. As far as my understanding goes, the default S

  • Lumia 1520 - Is it true that the SIM reader is bui...

    Hello. I have a Nokia 1520 and my sim reader it's broke and I actually use the phone with no call function from 3 months. I go to Nokia care and they say the SIM reader it's built-in with the LCD ...... It's that true? I cant repair the phone just wi

  • Support Arabic language in adobeformscentral ?

    Hi to all, I create a form using adobeformscentral , it is amazing and I went to pay for Plus membership. but before I pay I noticed that I can't fill Arabic character and give me this error: Only Latin-1 characters are supported. Please modify your

  • Can Flash fuse together adjoining vector areas of same colour ?

    Hi, Can I select all areas of the same fill/line colour attributes and tell flash to fuse them together into one new area so removing all the internal vector edges ? Where is that command ? Desperately wondering how I can reduce the complexity of som