Weird issue with merge using JPA...?

Hi all,
I have the following code snippet (HsTrans has a manytoone relation with Hss), Hss is the parent
            HsTrans hsTrans = new HsTrans();
         Hss hss=em.find(Hss.class, studyId);
         hsTrans.setStudy(studyId);
         hsTrans.setState(state.toString());
         hsTrans.setTimestamp(timeOfState);
         hss.getHsTrans().add(hsTrans); //Add child to aprent
         hsTrans.setHss(hss);                //Child Parent
            em.merge(hss);  // Does not work Throws a Unique Key violation error
Whereas replacing the same with this
         Hss hss2=hsStudyTrans.getHsStudy(); 
            em.merge(hss2); // Works fine
   Does anyone know if this is a JPA bug or some other issue.
Thx
VR

RainaV wrote:
Does anyone know if this is a JPA bug or some other issue.JPA is a specification, so it has no bugs (only design flaws). If there is a bug somewhere it is in the persistence provider you are using, but most likely it is just you not understanding how merge and transaction management in general works. I've written dozens of applications now that use JPA and I think I really needed merge a grand total of once.
In this snippet you provide, you are apparently making the 'hss' object managed through the em.find() method. This means that any changes you make to it will be made persistent as soon as the transaction is committed. You don't need to call merge() at all, you only call that on entities that are detached.
Now for the actual problem of unique key violation, I don't even see you committing hsTrans. Change the code to this:
HsTrans hsTrans = new HsTrans();
Hss hss=em.find(Hss.class, studyId);
hsTrans.setStudy(studyId);
hsTrans.setState(state.toString());
hsTrans.setTimestamp(timeOfState);
hsTrans.setHss(hss); // set managed hss object
em.persist(hsTrans); // persist hsTrans and make it managed
hss.getHsTrans().add(hsTrans); // add the new managed hsTrans to the hss mapped collection

Similar Messages

  • Having a weird issue with my assign after java embedding

    hi,
    I'm having a weird issue with my assign activity, i am using a Java Embedding wherin i access a variable and assign it some data, later in next step when i try to assign some other data to this same variable in assign activity i get a Error message as below.
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} parts: {{ summary=Invalid to part type. When performing the assign operation, the to node THIS,IS,,TEST is invalid. The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element. Verify the node value at line number 795 is not null and is an instance of org.w3c.Element. } .
    i'm using soa 11.1.1.5
    Can anyone please help ?
    - Thanks
    Shirish

    Shirish,
    It's a bug and you will need to apply a patch for that.
    You can find all explanation in Oracle Support Id ID 1194228.1.
    Arik

  • Weird issue with safari on iPad mini?

    I just had a weird issue with my safari web page, it stopped responding to my scrolling. I then tried coming out of it and going bad in again a couple of times, which still did not work. It then started jiggling around all over the place (jiggling is the only word I can use to describe it), it was as if you had clicked and held the page with a mouse and then started moving the page all over the place, or even like an earthquake on the page. The tab then closed. Can anyone explain this? Thanks.

    Quit Safari then reset your iPad.
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app. Then reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Weird Issue With Windows Live Mail

    I have a friend using Windows Live Mail and he's been having some weird issues with it. When he goes to forward an email, it will occasionally open the email up twice, which isn't a huge deal it's just more annoying than anything. I thought maybe there was
    some malware or other junk that could be causing it so I ran MBAM and got everything cleaned up but it's still happening. Any other thoughts on what could cause this?
    Thanks.

    Windows Live Mail support is found @
    https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1410798892&rver=6.1.6206.0&wp=LBI&wreply=https:%2F%2Fanswers.microsoft.com%2Fen-us%2Fsite%2Fcompletesignin%3Fsilent%3DFalse&id=273572
    You must login to your Windows Live account and then Ask a Question.
    This forum is dedicated to the Windows 7 operating system.  Windows Live is not a feature of Windows 7 and Microsoft has established support for Windows Live Mail  @ the Microsoft Community found @
    http://answers.microsoft.com/en-us/windows/forum/windows_7-ecoms?auth=1
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Issue with Merge

    Hi all,
    Facing an issue with merge statement. I am getting source rows like:
    Table a: (Source)
    Id Vald_date Server_serial system_id
    1 11/oct/10 2.5 Real Id
    1 13/oct/10 2.5
    table b: (Target)
    Id Vald_date Server_serial system_id
    1 13/oct/10 2.5
    I am using the below Merge stmt .
    MERGE INTO b
    USING ( SELECT DISTINCT id,vald_date,server_serial,system_id
    from b
    ON ( a.Id = b.ID)
    when matched then
    update set
    b.Vald_date = a.Vald_date,
    b.server_serial = a. server_serial ,
    b.system_id = a.system_id
    when not matched then
    INSERT values(a.id,a.Vald_date,a. server_serial ,a.system_id
    Here , When i run the stmt first time , target table updated with the first source of a table and SQL%ROWCOUNT return 2 rows.
    For the second , if we run the same , it is throwing error 'ORA-30926: unable to get a stable set of rows in the source tables'.
    Please tell me the cause why it is happening like that and i'm not sure how it is reading and process the rows itself.
    Table scripts:
    create table a
    (id NUMBER,
    vald_date DATE,
    server_serial NUMBER,
    system_id varchar2(10)
    Insert into a values(1,TO_DATE('11/OCT/10','DD/MON/YY'),2.5,'Real Id')
    Insert into a values(1,TO_DATE('13/OCT/10','DD/MON/YY'),2.5,NULL)
    create table b
    (id NUMBER,
    vald_date DATE,
    server_serial NUMBER,
    system_id varchar2(10)
    Insert into b values(1,TO_DATE('13/OCT/10','DD/MON/YY'),2.5,'Real Id')
    Oracle Version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    Your help would be appreciated !!
    Regards,
    Vissu......
    Edited by: vissu on Oct 29, 2010 5:41 AM
    Edited by: vissu on Oct 29, 2010 6:05 AM

    As @Dombrooks already said there is a problem with the data. From next time if you could do like the way I have showed it will be much appreciated.
    There are quite a few bugs with your code. Until you sort out the rowsource I don't think you will be able to proceed further with the merge statement.
    SQL> drop table a;
    Table dropped.
    SQL> drop table b;
    Table dropped.
    SQL> create table a
      2  (id NUMBER,
      3  vald_date DATE,
      4  server_serial NUMBER,
      5  system_id varchar2(10)
      6  )
      7  /
    Table created.
    SQL> Insert into a values(1,TO_DATE('11/OCT/10','DD/MON/YY'),2.5,'Re
      2  /
    1 row created.
    SQL> Insert into a values(1,TO_DATE('13/OCT/10','DD/MON/YY'),2.5,NUL
      2  /
    1 row created.
    SQL> create table b
      2  (id NUMBER,
      3  vald_date DATE,
      4  server_serial NUMBER,
      5  system_id varchar2(10)
      6  )
      7  /
    Table created.
    SQL> Insert into a values(1,TO_DATE('13/OCT/10','DD/MON/YY'),2.5,'Re
      2  /
    1 row created.
    SQL>
    SQL> MERGE INTO b
      2  USING ( SELECT DISTINCT id,vald_date,server_serial,system_id
      3  from b
      4  )
      5  ON ( a.Id = b.ID)
      6  when matched then
      7  update set
      8  b.Vald_date = a.Vald_date,
      9  b.server_serial = a. server_serial ,
    10  b.system_id = a.system_id
    11  when matched then
    12  INSERT values(a.id,a.Vald_date,a. server_serial ,a.system_id
    13  );
    when matched then
    ERROR at line 11:
    ORA-00905: missing keyword
    SQL>
    SQL> ed
    Wrote file afiedt.buf
      1  MERGE INTO b
      2  USING ( SELECT DISTINCT id,vald_date,server_serial,system_id
      3  from b
      4  )
      5  ON ( a.Id = b.ID)
      6  when matched then
      7  update set
      8  b.Vald_date = a.Vald_date,
      9  b.server_serial = a. server_serial ,
    10  b.system_id = a.system_id
    11  when not matched then
    12  INSERT values(a.id,a.Vald_date,a. server_serial ,a.system_id
    13* )
    SQL> /
    ON ( a.Id = b.ID)
    ERROR at line 5:
    ORA-00904: "A"."ID": invalid identifier
    SQL> ed
    Wrote file afiedt.buf
      1  MERGE INTO b
      2  USING ( SELECT DISTINCT id,vald_date,server_serial,system_id
      3  from a
      4  ) a
      5  ON ( a.Id = b.ID)
      6  when matched then
      7  update set
      8  b.Vald_date = a.Vald_date,
      9  b.server_serial = a. server_serial ,
    10  b.system_id = a.system_id
    11  when not matched then
    12  INSERT values(a.id,a.Vald_date,a. server_serial ,a.system_id
    13* )
    SQL> /
    3 rows merged.
    SQL> select * from a;
            ID VALD_DATE SERVER_SERIAL SYSTEM_ID
             1 11-OCT-10           2.5 Real Id
             1 13-OCT-10           2.5
             1 13-OCT-10           2.5 Real Id
    SQL> select * from b;
            ID VALD_DATE SERVER_SERIAL SYSTEM_ID
             1 13-OCT-10           2.5 Real Id
             1 13-OCT-10           2.5
             1 11-OCT-10           2.5 Real Id
    SQL> MERGE INTO b
      2  USING ( SELECT DISTINCT id,vald_date,server_serial,system_id
      3  from a
      4  ) a
      5  ON ( a.Id = b.ID)
      6  when matched then
      7  update set
      8  b.Vald_date = a.Vald_date,
      9  b.server_serial = a. server_serial ,
    10  b.system_id = a.system_id
    11  when not matched then
    12  INSERT values(a.id,a.Vald_date,a. server_serial ,a.system_id
    13  )
    14  /
    MERGE INTO b
    ERROR at line 1:
    ORA-30926: unable to get a stable set of rows in the source tables
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - ProductionRegards
    Raj

  • Weird issues with latest X-Fi Driver/Software

    -Weird issues with latest X-Fi Driver/SoftwareO So I decided to update my X-fi drivers and software today, but I am running into some issues.
    First and foremost is that my Volume Panel no longer works correctly. It brings up this cheap pos window when I click on the Systray icon instead of the corrrect full featured interface.
    It lists the merdia source programs and has a volume dial, thats all this new one has.
    The other issues are that none of the software updates want to install: Alchemy, Mixer, Mediasource Go
    They all give me a message after I being to install that says "can not locate layout.bin please specify the path"? and gives my a "this setip reqires a cd" window and lists a path to a temp folder inside my windows folder.
    Installing these for Vista? Ultimate 32-bit.

    -Weird issues with latest X-Fi Driver/SoftwareO So I decided to update my X-fi drivers and software today, but I am running into some issues.
    First and foremost is that my Volume Panel no longer works correctly. It brings up this cheap pos window when I click on the Systray icon instead of the corrrect full featured interface.
    It lists the merdia source programs and has a volume dial, thats all this new one has.
    The other issues are that none of the software updates want to install: Alchemy, Mixer, Mediasource Go
    They all give me a message after I being to install that says "can not locate layout.bin please specify the path"? and gives my a "this setip reqires a cd" window and lists a path to a temp folder inside my windows folder.
    Installing these for Vista? Ultimate 32-bit.

  • Weird issue with Exchange 2010 Room Mailboxes - allows multiple booking of the created meeting rooms

    Hi,
    we are facing weird issue with Exchange 2010 Room Mailboxes
    it allows multiple booking of the created meeting rooms.Sometime we are not getting acceptance or declined mail but and we could see our meetings has been booked at slot.
    for e.g.
    User A booked room1 with weekly recurrence for time 4pm to 5pm., and User B made his  booking other day,without realizing that user A meeting is exists.
    Neither of user A nor user B got declined/rejected emails.
    please sahre guidelines if anyone known to this issue.
    Note - Allow Conflict booking is disabled already :) but still have issue
    Thanks,
    NPratik

    Hi,
    Just add more in this issue, following testing is done.
    referring results and conclusion, you will get better view on issue 
    ====================
    Test Case - 1
    User OnCloud/O365 - Pratik Nimbalkar
    Email ID - [email protected]
    ( same as UPN)
    Room Booking Scenario - Book Room for 6.30pm to 7.30pm slot
    Results - Accepted
    Room Booking Scenario for same slot- ReBook Room for 6.30pm to 7.30pm slot
    Results - Declined
    Conclusion = working fine
    ==================
    Test Case - 2
    User OnCloud/O365 - Testsm
    Email ID - [email protected]
    ( different from UPN)
    Room Booking Scenario - Rebook Room for 6.30pm to 7.30pm slot
    Results - No Response from Room Mailbox neither Accepted nor Declined
    But we can see as booked as "Tentative"
    Room Booking Scenario for same slot- Rebook Room for 6.30pm to 7.30pm slot
    Results -No Response from Room Mailbox neither Accepted nor Declined
    But we can see as booked as "Tentative"
    =========================
    Conclusion = There is issue with booking room and not getting response while user is
    @abc.my id.
    ======================
    Note = for all other on premise users those are having @abc.co.in
    and @abc.my it is working fine. Users are getting respective correct reply from room mailboxes.
    This issue seems with only on cloud
    @abc.my users

  • Weird issues with file share using both SMB and AFP?

    I use my Xserve with 10.4 server primarily as a file server (with a huge RAID array attached via Ultra320 SCSI). I've served files from this server over SMB ("Windows" sharing) to both PCs and Macs for a few years now with no big issues. The files are being shared in a collaborative environment with extensive user accounts and ACLs set up.
    I would like to turn on AFP for these same file shares, so those accessing with a Mac can have the added benefits of AFP over SMB. However, I've heard some rumors of some complicated issues developing from the use of both AFP and SMB together on the same folders, in a mixed environment.
    The rumors I've heard are things that would happen rarely but enough for it to be significant. For example, a file created over SMB and then edited over AFP would have some problems being re-edited over SMB again, due to some complicated feature that the rumor is unable to explain (something with a resource fork or file locking?). Maybe something weird that just involves the Adobe Creative Suite?
    Anyway, I figured I'd throw this out there. Anyone who serves files over both protocols to a varied set of computers and applications having weird issues? Or is everything working for you? Thanks in advance.
    Message was edited by: dtemp

    Thanks for the responses!
    re:crop
    It's coming in as cropped with no way to fix it that I can see.
    Pressing space or opening in preview shows the full image but if it gets anywhere near Photoshop it comes in auto-cropped.
    I'm starting to this it's a bug and will be reporting it to Adobe.

  • Very weird issue with server logging when using log4j.properties file

    I'm using log4j logging. In log4j.properties the root logger is set up to use the ServerLoggingAppender class so that all our application logs go to the main server logfile. In addition, there are several appenders defined for specific components, with output going to specific per-component log files. Everything is going fine until I launch the server console. At this point all of those per-component log files get wiped out (zero length) and some non-ASCII lines are written to at least one of these files, after which the logs appear to be fine. The main server log file does not appear to be affected (because the root logger is set to "warn" level, while component-specific loggers are set to trace, the contents in these files is different; however I tried disabling all the other appenders and turning the root logger up to trace, and that still did not re-create the problem in the main server log file.
    And here's the really weird part -- if I use the same configuration, but in a log4j.xml file, the problem does not happen.

    Figured it out.
    We were passing in the configuration for log4j as -Dlog4j.configuration=file:/<properties file> and this was added to the command line for both the managed and admin servers. Problem is that the console app starts its own instance of log4j, and when it reads the configuration for the appenders it initializes or rolls over the files. At some point we have two JVMs accessing the same files, so some corruption is bound to happen.
    I'm not clear why the .xml file made a difference, but earlier we had been passing the log4j configuration as a jar file placed in the domain/lib folder, so perhaps the designer reverted to that (placed the log4j.xml file in a jar in lib, and not simply changed the -Dlog4j.configuration=file:/ option.

  • Weird issue with Site Template in O365

    Hi,
    I ran into a weird issue while working with Site Template in O365 last night.
    I created a sub-site in a Site Collection with some Site Columns, CT and Lists. Then I saved it as a Site Template so that it can be used for different sites. Then I created 3 different sub-sites using the template. All went good.
    After some time when I looked at the sites, something really irritating happened. I saw the first two sites were missing all the site columns and CT. And the latest third site had 3 copies of each Site Column and CT.  Though for the first two sites,
    all the CT, Site Columns were available at List level, but it wad just the reference. The Actual CT was not seen the site settings.
    This is the first time I saw this kind of issue. Not sure what is the reason for this.
    Any idea around this ?
    Thanks,
    Nutan
    Nutan Sharma

    Hi,
    According to your description, my understanding is that the error occurred when you created a site from the template with no files in the document library.
    I tested the same scenario per your post, and I can create a site from the template with no files in the document library with no errors.
    To solve this issue, I recommend to verify the things below:
    Did you save the site as a template with Include Content checked? If yes, I recommend to test if it works when saving the site as a template with Include Content unchecked.
    Test the same scenario with a new site to narrow the issue scope.
    I also recommend to check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    http://msdn.microsoft.com/en-us/library/gg193966(v=office.14).aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Having some weird issues with logic 8

    i am almost Positive! that i pushed some buttons or selected something to mess it up, i would be indebted to anyone who can help me with like three issues i'm having
    I run my M-audio mobile pre into logic and am having these issues:
    #1. track 1 and two seem to be tied together even though i select mono tracks... so i need to leave track two blank otherwise it interferes with whatever is on track one. and on the bar where i drag the loop i was using it has two O's that make like a vinn diagram symbol.
    #2. the volume controll (the bottom left fader one) can increase the Db but not decrease...
    #3 through my headphones the signal only comes out the right side. i am inputting my guitar/vox into the right input on the mobile pre, but i thought if the tracks were mono, it wouldn't matter.
    please please please help, i need to get recording soon!
    thanks.

    i figured out the volume issue, with the weird stereo track, i needed to adjust it on both tracks (even though one was empty haha duh)

  • A few weird issues with my Z2 and charging !

    Hello guys,
    My Z2 is having some really weird issues (not exactly issues but still)
    1) If i am using magnetic charger and if i am charging from less than 15%, it takes like 8hrs to get to 50% or near 50%. But if i am using the normal chager, i am able to get 100% in around 2ish hrs from 15%.I am facing this magnetic charging issue only if the battery % is less than 15%. I use the same charger for both cables. Both cables are original sony products. If the initial battery charge is greater than 15%, then magnetic charger works normally and charges up fast...But if its less than 15%, then it acts weird.
    2) I am able to get 270 Rotation on the desktop screen ONLY when the phone is being charged. Even though i have the auto rotation ON, it doesnt change the rotation in the app drawer or on the initial screen. Once i connect the phone to charge, it can rotate to any side.
    3) The Super Vivid mode gets resetted to NONE randomly.... Why is this ?
    Can somebody help me with these questions ?
    Thankyou !

    2) that is normal if you want the home launcher to rotate without the need of the dock or magnetic cable you'll need to download a third party home launcher.

  • Issue with Reports using costume measures - BPC 10.0 NW

    Hello BPC Colleagues,
    I’m having a problem with some BPC reports using costume measures and I would like to have your inputs about this issue.
    When all the reports are executed using a costume measures the report execution fails after a long time of execution (7min). The report has 1200 accounts and 57 company codes.
    In order to create trial balance we create these costume measure. Basically the measures are standars (with a few changes) and it works for limited reports (few account and companies) but we I try to executed for several accounts and companies I have the following error:
    “The execution of report Default Report failed. Please contact your administrator.”
    Error while communicating with the server
    Framework message:
    The underlying connection was close: An unexpected error occurred on a receive.
    Summary of the BPC LOG:
    |An error occurred while receiving the HTTP response to https://BPCENV.APPSET.MODEL. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.#
    We already increased the PSAPTEMP table and this didn’t fix the issue. At the beginning we were sure that this was an issue with table space but the error persist.
    I don’t think (maybe I’m wrong) that this is not an issue related to the costume measure or to authorizations since I can retrieve data if I reduce the request to less accounts an company, so in my point of view this looks like a performance issue.
    Just for you, below you will find the details about our measure that generate the problem:
    'IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%], [%TIME%].CURRENTMEMBER), [MEASURES].[/CPMB/SDATA]),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%],[%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([MEASURES].[/CPMB/SDATA],CLOSINGPERIOD([%TIME%].[%TIMEBASELEVEL%])),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[%TIMEBASELEVEL%])),[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
    Finally is important to mention that we are using BPC 10.0 NW (SP08)
    If you have any suggestion for me I will appreciate.
    Thanks you a lot!

    Hi Vadim,
    Once again, thanks for your help.
    We already modified the YTD standard measure but is with that measure that I have problem. Do you think that my new formula is not efficient and for that reason I’m having this problem? Is this correct?.
    Below you will find the standard and costume measure. In red I marked the difference between these 2 formulas:
    YEAR TO DATE CUSTOME MESURE:
    'IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%], [%TIME%].CURRENTMEMBER), [MEASURES].[/CPMB/SDATA]),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%],[%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([MEASURES].[/CPMB/SDATA],CLOSINGPERIOD([%TIME%].[%TIMEBASELEVEL%])),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[%TIMEBASELEVEL%])),[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
    YEAR TO DATE STANDAR MEASURE:
    'IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%], [%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[%TIMEYEARLEVEL%],[%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[%TIMEBASELEVEL%])),
    IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",-([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[%TIMEBASELEVEL%])),-[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
    If you have any suggestion to correct my formula I would really appreciate it.
    Regards,

  • Facing issue with concurrent use of session

    Hi All,
       We are facing concurrent use of session.save call in our LDAP sycn up process. Issue we got while performing performance test for multiple user and issue is at com.day.crx.security.ldap.LDAPUserSync.performUpdate api. Please guide me what could be wrong missing in code due to this Out of box service is showing error.
    Below are logs:
    02.01.2013 14:32:07 WARN SessionState: Attempt to perform session.save() while another thread is concurrently writing to session-system-1. Blocking until the other thread is finished using this session. Please review your code to avoid concurrent use of a session. (SessionState.java, line 149)
    java.lang.Exception: Stack trace of concurrent access to session-system-1
    at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:147)
    at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:355)
    at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:758)
    at com.day.crx.security.ldap.LDAPUserSync.performUpdate(LDAPUserSync.java:230)
    at com.day.crx.security.ldap.LDAPUserSync.syncUser(LDAPUserSync.java:178)
    at com.day.crx.security.ldap.LDAPLoginModule.commit(LDAPLoginModule.java:266)
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    Regards,
    Yogesh

    Hey Jorg,
    Your comments are much appreicated!
    question about the statement "it seems, that you import lot of users concurrently from the LDAP".  for us yes we are but the question is should that me problamatic?  We do see that it is causing issues for us  in CQ5.5 with CRX 2.3.15:
    com.day.crx.security.ldap.LDAPLoginModule commit: could not commit: javax.jcr.InvalidItemStateException: property /some/LDAP/group/rep:lastsynced: the property cannot be saved because it has been modified externally.
    However we had no such issue with CQ5.3 with CRX2.0
    -Faraz

  • [SOLVED] Major weird issues with KDE/Qt apps and unicode

    Hi, I've tried to search for my problem, but nothing has showed up, so if this has already been answered, please forgive me.
    Anyway, I use KDE as my primary desktop environment with SKIM as my unicode input method. After installing SKIM and Japanese fonts back when I first set Arch up, I have never had any issues with inputting unicode or displaying it in any program, whether that be irssi running through Konsole, or the song titles in Amarok. That all changed this afternoon, somehow...
    The only major changes I can remember making to my system today are the following:
    1.) I installed Awesome Window Manager to check it out
    2.) I installed a pkgbuild of urxvt
    3.) I made an .Xdefaults file and added these lines to customize my urxvt
    After messing around with these things, I decided that Awesome wasn't a suitable WM for me, went back into KDE, and removed the package. I noticed a few strange issues after that though:
    1. Foreign characters refuse to display properly in any terminal emulator.
    2. Foreign characters come up as jumble in Konqueror now as well, when they never did before:
    3. SKIM refuses to let me input Japanese characters with Anthy in any KDE app. The option for Japanese just isn't there, even though I have it installed:
    4. Foreign characters display perfectly as tags for songs in Amarok, but if the music file itself has foreign characters in it, the title is garbled and the track is unplayable:
    5. SKIM works absolutely fine in non-KDE apps like Firefox:
    As seen in the last example, my Japanese fonts are all installed, and SKIM is working as it should in any non-KDE app, suggesting that there are no problems on that end. The issue seems to be with something in KDE, but I have no idea where to begin fixing it. Furthermore, I have no idea what could have caused this issue in the first place. I don't see how installing a window manager or terminal emulator package could have screwed up my fonts, and the .Xdefaults file I wrote just contained config information for urxvt. Nothing else. I even ended up deleting that, but it did not fix my problem.
    If you could be of any help, I'd really appreciate it. I have a lot of files with foreign characters in them, and being able to read them is essential.
    Last edited by LighthouseKeeper (2008-04-20 00:57:36)

    I was just looking into locales, actually.
    My current locale is:
    LANG=en_US.utf8
    LC_CTYPE="en_US.utf8"
    LC_NUMERIC="en_US.utf8"
    LC_TIME="en_US.utf8"
    LC_COLLATE=C
    LC_MONETARY="en_US.utf8"
    LC_MESSAGES="en_US.utf8"
    LC_PAPER="en_US.utf8"
    LC_NAME="en_US.utf8"
    LC_ADDRESS="en_US.utf8"
    LC_TELEPHONE="en_US.utf8"
    LC_MEASUREMENT="en_US.utf8"
    LC_IDENTIFICATION="en_US.utf8"
    LC_ALL=
    and locale -a brings up:
    C
    POSIX
    en_US.utf8
    Is there anything here that could be causing this issue?
    I'm curious how my locale got messed with in the first place if this is indeed the problem...
    and here is my export:
    declare -x COLORTERM=""
    declare -x DESKTOP_SESSION="kde"
    declare -x DISPLAY=":0.0"
    declare -x DM_CONTROL="/var/run/xdmctl"
    declare -x GS_LIB="/home/rael/.fonts"
    declare -x GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/rael/.gtkrc-2.0:/home/rael/.kde/share/config/gtkrc-2.0"
    declare -x GTK_IM_MODULE="scim"
    declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/rael/.gtkrc:/home/rael/.kde/share/config/gtkrc"
    declare -x HOME="/home/rael"
    declare -x KDE_FULL_SESSION="true"
    declare -x KDE_MULTIHEAD="false"
    declare -x KDE_SESSION_UID="1000"
    declare -x KONSOLE_DCOP="DCOPRef(konsole-19951,konsole)"
    declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-19951,session-1)"
    declare -x LOGNAME="rael"
    declare -x OLDPWD
    declare -x PATH="/opt/kde/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/usr/games"
    declare -x PWD="/home/rael"
    declare -x QT_IM_MODULE="scim"
    declare -x SESSION_MANAGER="local/broadway:/tmp/.ICE-unix/19566"
    declare -x SHELL="/bin/bash"
    declare -x SHLVL="2"
    declare -x SSH_AGENT_PID="19539"
    declare -x SSH_AUTH_SOCK="/tmp/ssh-MtdHR19538/agent.19538"
    declare -x TERM="xterm"
    declare -x USER="rael"
    declare -x WINDOWID="41943050"
    declare -x XCURSOR_THEME="default"
    declare -x XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic"
    declare -x XMODIFIERS="@im=SCIM"
    Last edited by LighthouseKeeper (2008-04-19 22:31:16)

Maybe you are looking for

  • Looking for a Java Parser

    Hi, I'm working on a Web Service Project, and i'm trying to deploy Web Services dynamically. Now the problem is, that i have to adapt the Java src-files sometimes before the deployment (Like adding Annotations, Methods or just peaces of code into a M

  • OID manual provisioning from OIM

    Hi, while provisioning users in OIm and giving them certain entitlements, when I provision a user with OID It resource,it gets added to OID automatically. I want to do this provisioning manually....that is approval based The goal is to give required

  • What app do I need to sync my android with my Mac

    I have a Mac Android and ipod touch 4G 64GB. And I love the way everything syncs and is up to date. Like Calender and contacts and music. Is there a app that can do this with my android and my Mac?? Any comments and app sugestions welcome please?

  • Thunderbolt w firewire converter to older MacBookPro

    I just purchased a Thunderbold Display and everyone told me it would work with my 2009 mac book pro but after plugging it into to my firewire converter it is still not responsive! Does anyone have a advice! I just want them to sync up!

  • Audio NOT functioning correctly after botched bluetooth headset pair attemp

    After trying to connect my bluetooth headset (Motorola HS820) to my Macbook Pro i am having issues with several apps including firefox and mediacentral. Audio from these programs will not play. I get an error message saying there was a problem with m