Server caching my objects?

Hi,
I have created SomeObject, and additional objects that all inherit from SomeObject, the key tells the server what to do with it.
public class SomeObject implements Seriallizable {
     private int id;
     private Key key;
     public SomeObject(int id, Key key) {
          // blah blah
     //getters/setters
public class SomeObject1 extends SomeObject implements Seriallizable {
     // Other stuff
}Key inherits from Number and contains an int value.
I send a SomeObject1 to the server with a key of 1, then I send the same SomeObject1 again this time though, I set the key to a 2 and the server picks up the key as a 1.
Can someone please tell me why this is happening?
Thanks in advance.
Regards,

EJP wrote:
But RMI doesn't do that either. It creates a new ObjectOutputStream (actually a derived class) over the same connection. RMI does not have this problem.right, i guess it's not technically RMI if you are managing connections yourself. again, i was conflating using the ObjectOutputStream for remote communication with RMI. for strict usage of RMI, the caller doesn't manage the streams. guess is shouldn't post before i've had my morning coffee, i get a bit sloppy.
Edited by: jtahlborn on Sep 30, 2011 8:47 AM

Similar Messages

  • Oracle Application Server 10g Java Object Cache

    Hi,
    I am new to Java and looking for a java caching framework and just came across Oracle Application Server 10g Java Object Cache. I am unable to find 11g version of the same. Is it not supported any more?
    Can I use this with weblogic server? Please suggest if any other alternatives.
    Thanks,
    Manoj

    Bump.
    I definitely don't see the same file: C:\dev\jdevstudio10134\javacache\lib\cache.jar in the Oracle JDEV tree. Is there a suggested alternative?

  • How does presentation server cache shared by users and roles in OBIEE 11.1.1.6.7

    We are running through a scenario where user1 is assigned to role1 and run a report and after couple minutes user1 is assigned to role2 and run the same report, in 2nd run i see an error in saw log, even though there is presentation server cache that was generated by user1 is previous run it s not shared to the same user if his roles is chnaged, Is this expected behaviour ? by the way we dont have any row level security jut object level
    [2014-01-20T08:11:54.000-07:00] [OBIPS] [ERROR:31] [] [saw.views.dashboard] [ecid: 2f571434fbbd5490:72a3494e:14398c832ad:-8000-0000000000daa36e,0:1] [tid: 1545778944] Invalid request ID (ml75inai8rfs23tn9ih04bh236).  The request you are attempting to access has either expired or is from a previous logon.[[
    File:reportquerycache.cpp
    Line:68
    Location:
    saw.views.dashboard
    saw.httpserver.processrequest
    saw.rpc.server.responder
            saw.rpc.server
    saw.rpc.server.handleConnection
    saw.rpc.server.dispatch
    saw.threadpool.socketrpcserver
            saw.threads
    SessionID: hjhbcvfak396tc89uuu550g8bgv75v2rshv2oeq
    Thanks for your help
    Srix

    The variable DISABLE_CACHE_HIT is used to enable or disable Oracle BI Server result cache hits and not the presentation server cache. So the behavior seems to be correct. You can manage the presentation server cache settings in hte instanceconfig.xml file. Refer to the documentation below to understand the parameters you can configure: ( http://docs.oracle.com/cd/E21764_01/bi.1111/e10541/querycaching.htm#i1218900 )

  • Save file from server cache in WebUI

    Hello,
    maybe someone here can help me with this obscure problem, that bothers me for quite some time now:
    I want to save a pdf file from an internal table to the clients harddrive. Everything is implemented as in Thomas Jung's BLOG(forgot the link) on getting the table in the server cache and I do have my working download URL.
    Now for the difficult stuff: I need to get the file to download correctly without freezing the application.
    This are the ways I tried, but I always do end up with the loading icon in front of my page, not able to make any input. gv_download_url is my working URL, file is OK too when I open it on the hdd:
    1.
      <iframe src="<%= gv_download_url%>" width="0" height="0" id="PDFDownload"
              name="PDFDownload" style="display:none">
      </iframe>
    2.
    <p>
      <object data="report.pdf" type="text/unicode" width="1" height="1">
        <param name="src" value="<%= gv_download_url %>">
        Ihr Browser kann das Objekt leider nicht anzeigen!
      </object>
    </p>
    3.
    <script type="text/javascript">
    function pageLoaded(){
    var myFrame = document.createElement("iframe");
    var src = document.createAttribute("src");
    var height = document.createAttribute("height");
    var width = document.createAttribute("width");
    src.nodeValue = "<%= gv_download_url%>";
    height.nodeValue = "600";
    width.nodeValue = "800";
    myFrame.setAttributeNode(src);
    myFrame.setAttributeNode(height);
    myFrame.setAttributeNode(width);
    var output = document.getElementById("Bereich");
    output.appendChild(myFrame);
    document.close();
    </script>
    <div id="Bereich"/>
    <iframe src="about:blank" onload="pageLoaded()" height="0" width="0"/>
    The only working way I know is this one:
    <script langugage="Javascript">
      var win = window.open("<%= gv_download_url%>");
    </script>
    But I always end up with an empty browser page open, whicht the user has to close manually.
    <i>Short: URL is good, file data is good. How do I get the file download dialog without freezing WebUI?</i>
    Any help would be highly appreciated. Thanks in advance.

    Had the chance to test it in IC WebClient on CRM4.0 today. Everything works fine.
    It seems to be really WebUI specific then. Suppose some missed JavaScript event, that triggers the "Please Wait"-Icon.

  • Image provided in server cache does not appear in Excel download

    Hello WD Experts!
    I have a Web Dynpo (ABAP) ALV table with material master data. One column contains the image of the product or a "sorry, no picture" image, if no specific material image exists.
    The images are not available as MIME objects, hence I load the images from an external source and push them into the server cache using the method cl_http_server=>server_cache_upload( ... ). The lifetime for the cache is defined with 600. The "sorry, no picture" -image is a MIME object.
    All works fine... except for the download to Excel. Only the "sorry, no picture" -image appears. The others gets replaced by a placeholder icon which looks similar to those frequently seen in emails or slow web pages.
    Why don't the cached images get downloaded to Excel???
    Best Regards
    Bodo

    I would imagine this is a limitation of the Excel converter functionality within the ALV. It is probably designed to only download images that come directly from the MIME repository.  The logic between the two approaches would be very different.  Images in the MIME repository can be read from the database using the MIME APIs. To read the images from the Server Cache, the ABAP program would have to make an HTTP request to the cache (using CL_HTTP_CLIENT).  I'm guessing the convert logic simply doesn't do this.
    The other option is - is your lifetime high enough? 600 seconds seems like it would be long enough - at least for a test - there is no guarentee that in a real application the user might not display the data for more than 10 minutes before downloading. Probably not your problem, but something you might still consider if you get this working.
    My only suggestion is that you would have to create your own excel conversion instead of using the ALV one.

  • WD ALV: Image in server cache does not appear in Excel

    Hello WD Experts!
    I have a Web Dynpo ALV table with material master data. One column contains the image of the product or a "sorry, no picture" image, if no specific material image exists.
    The images are not available as MIME objects, hence I load the images from an external source and push them into the server cache using the method cl_http_server=>server_cache_upload( ... ). The lifetime for the cache is defined with 600. The "sorry, no picture" -image is a MIME object.
    All works fine... except for the download to Excel. Only the "sorry, no picture" -image appears. The others gets replaced by a placeholder icon which looks similar to those frequently seen in emails or slow web pages.
    Why don't the cached images get downloaded to Excel???
    Best Regards
    Bodo

    Has to be programmed manually because WD ALV does not read from server cache

  • Web Proxy Server - Cache Windows Updates

    I''ve just installed Sun Java System Web Proxy Server 4.0.9 on our Network, but I'm having a hard time getting it to cache Windows updates.
    Any help?

    And here is the obj.conf file:
    I would like it to cache as most as possible, inlculding windows updates.
    # You can edit this file, but comments and formatting changes
    # might be lost when the admin server makes changes.
    # Use only forward slashes in pathnames--backslashes can cause
    # problems. See the documentation for more information.
    Init fn="init-proxy" timeout="300" timeout-2="15"
    Init profiling="on" fn="stats-init"
    Init byteranges="On" fn="tune-cache"
    Init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->vars.p2c-cl% %Req->vars.remote-status% %Req->vars.r2p-cl% %Req->headers.content-length% %Req->vars.p2r-cl% %Req->vars.c2p-hl% %Req->vars.p2c-hl% %Req->vars.p2r-hl% %Req->vars.r2p-hl% %Req->vars.xfer-time% %Req->vars.cch-status%" no-format-str.access="yes" fn="flex-init"
    Init cache-size="1024" expire="3600" negative-dns-cache="yes" fn="host-dns-cache-init"
    <Object name="default">
    AuthTrans fn="match-browser" browser=".*MSIE.*" ssl-unclean-shutdown="true"
    NameTrans fn="assign-name" name="stats-xml" from="(/stats-xml|/stats-xml/.*)"
    PathCheck fn="url-check"
    ObjectType fn="block-ip"
    ObjectType fn="cache-enable" cache-auth="1" min-size="0" max-size="512000" cache-local="1"
    ObjectType fn="cache-setting" term-percent="100"
    Service fn="proxy-retrieve"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="file">
    PathCheck fn="nt-uri-clean"
    PathCheck fn="find-index" index-names="index.html"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    ObjectType fn="cache-enable"
    Service fn="send-file"
    </Object>
    <Object ppath="ftp://.*">
    ObjectType fn="cache-enable" query-maxlen="10" log-report="off"
    ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="43200"
    Service fn="proxy-retrieve"
    </Object>
    <Object ppath="http://.*">
    ObjectType fn="cache-enable" log-report="off" min-size="0" max-size="512000" cache-auth="1"
    ObjectType fn="cache-setting" lm-factor="0.00" max-uncheck="43200" term-percent="100"
    Service fn="proxy-retrieve" method="*"
    </Object>
    <Object ppath="https://.*">
    Service fn="proxy-retrieve"
    </Object>
    <Object ppath="gopher://.*">
    ObjectType fn="cache-enable" query-maxlen="10" log-report="off" cache-auth="1" min-size="0" max-size="512000"
    ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="43200"
    Service fn="proxy-retrieve"
    </Object>
    <Object ppath="connect://.*:443">
    ObjectType fn="cache-enable" cache-auth="1" min-size="0" max-size="512000"
    Service fn="connect" method="CONNECT"
    </Object>
    <Object ppath="connect://.*:563">
    ObjectType fn="cache-enable" cache-auth="1" min-size="0"
    ObjectType fn="cache-setting" term-percent="100"
    Service fn="connect" method="CONNECT"
    </Object>
    <Object name="stats-xml">
    Service fn="stats-xml"
    </Object>

  • An error occurred at the server : Your request was cancelled due to an internal error on the Page Server. The object you are try

    hi i am getting this error.
    An error occurred at the server : Your request was cancelled due to an internal error on the Page Server. The object you are trying to view does not have the required property 'SI_FILES'. Please contact your system administrator
    please do the nedful.

    yeah Ted Ueda,
    what you are saying is correct. i am getting this output for
      report.getProgID() is CrystalEnterprise.Report.
    can you elaborate this. i am new to this. and also please let me know how to start and if u have any materials on this please forward to [email protected] and [email protected]
    please let me know which is best book for beginers.
    Thanks & Regards,
    Purushotham Podaralla

  • Acrobat Connect Pro LMS 7.5 server cache issue - displaying old content

    Our Adobe Acrobat Connect Pro server is showing old Captivate-created content from about 4-6 weeks ago.
    I loaded 35+ sets of Captivate 3 (SCORM 1.2, HTML, zipped) content onto our Acrobat Connect Pro LMS about 6 weeks ago.
    I converted all training content from Captivate 3.0.1 to 4.0.1, 4 weeks ago by opening each file in Captivate 4 and following prompts to "Save As" new files with different file names.
    I reloaded all content 4 weeks ago, and again 2 weeks ago.
    I reloaded about half of all content again last week.
    End User Acceptance testing performed this week showed that most of the courses are showing old content, ranging from 2-6 weeks old
    Attempted fixes and workarounds:
    Deleting content entirely and reloaded from scratch - this will not work long term, as we lose usage data each time we reload completely new files.
    Contacted Adobe, provided times to track incidents of the issue.  We reached Tier 2 - who told us it was our problem and that everything appeared to be working fine from their side.
    New workaround - load new content and reattach course to new content.  This presents the same long term issue as the first workaround, but enables us to retain older versions of content in the system, should we need to revert or report on it.
    Gaining server side access is a bit challenging due to the hosting situation we have, so I am looking (ideally) for a solution that can be performed from the Administrator/Author Frontend.  However, I want to learn the real cause of the problem, wherever it might reside, so that it can be properly corrected and avoided in the future.  I am calling this a server cache issue, as it seems the server has somewhere retained unwanted old versions of content, preventing current content from being displayed to end users.  Viewing content as an end user = see old content.  Viewing content from the Content area (Author view) shows the current files, so I know they are on the server and are loading correctly, up to a point.
    I am preparing all content for another round of loading/reloading due to other issues and updates, so republishing and reloading all 35+ files into the LMS is unavoidable at this point.
    This issue is keeping our LMS from launching to several thousand users across the country, so any suggestions or helpful tips are much appreciated.

    I think I have isolated the source of this problem. It's the Pitstop Professional 9 plug in. I un-installed this, and everything opens quicker than greased lightning. I re-installed it and it's back to slowsville.
    Unfortunately Pitstop is essential to my workflow.
    Until recently I did my pre-press on a Mac G5 with Acrobat Pro 7 and Pitstop 6.5. I never had this problem with slow file opening. But it seems that the delays would occur when I used the plug-in with large complex files.. So it would open files as fast as you'd expect from an elderly machine. But starting to use Pitstop would result in a prolonged period of staring at a spinning beachball.
    I wonder is there any way to stop the Pitstop plug-in from initializing until it is used? So the plug-in stays inert until you select the tool from from the menus.

  • Attach doc from external content server- using Generic Object Service (GOS)

    Dear All,
    i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
    Please tell me steps for "how to attach a document from external content server using Generic Object Service "
    Scenario is :  For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected  to SAP.how do we manual attach a Document in SAP using GOS.
    Do we need to do some special configuration to use GOS .please give the steps from initial.
    Thanks
    sandeep

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • BI Server Cache

    Hi.
    I am just trying to understand a few things about the BI server cache.
    1. Is there a expiration time for the BI server cache meaning how long it retains the cache and when it has to be deleted. Is there any parameters that can be set to determine when the BI server cacahe expires.
    2. When the BI server clears the cacahe is there an order in which it clears the cacahe meaning if it has 10 entries and reaches a limit how does does it choose which of the 10 entries to delete. How does it determine which is deleted.
    Any documents pointing about the same with helpfull as well.
    Thanks and Regards

    Hi,
    Bi server cache:
    The BI server retrieve the data from several data sources and give them to the presentation server. Then the BI server cache is a data set cache. It store the result of the SQL and don't ask again to the data source (database for instance).
    In your I
    My instanceConfig.xml under config :
    !-- Parametrage pour le cache -->
    <CacheMaxExpireMinutes>60</CacheMaxExpireMinutes>
    <CacheMinExpireMinutes>10</CacheMinExpireMinutes>
    <CacheMinUserExpireMinutes>10</CacheMinUserExpireMinutes>
    <CacheMaxEntries>10</CacheMaxEntries>
    Or
    using the event polling
    http://bintelligencegroup.wordpress.com/2011/07/27/event-polling-table-to-purge-the-cache-in-obiee/
    Hope this will help you.
    Thanks
    Deva

  • How can we determine exactly what server an RMI object is bound to?

    We have RMI objects that bind to a server in a cluster. How can we determine for
    monitoring purposes what server a RMI object is currently bound to /executing
    on?
    We have tried the most of the Mbeans but can't find one that returns runtime info
    for startup classes or RMI objects.
    We have a new monitoring requirement we are trying to satisfy.

    try get the value of PKEY_OfflineAvailability using shell property system APIs (SHGetPropertyStoreFromParsingName or ShellFolderItem.ExtendedProperty)
    Visual C++ MVP

  • Serve Cache Issue

    Hi buddies,
    I have been made up a download code and I'm using the serve cache functions.
    So, After got my path to the file as you can see below:
    Oninputprocessing:
    cl_http_server=>server_cache_upload( url      = display_url
                                              response    = cached_response ).
    I left in my current screen two ways to get the file, one of them is through the link directly to the file using the code below:
    <htmlb:link id      = "ID_DOWNLOAD01"
                        text          = "Click Here!"
                        reference     = "<%=display_url%>"
                        target        = "_BLANK"/>
    The other way is through the onLoad event, I'm calling a javascript function that contain the window.open statament.
    Well, If i click to the link "Click here" a auto popup screen shows me up to accept the file. But when I use the window.open at the onLoad event, the screen open and close without let me get the file. Both way lead me to the display_url path that I got from the serve cache. By the way I've trying absolute and relative path.
    I've trying to using window.location.href to get the file in the same screen, but this one mess with my application.
    Any idea how can I make this file available?
    Thanks in advance,
    Alex

    do not call the js function in onload instead call like below
    <% IF not display_url IS INITIAL.
          %>
          <sc ript lang uage="Jav ascript">
            wi ndow .op en("<%= display_url%>");
          < / scrip t>
          <%
      ENDIF.
          %>

  • How to cache the objects MANUALLY?

    hello
    some o-r mapping tools can cache the objects that have been queried,then next time these objects are required,it don't need to access the database again,it can also monitor the database updating.
    i wonder how i can implement such "cache" function MANUALLY? because i DON'T want to use ANY o-r mapping tools. i only use the jdbc to query database,then generate the object.
    who can give me some clue?? or articles? or sample codes??
    thank you!!!!!

    no you don't understand me,what i want to know is the
    mechanism of the cache,and how to implement it myself
    without using the o-r mapping tools.
    the dao pattern can encapsulate the database
    access,but it can NOT cache the object .First you need to define how the caching occurs.
    - Can the data in the database change without going through your code?
    - Are there multiple copies of your app running at the same time. If yes then what happens if one is updated?
    - How many of these can there be and what impact will this have on memory?
    - etc.
    You also need to identify the 'identity' of an object.
    A simple strategy....
    - Some layer requests an object using the 'identity'.
    - The database layer code looks in a hash for the 'identity'. If it finds it it returns it.
    - If it doesn't find it it uses a DAO to load it, then puts it in the hash, then returns it.

  • ICM Server Cache

    Hello,
    I'm using SAP ERP 2005 : ECC 6.0 with AS JAVA, ABAP and EP
    I have create a BSP IView in my Portal to access an BSP application in SAP ERP 2005.
    When I test it, the IView open too many sessions.
    In my dev_icm log I have too many of this line :
    [Thr 8156] Mon Nov 20 10:40:44 2006                                                                               
    [Thr 8156] ISC: can't compute cache key (rc=3)                                                                               
    [Thr 4704] ISC: can't compute cache key (rc=3)                                                                               
    [Thr 8316] ISC: can't compute cache key (rc=3)                                                                               
    [Thr 9820] ISC: can't compute cache key (rc=3)                                                                               
    [Thr 4044] ISC: can't compute cache key (rc=3) 
    I have configure the SSO.
    What is the error with the ICM Server Cache  ?
    Thank you for your help.
    Mathieu

    Hi Mathieu,
    if you haven't done yet, please have a look at SAP Note 532050 and 975004. Perhaps they will solve your problem.
    Regards
    Bernd

Maybe you are looking for

  • How to use webcam in windows 7?

    I bought a dell inspiron 15 laptop and i installed windows 7 32bit.But i don't know how to open webcam.can someone tell me please :)

  • Connection information to use Query Builder

    I am following the Oracle Reports tutorial - how to add data to a report http://download-east.oracle.com/docs/cd/B14099_17/bi.1012/b14364/rwtutorial_data.htm#i1012227 I am at Step 6: Using the Query Builder. I already have the HR sample schema in my

  • Exporting EDLs from nested sequences

    Ok. here is the problem... I have worked with avid for a long time. But my own system is a finalcut pro 5 system. Why are there no links to the original mediafiles in nested sequences? In AVIDs sytem you can edit sequences into other sequences and st

  • I keep getting a internet network login and password popup

    Once I start Firefox and start browsing I get an intermittent Pop-Up asking me for log back in, the pop-up asks for my user name and password. I enter the information and in a couple of minutes or so it does it again.

  • How to imitate this effect on a video?

    How to imitate this effect on a video? Frozen Frames etc. http://img.fotocommunity.com/images/Spezial/Fotokunst/Bildstoerung-4-a23797032.jpg Need to how to imitate this effect.