Problems w/ NamedCache.release()

Our app was experiencing memory leaks so we called NamedCache.release().
This fixed the memory leak.
Unfortunately, this caused various other issues w/ concurrency...
We had illegalstate exceptions,
eg.
java.lang.IllegalStateException: Map has been invalidated:
Just wondering whether there is another was to release references instead of NamedCache.release().

Hi Sriram,
The NamedCache.release() call should never throw an IllegalStateException. Usually it happens when one thread call release() while another tries to access the cache (e.g. with NamedCache.get()).
The best approach to resolve this is to use try-catch block (see discussion in Re: calling CacheFactory.getCache()).
You may want to do something different in the catch block:
try
    return cache.get(aKey)
catch (IllegalStateException ise)
    log.warn(ise.getMessage(), ise);
    cache.release();
    // Can we just return null?
    return null;
    } Regards,
Gene

Similar Messages

  • Hi, problem while doing Release Strategy.

    Hi,
    I am having a problem while Creating Release Groups.
    " Please Check Release Classes (See Long Texts)"
    This is appearing on the Screen while I am trying to Save the Release Group.
    Please anyone give me solution for this.............
    Thanks & Regards,
    Swathi

    Hi,
    I think this happens because you are defining different release group using different class but using same class type for those classes.
    E.g.:
    ====
    Rel. Grp     Class
    98              Z_Class1
    99              Z_Class2
    Z_Class1 has the same class type as Z_Class2.
    Hopefully this helps.

  • Problems setting up release management

    Hi I am running into problems in setting up Microsoft Release Management. I have 2 domains. My tfs (separate server), release management server and release management client (both on single physical server) are in domain1 and deployer is in domain2 in Azure
    VM. I am using a VPN tunnel to connect release management server, release management client and deployer. They connect with each other nicely. The problem comes when I add reference to tfs in release management client. TFS fails to verify. Now
    the user I am using to connect has Make requests on behalf of
    others' permissions so that is not the issue. I get TF400324 error. I even used wireshark to troubleshoot but it looks as if release management
    client is not even trying to connect. I can access tfs url via web browser with vpn connected from machine on which release management client is running. when  Now if I disconnect the vpn and try to verify tfs from release
    management client it works. Does release management client supports connecting via ipv6 tunnel?

    Hi abhijitdamle,
    I'd like to know how do you connecting via ipv6 tunnel, and when you get the error(without vpn connection?) . If your machine can be access via HTTP/HTTPS, then RM client can also be connected. For your situation, seems you got the
    issue resolved after using vpn.
    If you have other concerns about the error, you can also check the methods below to see if it works for you:
    1. Check the permission of the user account you use, make sure it has the permission of "make requests on behalf of others"
    2. Clean team foundation cache on your RM client machine
    3. Check the team project collection url to ensure it's input correctly, or use the solution on this
    page
    Best regards,

  • DBLinks Problem in 10g Release 2

    I have many mappings taking data from tables in a remote database asociated with a Source Database module. All was working OK but after some changes in one mapping, when I triyed to deploy that mapping I got a warning in the Control Center's Job Details:
    GNV_MP_B_VENTAS_01_PKG
    Warning
    ORA-06550: line 222, column 7:
    PL/SQL: SQL Statement ignored
    GNV_MP_B_VENTAS_01_PKG
    Warning
    ORA-06550: line 264, column 23:
    PL/SQL: ORA-00942: table or view does not exists
    Checking for errors in the package GNV_MP_B_VENTAS_01_PKG I've found the following message in compilation errors:
    Error(1):
    ORA-04052: se ha producido un error al consultar el objeto remoto [email protected]@SOU_GNVBI_LOCATION1
    ORA-00604: se ha producido un error a nivel 1 de SQL recursivo
    ORA-01882: timezone region not found
    ORA-02063: line....
    Testing the DBLink created by OWB I have the followiong message:
    SQL > select * from dual@"GASN.REGRESS.RDBMS.DEV.US.ORACLE.COM@SOU_GNVBI_LOCATION1"
    Error starting at line 1 in command:
    select * from dual@"GASN.REGRESS.RDBMS.DEV.US.ORACLE.COM@SOU_GNVBI_LOCATION1"
    Error at Command Line:1 Column:19
    Error report:
    SQL Error: ORA-01882: timezone region not found
    ORA-02063: line precediendo a GASN@SOU_GNVBI_LOCATION1
    01882. 00000 - "timezone region %s not found"
    *Cause:    The specified region name was not found.
    *Action:   Please contact Oracle Customer Support.
    Can anyone help me with this issue ? This is my config info:
    Remote DB:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    "CORE     9.2.0.3.0     Production"
    TNS for Linux: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 – Production
    OWB's DB:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    "CORE     10.2.0.3.0     Production"
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 – Production
    OWB 10.2 Release 2
    Client. 10.2.0.3.33
    OWB Repository: 10.2.0.30

    Right Now we are seting up the Timezone patch y the 9i database. I'll tell you later how goes all the process but meanwhile here are some strange things about the ORA-01882 error:
    I've tested the DBLink using Oracle SQL Developer an it doesn't work. But if I test the same DBLink using SQL*Plus (no matter client version or platfom) it works...
    I realize that when I created a new DBLink via SQL*Plus to determine if the problem was related to OWB 10.2. Running OWB 10.2 client from Windows or Linux produces the same error in deploy. Testing the BDLink from SQL*Plus from Windows or Linux produces no errors. Althought I can't recompile the package generated when the mapping was deployed, I get the same ORA-04052 - ORA-00604 - ORA-01882 errors.
    When I completed the patch installation I will tell you the results...

  • Reg.Negative delivery cost problem in PO release

    Dear Friends
    '' PO cannot be released due to negative delivery costs" this is my client requirement, I am unable to understand this. Please explain and give the solution.
    Thanks
    Rajakumar.K

    how can you have negative delivery costs?
    that means you order material, get it delivered by a carrier, and then the carrier pays you (instead of you pay carrier)?
    Please explain your PO process in a bit more detail.
    maybe this thread with a similar problem can help you:
    http://forums.sdn.sap.com/thread.jspa?threadID=1516469

  • Agent problem in Payment Release Workflow   - SPRO

    Hi FI PRof's,
    I am using the standard workflow WS00400012 for Payment Release.I am using two level approval process.If the invoice amount is less than 20,000 it should goto approver X and if it more than that it should do for X first and then to Y.
    I have assigned the agents in SPRO Customizing as follows :
    WF Variant - 2000 Approval path - 0001 Level - 1 R.Amt - 10,000 Agent - X
    WF Variant - 2000 Approval path - 0001 Level - 2 R.Amt - 999999... Agent - Y
    I am using the standard rule 00400125 for agent asssignment.
    My Problem for single level release the agent is found(X) and WF is fine.
    But while two level release the responsible agent is not found..What could be the problem. Am I missing any thing in Customization.
    Rgds

    Hi,
    You had any response about this problem or able to solve it?
    I'm having the same current problems and have not found a solution!
    Regards!
    Ariel Prebianca

  • Agent problem in Payment Release Workflow

    Hi WF PRof's,
      I am using the standard workflow  WS00400012 for Payment Release.I am using two level approval process.If the invoice amount is less than 20,000 it should goto approver X and if it more than that it should do for X first and then to Y.
    I have assigned the agents in SPRO Customizing as follows :
    WF Variant - 2000 Approval path - 0001 Level - 1 R.Amt - 10,000 Agent -  X
    WF Variant - 2000 Approval path - 0001 Level - 2 R.Amt - 999999... Agent -  Y
    I am using the standard rule 00400125 for agent asssignment.
    My Problem for single level release the agent is found(X) and WF is fine.
    But while two level release the responsible agent is not found..What could be the problem. Am I missing any thing in Customization.
    Rgds

    I can't check it since I don't have access to a SAP system here, but don't you have to define the first-level approvers separately for the two scenarios? Perhaps my memory is incorrect, but I seem to remember that you can have one first-level approver for the low amounts, and a different first-level approver for the high amounts.
    This is mostly a chore that just requires additional maintenance since it seems "everyone" is using the same first-level approver independent of amount, but flexibility is highly regarded in SAP...

  • Problem with the release trigger in EXS 24

    Hello!
    I´m working on a sample instrument in EXS 24 and can´t really get the release trigger to work properly. I´ve tried to adress a sample to sound when i release the key, by placing the sample in a group for itself and choosing the "key release" option for that group in the trigger menu in the group editing window. The problem is that the sample is not played.
    Any ideas?
    Running Logic Pro 9.00 on Snow Leopard.
    /Joel

    Hi there,
    I remember running into this problem myself a while back and I can't remember what the solution was. I found this answer on another forum which i thought might help. I think this was the solution, although I haven't tried it (before posting this).
    Another use would be to sample a brass instrument and loop a section, then triggerthe very end of the note.
    To do this, in the EXS editor select group then make sure View>Group Voices is enabled. Her you can set the trigger for a sample to be Key release rather than the normal Key Down. You can now use vel range to assign that group of samples to play at whatever the release velocity is, ie how quickly you let go of the key. (I think - someone please correct me if I'm wrong about that, it's a long time since I did this in EXS)
    I hope that helps.
    Best
    Felix

  • Problem in overall release

    Dear Expert
    we are facing one problem in release procedure of PR previously we are having line item wise release of the purchase requisition now we have change it to overall release , but in that if there is a line item which have deletion indicator then we are not able to release the PR by ME55 , where as we can do the same PR by ME54N , i.e if there is a deletion indicator system is not able to release  PR by ME55 . how can we sought the same problem
    Regards
    Edited by: usmfarhan on Nov 2, 2009 10:05 AM

    Dear Expert
    why collective release of PR not possible for overall release of PR if there is deletion indicator exist at item level
    Regards
    Edited by: usmfarhan on Nov 2, 2009 12:05 PM

  • Problem with my release strategy (PR), Please help

    Folks,
    I have designed a release strategy with three characteristics:
    This is what I entered in characteristic
    1.PRQuantity with table name MEREQ3211GRID and  Field :MENGE
    2.PRmaterial # with table name RMMG1 and  Field :MATNR
    3.PRPlant with table name RMMG1 and  Field :werks
    the value for PRQuantity is >= 10000,000.
    Also, I have set the indicator for (allow interval) in characteristics
    Classes, procedure with classification, Release startegies are all proper.
    I am getting the Release startegy tab in PR, but the problem is when I adopt a PR to create a PO with PO quantity >=10000, the release starategy gets picked up, which is perfect but it is also getting picked up with PO Quantity <=10000.
    I dont understand why is it getting picked up for <=10000..Please suggest!!
    Thanks in advance!!
    Megha

    Megha,
    In your original post you said,
    "1.PRQuantity with table name MEREQ3211GRID and Field :MENGE
    2.PRmaterial # with table name RMMG1 and Field :MATNR
    3.PRPlant with table name RMMG1 and Field :werks"
    Per documentation I have seen, the table you should use for your characteristics for PRs should be CEBAN and CEKKO for POs.  Here are some links to SAP notes you may find useful.
    [365604 - Release strategies in purchasing|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=365604]
    [493900 - Release Strategy|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=493900]
    [672719 - Release strategies in the service|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=672719]
    Note 365604 may be by far the most descriptive of how to set up the entire process.  Hope this helps if you are still having problems.
    Regards,
    Paul

  • Problem installing Oracle9iDS Release 2 v9.0.2 on Debian 2.2r0 Linux with GLIBC 2.1

    After starting Installer of Oracle9iDS Release 2 v9.0.2 with ./runInstaller installation broke with message
    Oracle9iDS needs GLIBC 2.2
    Is there any way to install Oracle9iDS 9.0.2 on Linux without moving on glibc 2.2.
    Oracle 8.1.7 works very well on my Debian 22r0 - glibc2.1 kernel 2.4.7 (AMD K6 II 400+ 384MB RAM) and as I know 8.1.7 is precompiled on GLIBC 2.1 and do not work with GLIBC 2.2 so there is a problem:
    Database work with glibc 2.1 and DS with GLibc 2.2
    Is there any way to install DS on existing glibc 2.1
    Thanks

    Anthony,
    You can always check for compatibility and certification matrices on the Support site: http://metalink.oracle.com.
    Oracle9iDS Release 2 v9.0.2 on WinXP has no issues and is certified on the Professional edition of XP.
    Regards
    Sue

  • Problems sorting multiple releases from the same year

    Hello,
    I have just discovered how to arrange my iTunes library in chronological order by artist using 'Album by Year', i.e. All an artists albums are in order of release, Artist > Year > Disc # > Track #
    However,
    I have now encountered a new (minor) problem where there are several releases from the same year.
    For example, I have some artists who have released several singles, EPs and albums all in the same year (those busy people) and so all releases from any one year are filed alphabetically, not technically in chronological order, but close.
    It would require an exact release date in the 'Year'/'File Info' fields. Is this possible?
    Am I just being too picky?
    Thanks people. My head hurts.

    Hello,
    I have just discovered how to arrange my iTunes library in chronological order by artist using 'Album by Year', i.e. All an artists albums are in order of release, Artist > Year > Disc # > Track #
    However,
    I have now encountered a new (minor) problem where there are several releases from the same year.
    For example, I have some artists who have released several singles, EPs and albums all in the same year (those busy people) and so all releases from any one year are filed alphabetically, not technically in chronological order, but close.
    It would require an exact release date in the 'Year'/'File Info' fields. Is this possible?
    Am I just being too picky?
    Thanks people. My head hurts.

  • Mtl Availability Problem @ Production Order Release

    Hello All,
    For production order creation and order release we have different types of availability checks:
    1: Order creation: check all purchase orders (ZP02)
    2: Order release: do not take purchase orders into account (ZV02)
    In the material master the field "availability check" is always set to 02.
    The problem with this is that as soon as we want to release a production order, the future purchase orders are not taken into account, but the corresponding production orders (created ones) are. This yields missing parts at release, even though there is enough in stock.
    The following options are now selected for ZV02:
    [ ] incl. purchase orders
    [ ] incl. purchase reqs
    [V] incl. dependent reqs
    [V] incl. reservations
    [V] incl. sales reqmts
    [V] incl. deliveries
    [ ] incl. ship notific.
    incl depend reservat [x] all
    incl rel order reqs [ ] do not check
    incl planned orders [ ] do not check
    incl production orders [x] all
    I tried changing OPPJ. Things that do not work or are unwanted are:
    changing ZP02 identical to ZV02, since purchase orders should be included for orders in the future
    changing ZV02 identical to ZP02, since purchase orders confirmed to today might be delivered tomorrow, which would yield missing parts.
    changing ZV02, incl. Production orders from [x] to [F]. Still missing parts @ release.
    Thanks in advance.
    Regards,
    Marc

    Hello
    I assume here that 02 is for the component in the production order, am I right ?
    All components have the material availability at 02, so you are right.
    Now in 02-ZV02 , the you are considering all the reqmts coming from planned or production orders, is that right ?
    Yes, both planned and production orders are checked in ZV02 and ZP02.
    Is ZP02 working according to what you need ?
    ZP02 is used @ order creation. This works fine, because it takes purchase orders into account that are confirmed in the future. This is correct at order creation.
    Cna you check the differences between both rules ?
    Purchase orders are not taken into account for ZV02
    Purchase orders are taken into account for ZP02.
    The rest is identical to the previous list
    An example:
    Day 0 (current stock): 200 of material X
    Day 1: Production order requires 200 material X
    Day 2: Purchase order is confirmed for 200 material X
    Day 3: Production order requires 200 material X
    Result of ZP02: in stock: 200, required 200 + 200, confirmed @ day 2: 200 --> No missing Part
    Result of ZV02: in stock: 200, required 200 + 200 --> Missing Part
    The best solution would be for the system not to look at the requirements of the orders in the future which are not released yet. Therefore I changed the key ZV02: incl. Production orders from [x] to [F]. However, this did not have any effect!
    Regards,
    marc.

  • Problem in creating Release group for Release Procedure for PR

    Hi Experts,
    I could not able to create Release Group ( 01 & 02 ) for Release Procedure and assigning it with a Class
    ( Z_CLASS_PR ) in Set up Procedure with Classification.
    The following error is getting displayed.
    Please check release classes (see long text)..
    How to over come this problem.
    Thanks in advance.
    Regards,
    Nani

    Release group:
    You are only allowed to use one class for each release object (1=PReq, 2=Purchase order). When you use the overall release (as of Release 4.0A), you are only allowed to use one class for the overall release or individual release. If you use the overall release for purchase requisitions, you must mark this for the document type (transaction OMEB, flag for V_T161-GSFRG) and the release group (transaction OMGQ, flag for V_T16FG-FRGFG). In the overall release, the system only takes into account characteristics that are identical for all items. If, for example, item 10 of a purchase requisition contains material group 001 and item 20 contains material group 002, the material group is set to BLANK for the strategy determination.

  • Problems downloading pre-release of Robbie Williams Rudebox

    Has anyone else had problems downloading Rudebox by Robbie Williams after being notified that the pre-release was ready to download?
    The movies and Digital booklet downloaded fine, but the music files stop with an error "An unknown error occurred (-50)."
    Craig

    Hi Kylelee,
    Sorry for the belated reply, been really busy and haven't had a chance t report back.
    I am unfortunate enough to own a PC too, and when I tried connecting to iTMS from the PC, it worked fine.
    I received an email from iTunes Music Store Support:
    1. Make sure you're using the latest version of iTunes, then choose "Check for Purchases" from the Advanced menu.
    2. Enter your account name and password when prompted, then click the Check button. Your purchase should begin downloading. If you receive an error message while downloading, try again after turning off any firewall or web-accelerator software that you may have installed.
    This article provides more information about resuming interrupted downloads:
    http://www.info.apple.com/kbnum/n93015
    But by this time I had my music.
    Hope this helps

Maybe you are looking for