Multiple property value rows for a single user property

I use user properties to collect information about utilization of functionality.
My code sets properties in this way:
StringTokenizer st = new StringTokenizer (countersList, ",");
java.security.Principal pr = req.getUserPrincipal();
String userName = pr != null ? pr.getName() : null;
try
ProfileWrapper profilewrapper = ProfileFactory.getProfile(userName,null);
while (st.hasMoreElements())
String counterId=st.nextToken();
Long n = (Long) profilewrapper.getProperty("CounterUserProfile",counterId);
if (n != null)
n = new Long (n.longValue() + 1);
else
n = new Long (1);
profilewrapper.setProperty("CounterUserProfile",counterId,n);
catch (Exception e)
          e.printStackTrace();
After some thousands access, looking in PROPERTY_VALUE table I found duplicated row
for same counter (user specific).
PROPERTY_KEY_ID ENTITY_ID MODIFIED_ LONG_VALUE PROPERTY_VALUE_ID
PROPERTY_SET_NAME
4008 28002 03-MAY-02 23 55678
CounterUserProfile
4008 28002 03-MAY-02 1 55680
CounterUserProfile
10002 22001 28-MAR-02 1 40017
CounterUserProfile
10002 22001 28-MAR-02 1 40018
CounterUserProfile
12001 22118 01-MAY-02 2 55448
CounterUserProfile
12001 22118 01-MAY-02 1 55449
CounterUserProfile
I use a single server instance with no clustering.
Any solution?
Thanks, Stefano

Stefano,
Please open a case with support, this looks like a bug in our code. They
will collect your configuration information which should help isolate the
problem.
Thanks,
Daniel Selman
"Stefano Crespi" <[email protected]> wrote in message
news:3cea49d4$[email protected]..
>
I use user properties to collect information about utilization offunctionality.
My code sets properties in this way:
StringTokenizer st = new StringTokenizer (countersList, ",");
java.security.Principal pr = req.getUserPrincipal();
String userName = pr != null ? pr.getName() : null;
try
ProfileWrapper profilewrapper =ProfileFactory.getProfile(userName,null);
>
while (st.hasMoreElements())
String counterId=st.nextToken();
Long n = (Long)profilewrapper.getProperty("CounterUserProfile",counterId);
if (n != null)
n = new Long (n.longValue() + 1);
else
n = new Long (1);
profilewrapper.setProperty("CounterUserProfile",counterId,n);
catch (Exception e)
e.printStackTrace();
After some thousands access, looking in PROPERTY_VALUE table I foundduplicated row
for same counter (user specific).
PROPERTY_KEY_ID ENTITY_ID MODIFIED_ LONG_VALUE PROPERTY_VALUE_ID
PROPERTY_SET_NAME
4008 28002 03-MAY-02 23 55678
CounterUserProfile
4008 28002 03-MAY-02 1 55680
CounterUserProfile
10002 22001 28-MAR-02 1 40017
CounterUserProfile
10002 22001 28-MAR-02 1 40018
CounterUserProfile
12001 22118 01-MAY-02 2 55448
CounterUserProfile
12001 22118 01-MAY-02 1 55449
CounterUserProfile
I use a single server instance with no clustering.
Any solution?
Thanks, Stefano

Similar Messages

  • Multiple AD account in single domain for a single user

    Hi,
    Does OIM support multiple AD account in single domain for a single user?
    Scenario 1 :- If the multiple accounts already exists in AD can I pull it from AD to OIM for single user.
    Scenraio 2:- Does OIM allow creation of multiple account in AD for a single user, when requested from OIM?
    Thanks,

    yes. this is possible. OIM allow this.
    obviously the recon rule would be employee number or anything other than ' sAmAccontName' for target recon
    while provisioning make sure you are generating unique sAmAccountName and Common Name(if in same OU) for same user
    If you maintain above no issue having multiple account for a sing user in single domain

  • IWork Licensing -Is Retail License for a single user or multiple users

    I have a a Retail Version of iWork '08. How do I determine if this is for a single user or multiple users?
    Thank you

    So the next question is can I "unregister" this from my iMac thus allowing me to either reistall it on another machine or perhaps sell it?
    Yes, you can. Apple doesn't "track" serial numbers, but you are doing the right thing by removing iWork '08 & it's registration. The file that keeps the serial number is the com.apple.iWork08.plist found in HD > Library > Preferences. This is the Library on the first level of your HD, not your user Library.

  • LightDM greeter for a single-user system

    I'm interested in using lightDM as my display manager. However, there seem to be a lot of greeters that are focused on a good experience for multi-user systems. All I'm have is a single-user system, so I'm looking for your guy's opinions on what the "best" lightDM greeter is for a single-user system. I want it to:
    * Be pretty, even if it must be a bit more heavyweight. I consider "pretty" to mean modern/flat
    * Be customizeable, hopefully with at LEAST customizeable colors, and preferably background images
    * Have either a very modern/flat icon set, if there are icons at all, or customizeable icons
    * Not force me to select my account every time I login, it should automatically "select" my account so all I have to do is enter the password. I *might* budge on this one if the design is *really* good
    I'm ok if it has support for multiple users (I'm pretty sure every greeter out there will have that), but I don't want it to reserve too much space on the screen for multiple users, and I want it to still be good with one user. For example, I don't want it to be like crowd greeter, where it's nearly useless without many user accounts

    Why not just test a number of greeters and evaluate which one most suits your use case?  That's the common approach with most things.
    You could also try other DMs like LXDM for example, in order to see how they compare.

  • Step by step to disable Folder Redirection for a single user - Windows 7 and SBS 2011 Essentials

    OK...I got chewed (by someone I have a lot of respect for) for pounding on an old thread, so I'm starting a new one. I've got the Windows 7 Value Pack Plugin for SBS 2011 Essentials and Folder Redirection is working for everybody. What I'm looking for is
    exactly how to go into Group Policy and disable the FD for a single user. I'm not looking for quick, incomplete answers. If you don't have time to give me the 'For Dummies' version, don't bother. Sorry, but I've done all the Googling I can stand for one day
    and I'm over it! (and a little grumpy)
    Thanks in advance!
    Wayne S. CompTIA A+ CompTIA Network+ Microsoft MCP

    ... I've got the Windows 7 Value Pack Plugin for SBS 2011 Essentials and Folder Redirection is working for everybody. What I'm looking for is exactly how to go into Group Policy and disable the FD for a single user. I'm not looking for quick, incomplete
    answers....
    Hi Wayne,
    Here's what I'd do. 
    1) create a Security Group in your AD environment. Call it 'Folder Redirection Members' or something like that. Put all the user accounts in your AD environment who you want to have their folders continue to be redirected to the server, do not include the
    one user who you wish to exclude.  in other words, you're going to use a specific security group to target the Folder Redirection policy (right now, it's Domain Users, which is everyone).
    2) Edit the Group Policy that the W7PP created in your AD environment. It's likely called "W7PVP Folder Redirection".  Start with verification under the Settings tab, expand Folder Redirection beneath User Configuration states that
    Policy Removal Behaviouris set to Restore Contents.  Then proceed using the Editor, to make adjustments under the Scope tab; verify membership in Security Filtering.  Remove Domain Users,
    add in Folder Redirection Members (or whatever you named your group in step 1).
    3) on your workstation that your user you are applying the change to disable folder redirection, Log on to the domain account while connected to your network, elevate a command prompt, and perform a 'gpupdate /force' command and then reboot your computer. 
    Folder redirection configuration should be removed from the system and redirected contents should be restored back to your local path. Verify with inspection of the My Documents or other folders.
    Hope this helps. Keep in mind, no warranty implied or expressed in this advice.
    Try not to be so darn grumpy. :-/
    Jason Miller B.Comm (Hons), MCSA:Win7, MCITP, Microsoft MVP

  • Multiple Null Value Ids for a LOV

    I have a list of POCs that I would like to sort by name, and I need to have TBD and N/A in there as well.
    I could add them to the table, but then they will be sorted with the other names.
    I'd like to have them as 'Include "No Selection" Item: Labeled Item (Last of List): ", but this will only store one row.

    Stefano,
    Please open a case with support, this looks like a bug in our code. They
    will collect your configuration information which should help isolate the
    problem.
    Thanks,
    Daniel Selman
    "Stefano Crespi" <[email protected]> wrote in message
    news:3cea49d4$[email protected]..
    >
    I use user properties to collect information about utilization offunctionality.
    My code sets properties in this way:
    StringTokenizer st = new StringTokenizer (countersList, ",");
    java.security.Principal pr = req.getUserPrincipal();
    String userName = pr != null ? pr.getName() : null;
    try
    ProfileWrapper profilewrapper =ProfileFactory.getProfile(userName,null);
    >
    while (st.hasMoreElements())
    String counterId=st.nextToken();
    Long n = (Long)profilewrapper.getProperty("CounterUserProfile",counterId);
    if (n != null)
    n = new Long (n.longValue() + 1);
    else
    n = new Long (1);
    profilewrapper.setProperty("CounterUserProfile",counterId,n);
    catch (Exception e)
    e.printStackTrace();
    After some thousands access, looking in PROPERTY_VALUE table I foundduplicated row
    for same counter (user specific).
    PROPERTY_KEY_ID ENTITY_ID MODIFIED_ LONG_VALUE PROPERTY_VALUE_ID
    PROPERTY_SET_NAME
    4008 28002 03-MAY-02 23 55678
    CounterUserProfile
    4008 28002 03-MAY-02 1 55680
    CounterUserProfile
    10002 22001 28-MAR-02 1 40017
    CounterUserProfile
    10002 22001 28-MAR-02 1 40018
    CounterUserProfile
    12001 22118 01-MAY-02 2 55448
    CounterUserProfile
    12001 22118 01-MAY-02 1 55449
    CounterUserProfile
    I use a single server instance with no clustering.
    Any solution?
    Thanks, Stefano

  • How to block a single table for a single user

    Hi all.
    I want to block a single Z table for a single user. How to do this?  If he/she tries to display data using SE16 or SE11 Tcode he/she should get an error message.
    Regards,
    Prajwal K.

    Hi Prajwal,
    We can use the function modules ENQUEUE_E_TABLE for locking tables and the function module DEQUEUE_E_TABLE for unlocking tables. With this method, we don't need to lock objects in order to lock the tables. In other words, any table can be locked/unlocked using these function modules.
    Check this sample code:
    *Locking Table*
    data:
    varkey like rstable-varkey.
    varkey = sy-mandt.
    locking the tables............................
    call function 'ENQUEUE_E_TABLE'
    exporting
    MODE_RSTABLE = 'E'
    tabname = 'MARA'
    varkey = varkey
    X_TABNAME = ' '
    X_VARKEY = ' '
    _SCOPE = '2'
    _WAIT = ' '
    _COLLECT = 'X'
    exceptions
    foreign_lock = 1
    system_failure = 2
    others = 3.
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • NAC Guest Server, How to change the password for a single user?

    We have a NAC Guest Server which creates a complex password for all new users created.
    We would like to have normal/simple password for a single user. How can I get this done on a NAC Guest Server.
    Thanks in advance.

    Hi,
    You can setup 3 different flavours of passwords:
    http://www.cisco.com/en/US/docs/security/nac/guestserver/configuration_guide/20/g_guestpol.html#wp1063249.
    a. Username Policy 1 - Email address as username
    Use the guest's email address as the username. If an overlapping account with the same email address exists, a random number is added to the end of the email address to make the username unique. Overlapping accounts are accounts that have the same email address and are valid for an overlapping period of time.
    b. Username Policy 2 - Create username based on first and last names
    Create a username based on combining the first name and last name of the guest. You can set a Minimum username length for this username from 1 to 20 characters (default is 10). User names shorter than the minimum length are padded up to the minimum specified length with a random number.
    c. Username Policy 3 - Create random username
    Create a username based upon a random mixture of Alphabetic, Numeric or Other characters. Type the characters to include to generate the random characters and the number to use from each set of characters.
    Note: The total length of the username is determined by the total number of characters included.
    HTH,
    Tiago
    If  this helps you and/or answers your question please mark the question as  "answered" and/or rate it, so other users can easily find it.

  • Purchase Orders form in Query Only mode for a single user

    Hi All,
    I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
    Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
    Thanks in Advance,
    Naresh

    Please post this question here: OA Framework
    There are so many special conditions and restrictions for E-Biz Suite that this forum is not the right place to ask these questions. The Apps forum at this location is the right place.

  • 500 internal server error for only single user

    Hi Experts,
    Pls help me that
    I am getting the problem of 500 Internal server error for a single user .
    Except that user remaining users are not getting this error, They are working fine
    i.e it is ESS & MSS  Package all other application working fine , this iview came from  Webdynpro .
    Regards
    Krishna

    Hi Arun,
    where can i check with that whether in DEV/PROD system...?
    I don't have access to PROD system and SU01 system too.
    Can you please guide me with the steps to get it done.
    Please check the below log which is getting displayed for the User, when he is logging in.
    Error summary
    While processing the current request, an exception occurred which could not be handled by the application or the framework.
    If the information contained on this page doesnu2019t help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: ComponentUsage(FPMConfigurationUsage): Active component must exist when getting  interface controller
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.ensureActiveComponent(ComponentUsage.java:773)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceControllerInternal(ComponentUSage.java:348)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceController(ComponentUsage.java:335)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdGetFPMConfigurationUsageInterface(InternalFPMComponent.java.245)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.changeToExceptionPerspective(FPMComponent.java:862)
    u2026 59 more
    Please provide me any help.
    Thanks in advance.
    Regards,
    Ponneswari A.

  • Multiple Units of Measurements for a single item

    Hi all,
    How do I maintain multiple units of measurements for a single Item/  I have a scenario where purchase orders are being made for sand in Metric Tons, Tons, Kgs and Cubit Feets.  Each measurement is being used at each construction site of the company but the item is single sand.   One more problem is here with the material reconciliation of stock since it is maintained in different units of measurement and conversion from unit to other is problematic.
    Thanks
    YSvee Reddy

    Hi YSvee Reddy ,
    Julie is correct in saying that this feature will be available in version 8.8, currently in Ramp-up.
    Please see the [8.8 landing page |https://websmp203.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000705857&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E&]for a link to the 'What's new' document.
    You can contact your LPE to discuss participation in Ramp-up.
    All the best,
    Kerstin

  • Adobe Photoshop Extended CS6 for Windows (Single User Educational License): Are you discontinuing this?  If so, when?

    Adobe Photoshop Extended CS6 for Windows (Single User Educational License): Are you planning to discontinue this product?  If so, when?

    Adobe offers students teachers the Creative Suite for $20 a month.   If you only want Photoshop Adobe advises students and teachers to get the Photography Subscription for $10 a month you can install Photoshop CS6, Photoshop CC,  Photoshop CC 2014 and Lightroom.

  • Entering mulitple values for a single user parameter

    Hello,
    Can anyone explain to me how to allow multiple values for a single parameter?
    For example, say I want to allow the report to display a list of employees based on their employee id. I want to allow the user to enter mulitple
    employee id's into a single field to get their report. SO the user would enter "241, 459, 832" to return the list of those 3 employees. I have the SQL set up below, but obviously I need to set up something different to break it out into 3 separate values. Any help would be greatly appreciated!
    SELECT * FROM EMPLOYEE
    WHERE EMPLOYEE_ID IN (:P_EMP_ID)

    Hi,
    Another way to do this is to use the lexical parameter, but then you have to create the parameter form in Forms. Your SQL would look like this for example:
    select * from emp where empno is not null &empno
    where &empno is a lexical parameter.
    Then on your parameter form you would have a text field F_empid, say 200 character long, allowing the user to enter multiple values separated by a ",".
    Then in the trigger that calls the report you would create a parameter list, and a variable that holds the values read from the form, this variable is where you define the value to be passed to the report's lexical parameter. For example:
    declare
    v_empid varchar2(200); (consistent with the length of the lexical parameter in the report).
    begin
    v_empid:='and empno in ('||F_empid||')';
    then you pass v_empid to &empno in the call to the report.
    This method works well. Good luck.

  • Multiple beans getting created for a single jsf page

    Hi all,
    I am developing UI pages using JSF in 'IBM Websphere studio Application developer.'
    Suddenly I have started facing some weired problem.
    I have one jsp file 'Schedule_Process.jsp' and
    corresponding bean file 'Schedule_Process.java'.
    Everytime I run the jsp page a new bean file gets created with suffixes as 1,2,3...
    So i have 'Schedule_Process1.java', 'Schedule_Process2.java'.....for a single jsp file.
    The jsp file gets mapped to the newly created bean file. The mapping entry automatically comes in faces-config.xml file.
    Thus my bean code is divided into multiple beans.
    Sometimes this code run but sometimes it doesnot.
    To get everthing working i have to remove extra mapping entires from faces-config.xml. Also have to delete all new versions of bean files except the latest one. and then i have to rename the latest file(with number as suffix) to remove the suffix.
    This works sometimes but there no guarantee that it will work.
    I desparately want to know the reason behind this problem.
    Any help on this issue will be greatly appreciated.
    Thanks a lot in advance!!!

    Make sure in the faces-config.xml file you have
    your managed bean set a session.
    <managed-bean-scope>session</managed-bean-scope>
    and assure that you have the follwoing lines of code in the web.xml file
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    Hope this helps

  • Multiple parameters one row for each record

    I have this query I want the user to be able to allow the user to enter multiple MATL_CODE_MOD as a parameters, the problem is that the GURMAIL table have multiple records one for each GURMAIL_MATL_CODE_MOD, so it will give me duplicates.. How I can code this, so I can allow the user to enter multiple MATL_CODE_MOD codes, and have only one row for each record...
    and GURMAIL_MATL_CODE_MOD in ('8IBC','8IBD')
    select
    spriden_id,        
    spbpers_name_suffix   name_suffix,
    spbpers_name_prefix   name_prefix,
    spriden_last_name     last_name,
    spriden_first_name    first_name,
    spriden_mi            mi,
    srbrecr_term_code,
    srbrecr_majr_code,
    srbrecr_program_1,
    saturn_midd.utlq.f_matl_code_type(srbrecr_pidm)
    FROM
    saturn.srbrecr,
    saturn.spriden,
    saturn.spbpers,
    SATURN.SPRADDR,
    general.gurmail
    WHERE
    spriden_pidm = srbrecr_pidm
    and gurmail_pidm = spriden_pidm
    AND spriden_pidm = spraddr_pidm 
    --and srbrecr_term_code = decode(p_term  ,'%',SRBRECR_TERM_CODE,p_term)
    and spbpers_pidm = spriden_pidm
    and spriden_change_ind is null
    --and gurmail_matl_code_mod
    and SRBRECR_PROGRAM_1 = 'CMQ'
    and GURMAIL_MATL_CODE_MOD in ('8IBC','8IBD')
    --AND SPRADDR_ATYP_CODE = 'CM'
    AND SPRADDR_STREET_LINE1 IS NOT NULL;

    Hi,
    SELECT DISTINCT ...will keep duplicate rows out of the result set.
    Depending on your data, another possibility might be to not join the table that contains GURMAIL_MATL_CODE_MOD. Do an EXISTS sub-query on that table instead.
    If you need more help, post some sample data from all the tables, and the results you want from that data.
    Simplify, if possible, You can probably post a problem with 2 or 3 tables, each with 2 or 3 columns, that will have the same answer.
    Edited by: Frank Kulash on Apr 22, 2009 2:28 PM

Maybe you are looking for

  • Trying to install OS X MAvricks 10.9.3 on a new hard drive and it freezes with 3 minutes remaining

    I Am trying to install OS X MAvricks 10.9.3 on a erased hard drive and it freezes with 3 minutes remaining

  • Not able to receive photos on iPad mini

    Hi I have an iPad mini running 8.3 and the Skype version 4.19 When I receive photos it just gives me a link to login in to my Skype account outside the app. Is there a fix for this? Thanks

  • Filter Option in Table Control

    Hi Folks , I am working on a table control , i need to add Filter functionality same as of ALV filter i tried with suggestion given on SCN Following is the code that i tried, but its not working, no popup with FM LVC_FILTER_DIALOG please help me with

  • MFP M177fw Scan to email facility

    Hi Friends,   I suppose to buy a MFP M177fw for day to day works in my office, Can someone confirm whether it has facility to scan a bunch of documents (10-15 A4 sheets) & save in to difference computers? I know it has wifi so everybody can print. Ca

  • Key Handler

    //My source code: package keyhandler; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import javax.swin