Problem in caching

hi,
I am using java plugin 1.4.1 version and the problem is that the plugin does not seem to cache the jar files but downloads the jar file each time.the plugin cache directory also is empty and caching does not take place. this is my code.
<OBJECT classid="clsid:CAFEEFAC-0014-0001-0000-ABCDEFFEDCBA"
width="360" height="75" align="baseline"
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,1,mn">
<!-- <PARAM name="codebase" value=""> -->
     <PARAM name="code" value="filename">
<PARAM name="type" value="application/x-java-applet;jpi-version=1.4.1">
     <PARAM NAME="cache_archive" VALUE="source.jar">
     <param name="cache_version" value="1.2.3.4">
     <param name="cache_option" value="Plugin">
     <PARAM NAME=cache_archive_ex VALUE="source.jar;preload;1.2.3.4">
<PARAM name="scriptable" value="true">
<param name="mayscript" value="true">
please indicate any errors in the code.
thank you,
subba rao

I think the problem is that source.jar appear on both
cache_archive_ex and cache_archive
Try removing the cache_archive.

Similar Messages

  • Viewing Excel Files using Tomcat - Problem with caching

    Hi all,
    A small part of an application I'm writing has links to Excel files for users to view/download. I'm currently using Tomcat v5 as the web/app server and have some very simple code (an example is shown below) which calls the excel file.
    <%@ page contentType = "application/vnd.ms-excel" %>
    <%
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
    response.sendRedirect("file1.xls");
    %>
    This all works except but I'm having one big problem.
    The xls file (file1.xls) is updated via a share on the server so each month, the xls file is overwritten with the same name but with different contents. I'm finding that when an update is made to the xls file and the user then attempts to view the new file in the browser they recieve only the old xls file. It's caching the xls file and I don't want it to. How can I fix this so that it automatically gives the user the new updated file.
    The only way I've managed to get Tomcat to do this is to delete the work directory and delete the file from my IE temp folder and then restart Tomcat - this is a bit much!
    Any help would be greatly appreciated.
    Thanks.

    I'd a problem with caching a few years back, for a servlet request which returned an SVG file.
    As a workaround, I ended up putting appending "#" and a timestamp / random number after it. The browser assuming each request was new, and didn't use the cache.
    Eg.
    http://myserver/returnSVG.do#1234567
    where 1234567 is a timestamp / random.
    Not sure whether you can do this on a file based URL... but maybe worth a shot...
    regards,
    Owen

  • Problems with cache.clear()

    Hello!
    We are having some problems with cache clears in our production cluster that we do once a day. Sometimes heaps "explode" with a lot of outgoing messages when we do a cache.clear() and the entire cluster starts failing.
    We had some success with a alternate method of doing the cache clear where we iterate cache.keySet() and do a cache.remove(key) with a pausetime of 100 ms after 20000 objects until the cache is empty. But today nodes started failing on a cache.size() before the removes started (the first thing we do is to log the size of the cache we are about to clear before the remove operations start).
    We have multiple distributed caches configured with a near cache. The nearcache has 10k objects as high units and the back caches vary in size, the largest is around 300k / node.
    In total the DistributedCache-service is handling ~20 caches.
    The cluster consists of 18 storage enabled nodes spread across 6 servers and 31 non storage enabled nodes running on 31 servers.
    The invalidation stategy on the near caches is ALL (or, its AUTO but it looks like it selects ALL since ListenerFilterCount=29 and ListenerKeyCount=0 on a StorageManager?)
    Parition count is 257, backup count 1, no changes in thread count on the service, service is DistributedCache.
    Coherence version 3.6.1.0.
    A udp test sending from one node to another displays 60 megabyte/s.
    Heapsize for the Coherence JVMs, 3gb. LargePages is used.
    Heapsize for the front nodes JVMs, 6gb. LargePages is used.
    No long GC-times (until the heaps explode), 0.2-0.6 seconds. CMS-collector.
    JDK 1.6 u21 64-bit.
    Windows 2k8R2.
    We are also running CoherenceWeb and some Read/Write-caches, but on different coherence services. We are not doing any clear/size-operations against caches owed by these services.
    Looking at some metrics from the last time we had this problem (where we crashed on cache.size()).
    The number of messages sent by the backing nodes went from <100/s to 20k-50k/s in 15 s.
    The number of messages resent by the backing nodes went from ~0/s to 1k-50k/s depending on the node in 15 s.
    At the time the total number of requests against the DistributedCache-service was around 6-8/s and node.
    To my questions, should it be a problem to do a cache clear with this setup (where the largest cache is around 5.4 million entires) ? Should it be a problem to do a cache.size()?
    What is the nicest way to do a cache.clear()? Any other strategy?
    Could a lock on a entry in the cache cause this problem? Should it really cause a problem with cache.size()?
    Any advice?
    BR,
    Carl
    Edited by: carl_abramsson on 2011-nov-14 06:16

    Hi Charlie,
    Thank you for your answer! Yes, actually we are using a lot of expiry and many of the items are created at roughly the same time! We haven't configured expiry in the cache configuration, instead we do a put with a expire.
    Regarding the workload, compared to our peak hours it has been very low when had problems with the size and clear operations. So the backing tier isn't really doing much at the time. That's what has been so strange with this problem.
    The release going live today has PRESENT as near cache invalidation strategy. We remove as much of the expire as possible in the next.
    BR,
    Carl

  • Problem with  caching of  pages in iframe(intersting problem)

    Hi All,
    I am facing an interesting problem in my project. I have a page which includes jspf and Iframe. The jspf has two links �configuration� and �Details�
    The jspf (leftBar.jspf ) links are given below:
    <f:subview id="leftBar">
    <ui:hyperlink binding="#leftBar.configureLInk}"id="configureHyperlink" styleClass="menulink" target="centerFrame" text="Config" url="Config.jsp"/>
    <ui:hyperlink binding="#leftBar.detailslLInk}"id="detailsHyperlink" styleClass="menulink" target="centerFrame" text="Details" url="Details.jsp"/>
    </f:subview>
    The page is as below:
    <ui:body binding="#{test.body1}" id="body1" style="-rave-layout: grid" >
    <ui:form binding="#{test.form1}" id="form1">
    <div style="background-color:black;height: 430px; left: 0px; top: 124px; position: absolute; width: 150px" styleClass="lightGrayBg">
    <jsp:directive.include file="/leftBar.jspf"/>
    </div>
    <div id="mydiv" style="background-color: yellow; left: 150; top: 124px;height: 430px; position: absolute">
    <iframe height="431" name="centerFrame" width="853" src="default.jsp" id="myiframe" >Test...test..</iframe>
    </div></ui:form></ui:body>
    The �Configuration� page consists of the text boxes where the user inputs the data. It consists of two textfield say name and the Telephone number.It also consists of two buttons to SAVE and CANCEL.
    When the user enters the data and clicks on SAVE, The data is inserted into the database.
    The problem arises when I click on the CANCEL button.
    When the user clicks on the Configuration link the page displays the information entered by the user, getting it from the database.
    Name : Myname
    Tel No : 123456
    When he changes the data in the textboxes
    Name : YourName
    Tel No : 98765
    and clicks on the CANCEL button, it goes to the page (say default.jsp) given in the action of the button with out saving the data in the database. But when the user clicks on the �Configuration� link once again he sees the data that the user has changed (not saved in the database).
    Name : YourName
    Tel No : 98765
    When we look at the log messages that I have coded in the Prerender function to give the textbox values (getNameTextFiled.getText(), getTelnotextField.getText()) we can see the data is from the database (Myname, 123456), but in the UI we can see the changed data (not saved in the database). When I log out (end the session) and login again the correct data (Myname, 123456) is shown from the database. I am not able to figure out the cause for it. I tired in many ways to solve it but I and not able to do so.
    Can anyone help me out to solve the issue?

    Hi   ,
       finally i got answer with the  modifications
    [u]    in test page[/u]
      Instead of  this
        <div id="mydiv" style="background-color: yellow; left: 150; top: 124px;height: 430px; position: absolute">
    <iframe height="431" name="centerFrame" width="853" src="default.jsp" id="myiframe" >Test...test..</iframe>
    </div></ui:form></ui:body>
    put this
    <div id="mydiv" style="background-color: yellow; left: 150; top: 124px;height: 430px; position: absolute">
    <ui: iframe height="431" name="centerFrame" width="853" id="iframe1" url="default.jsp" id="myiframe" >Test...test..</ui:iframe>
    </div>
    and in  left bar.jspf
    instead of this
    The jspf (leftBar.jspf ) links are given below:
    <f:subview id="leftBar">
    <ui:hyperlink binding="#leftBar.configureLInk}"id="configureHyperlink" styleClass="menulink" target="centerFrame" text="Config" url="Config.jsp"/>
    <ui:hyperlink binding="#leftBar.detailslLInk}"id="detailsHyperlink" styleClass="menulink" target="centerFrame" text="Details" url="Details.jsp"/>
    </f:subview>
    remove urls and targets
    <ui:hyperlink binding="#leftBar.configureLInk}"id="configureHyperlink" styleClass="menulink"  text="Config" onClick="configClick()  " />
    <ui:hyperlink binding="#leftBar.detailslLInk}"id="detailsHyperlink" styleClass="menulink"  text="Details"  onClick="detailClick()"/>
    java script
      function configClick(){
           document.getElementById("form1:iframe1").src="config.jsp";
            return false;
        function detailClick(){
            document.getElementById("form1:iframe1").src="detail.jsp";
             return false;
      so like this you can avoid page caching  in iframe 
    with regards
    ss

  • Problem with cache refresh entity bean / server node

    Hello,
    ive got a big problem and not found answer in sdn until now.
    Ive got a job that gets data from maxdb by sapjob - jco - session bean - entity bean - database.
    this job works daily. the data to work with is written directly to database from external.
    on first execute it works, but second etc not. i search for answer and i guess something:
    entity bean is cached (increase percormance?) with results of the select and do not know about new database entries when they are written directly to database. so second select says: there is no new data (but they are there).
    i only get this new data when i restart netweaver server node, then it works, but only for one time. then result is in cache and then i have to do same procedure before it goes (restart server).
    how can i get this data? is there any setting for force node to refresh cache? or any other settings to affect something like this?
    we have to go live with this in august.
    thx for help.
    Version: NW04, SP21

    thanks at first.
    OSS was the next step i consider, enforcedly.
    I hoped that there was a kind of timeout in visual admin or somewhere else where (for example) i can set a special time (seconds?) for refreshig the cache. Or i can set a flag for "do not cache entity beans".
    Someone else any idea?
    Nowadays on test system whe have made a task that starts windows every night so that netweaver also is "fresh". a kind of resolution but not the best and no resolution for the productiv system. or whe have to write a kind of batch job that only restarts server node once a day.
    New Info:
    I think cache was filled directly after restart.
    when we restart, then data are written, and then our application wanted to read them, they are also not seen.
    The data are only seen by bean when the restart takes place AFTER the data are written into db.
    So we change restart time to point after data are written. so we will test if this works, on monday we will see.
    Edited by: Torsten on Jul 11, 2008 11:27 AM

  • ADOBE BRIDGE SAYS HAVE PROBLEM WITH CACHE.  WILL NOT WORK AND I TRIED TO GO TO

    DownLoaded yetserday 2200 new pictures into my mac book por.
    now adobe bridge freezes up and says error in cache settings.
    but when i attempt to open preferences, and clear out cache, it does not work.@

    hnz5758 wrote:
    i attempt to open preferences, and clear out cache, it does not work.@
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • E75 - Contacts. Problem with cache

    Hey there
    I've got my brand new E75 and I'm quit happy with it but there is a very strange problem. When I open the contactsmenu and try to search after some names it shows me the errormessage that the cache will be bbuild up soon. I should try it later. But I've been waiting since yesterday and it shows me all the time the same message. Is that a bug oder a system error or is that the problem with guy in front of the device???
    Sorry for my bad english ... I'm just a german 
    Regards from the sunny baltic coast 
    Uli

    Hi Uli,
    Please read through following  thread ignore there comments about simcard (that's pure coinsidence)
    Most probably you will have to give it more time, but as usertein as it sounds - noone just knows it for sure.
    Just for sake of asking - did you upgraded firmware to the last version already? do that if you didn't.
    # if you have found my comment useful please click on KUDOS! button #

  • Problems with cached rowsets:  execute() not called

    I'm using sun studio creator and am trying to use a cached rowset. The code for creating it and accessing it has been created by studio creator.
    The CachedRowSetXImpl is created by the session bean _init method (see below) and is accessed via the jsf web page via a value= attribute on a data table.
    The problem is is that the first time the cached rowset is accessed, it generates the error 'java.sql.SQLException execute() never called. After this is works properly. I've already posted this iin the JSF forum, but didn't get a response. Any ideas?
    private void _init() throws Exception {
    System.err.println ( ClassName + " _init start");
    arg_info_prvdrRowSet.setDataSourceName("java:comp/env/jdbc/isisdev1");
    arg_info_prvdrRowSet.setCommand("SELECT * FROM ISIS_APP.ARG_INFO_PRVDR");
    arg_info_prvdrRowSet.setTableName("ARG_INFO_PRVDR");
    System.err.println ( ClassName + " _init end");
    private CachedRowSetXImpl arg_info_prvdrRowSet = new CachedRowSetXImpl();
    public CachedRowSetXImpl getArg_info_prvdrRowSet() {
    System.err.println ( ClassName + " getArg_info_prvdrRowSet start*****");
    try {
    System.err.println ( ClassName + " Table Name = " +
    arg_info_prvdrRowSet.getMetaData().getTableName(1));
    arg_info_prvdrRowSet.first();
    } catch (Exception Err) {
    System.err.println ( ClassName + " Error is " + Err.getClass().getName() + " " + Err.getMessage() );
    System.err.println ( ClassName + " getArg_info_prvdrRowSet end");
    return arg_info_prvdrRowSet;
    }

    Did you get the solution for this. if you can get please, tell me .
    i m struggling like hell. everything ok. I cannot get the rows. when i deploy in Tomcat 5.5
    con = DriverManager.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setDataSourceName("java:comp/env/jdbc/sea");
    //categoryRowSet.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setUrl("jdbc:mysql://localhost:3306/seafood");
    categoryRowSet.setUsername("root");
    categoryRowSet.setPassword("");
    //categoryRowSet.execute(con);
    categoryRowSet.setCommand("SELECT * FROM category");
    categoryRowSet.setTableName("category");
    categoryRowSet.execute();

  • CS6 Bridge says encountered problem, purge cache

    Hi there Forum Room,  Please can anyone help.
    I have been running photoshop CS6 for about 2yrs on my iMac running with 6gb Ram. Whenever I open Bridge I get this message and then it locks.
    "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation"
    The only way to close the program is to force quit
    I have tried purging, through Tools > Cache > Purge cache >  But it still locks up, the little circle in the bottom left corner keeps going round and never stops this has been going all night and nothing has changed.
    I have tried uninstall and reinstall but bridge has this problem again, Photoshop works good but I have no preview area to view photos before editing !......Please Please can anyone help

    hnz5758 wrote:
    i attempt to open preferences, and clear out cache, it does not work.@
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • OC4J11 deployment problem - TLD Caching issue

    Hello,
    I'm having problem deploying a JSF 1.2 web app. This web app uses third-party tags which are packaged under "WEB-INF/lib". When deploy this web app (as an EAR file), I'm getting these errors -- which seemed to relate to TLD CACHING:
    2007-12-17 20:09:23.875 NOTIFICATION Binding PETMailWeb web-module for application PETMailWeb to site default-web-site under context root PETMailWeb
    2007-12-17 20:09:27.734 WARNING J2EE HTTP-00009 Error while building tldcache for application: PETMailWeb
    2007-12-17 20:09:30.593 NOTIFICATION Application Deployer for PETMailWeb FAILED.
    2007-12-17 20:09:30.593 NOTIFICATION Application UnDeployer for PETMailWeb START
    S.
    I looked in the Oracle® Containers for J2EE Support for JavaServer Pages Developer's Guide 10g Release 3 (10.1.3) document (http://download-west.oracle.com/docs/cd/B25221_04/web.1013/b14430.pdf) and it recommended that parameter "jsp-cache-tlds" in global-web-application.xml is "Set to on to search all directories within the Web application for TLD files. Any found will be added to the list of TLD files inherited from the global Web application".
    So I made the changes, restarted my OC4J11 instance and deployed my JSP app again. Still getting the same error.
    Has anybody encountered this same issue ?

    Caching is turned on by default. If you want to modify your roles and have them take effect immediately then you should turn caching off. This is mentioned in the docs:
    http://download-uk.oracle.com/docs/cd/B25221_04/web.1013/b14429/configldap.htm#BEHBGDFE

  • Problems setting cache size,

    Hi,
    I hope I m in the right category for this question:
    I m reading in a csv table, and putting it in one primary database ( DB_QUEUE )
    and several secondary databases ( DB_BTREE ). I m using the Berkeley DB 4.7
    for with C++. For the primary database i leave the standart cache size, for the secondary
    databases I want to use 16mb:
    unsigned long cache_byte= (1024*1024*16);
    sec[a]->set_cachesize(0,cache_byte,1)
    sec[*] are the secondary databases
    and the cache size is set before opening the databases.
    The problem is when i run the programm it allocates more and more memory,
    but it should just use a little more than a times 16 mb.
    Can somebody help me ?

    Welcome to the forums !
    You might get a better/faster response in the Berkeley DB Forum
    Berkeley DB
    HTH
    Srini

  • Problem in Cache Server

    Hi All,
    I am installing Content Server and installation went successfully. But now I am trying to register Live Cache in ODBC driver but it is creating problem as wheh  I try to register it with odbcreg command it search for sqlod32.dll in pgm directory but this file does not exist here and infact I am not able to find this file any where as a result I am not able to register this server. Because of this when I run below URL to test cache server:
    http://<ip address>:1095/Cache/CSProxyCache.dll?serverInfo
    It always throw me error like page does not exist while for content server it gives me output.
    Please suggest whether I am missing something here or how can I find this file.
    OS: Window 2003 Server
    DB: MAXdb 7.7
    Thanks
    Sunny
    Edited by: Sunny Pahuja on Feb 23, 2011 11:56 AM

    Instead of using Livecache driver. I used maxdb as driver and updated cache server ini file with driver as MaxDB. It works fine now.
    Thanks
    Sunny

  • Problems reading cache in LR3

    Hello,
    Since upgrading to a Win 7 (32-bit) machine, I had problems with LR 2.7 stopping randomly and giving me an error message that it had failed to read the catalog file and had to close.
    Now, with LR 3, I am getting the same behavior, but it is telling me that it could not read the cache, rather than the catalog.    I did notice that in the develop mode, the loupe view was not hi-rez before this happened the last time.
    In both cases (2.7 and 3.0), after starting the program again it checks the indicated file (catalog in 2.7 and cache in 3.0), and there have been no problems found.  However, it is a PITA to have this happening all the time.  Any ideas?
    Thanks.

    Try deleting (entire XXXXXPreviews.lrdata folder next to your catalog file) and rebuilding your cache.
    Or better, try simply copying your catalog to a new location and run it from there. That will save you the long operation of rebuilding the cached if this (broken cache) doesn't prove to be the problem.

  • Query problem witch cache

    hello experts,
    i have following problem.
    i called a query first. the result is ok. i called it twice, the result isn't ok. When i delete all cache types in RSRCACHE and then i call the query again, all is ok.
    very strange, but i hope sameone can help me.
    your Andreas Täubrich

    Hi,
    Hmm, this is a bug.
    Is something is changed in the BW system? Like currency convertion - have you new courses.
    then the cache should be inactive.
    open a oss message.
    deactivate the cache for this query. So that, your users get the right result.
    How is the performance after that, do you need the cache?
    Sven

  • CSS Reverse Proxy Rule problem if caches suspended breaks web site

    Hi
    Another perplexing problem we've had tonight:
    2 x CSS11000 with 2 x CE560's providing Reverse Proxy Cache to a front end web server. During testing we had both CE services "suspended" but not the RCP content rule. So in my theory this rule couldn't work because it's services were not available. However, the CSS continued to hit this content rule and hence broke the web side. We then suspended the RPC rule, all traffic was forced to use the directtoserver rule and things worked again.
    The question this poses, and we will be testing this on Monday is....if the caches are "down" rather than "suspended" does the same thing happen....and is this a bug (because I cant help thinking thats not what ithe CSS should be doing) or something else.
    Anyone come across this ?
    Thanks
    Simon

    Simon,
    I think the answer to your question comes down to whether the content rule is considered "down" or not. When the caches are down, what does a "show rule" show as a status of the content rule. If the rule is down, the CSS should not even respond to the clients request via the vip unless there is another content rule containing the same vip (L3, L4 etc..)
    Maybe the keepalive types need to be changed. For example, using icmp for a keepalive type and shutting down port 80 on a webserver will NOT signify to the CSS that the services is down.
    If the rule is down and still increasing hit counts, then this would be some type of bug.
    Regards
    Pete Knoops
    Cisco Systems

Maybe you are looking for