Applet cached problem

Have a deployed applet and am upgrading it for the next release.
Problem I came across is if I go to a URL with the older applet, it gets cached and when I go to a URL where it should load the newer applet, the older applet is still cached and fails. In my case its the same URL I go to but additional stuff going on decides whether I should eventually get to the old applet or the new applet.
So I was trying to find a way to prevent the applet being cached / force it to load but couldn't find anything for that. Any suggestions?
I then came across some info on the OBJECT tag (http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/applet_caching.html) and using the cache_archive_ex to specify a jar version, which I thought I could use to force the latest version of the applet/jar to load as the newer version is backward compatable.
But I am having some problems trying to convert the applet html to object html to get the applet located and loaded for the new version. I presume in order to use the object tag to force the jar version I want, I have to completely replace the applet html with object html?
I rebuilt the applet jar with a manifest so it has version number 2.0.0.
my existing applet html is like:
<applet archive=/applets/myapplet.jar,/applets/myssl.jar" code="my.code.MyApplet" width="1" height="1' MAYSCRIPT>
<PARAM ....>
<PARAM ....>
</applet>now to convert this to using the object tag, do I HAVE to put my stuff in a CAB file, or can I reference it out of the jar? I tried like this:
<object codetype="application/java" classid="java:my.code.MyApplet" codebase="/applets/myapplet.jar">
<PARAM NAME="cache_archive_ex" VALUE="/applets/myapplet.jar;preload;2.0.0,/applets/mysll.jar;preload">
<PARAM NAME="MAYSCRIPT" VALUE=true>
<PARAM ...>
<PARAM ...>
</object>But its not working and I have tried various things like removing the my.code from the classid or not specifying the codebase. No luck.
So I guess my questions are:
(1) is there any way to prevent applet caching / force it to reload ?
(2) is there a way with the applet html to use the applet version-number to force it to load the new version ?
(3) If I have to onvert to the object tag, so I have to put my jars in a CAB or am I anywheres close up above?
(4) How can "debug" my OBJECT tag specification to figure out whats wrong?
Appreciate any pointers ...

I used the SUN html converter to jump start the change, then changed the archive param to cache_archive_ex and that seems to have done the trick, just to to check newer applet version 2.0.0 really does get loaded.

Similar Messages

  • Applet caching problem

    Hi.
    I have java applet and I want browser to cache it into java plugin store.
    I use this HTML code:
    <applet
    codebase = "."
    id     = "test"
    code = "TestClass.class"
    name = "TestApplet"
    width = "0"
    height = "0"
    hspace = "0"
    vspace = "0"
    align = "middle"
    >
    <PARAM NAME="cache_option" VALUE="Plugin">
    <PARAM NAME="cache_archive" VALUE="signedapplications.jar, signedcommon.jar">
    <PARAM NAME="cache_version" VALUE="1.0.0.0, 1.0.0.0">
    </applet>
    But it does not work at all. It simply does not cache the applet. I tried also cache_archive_ex parameter but no change occured.
    I do not use any web server (running the page locally) so caching cannot be disabled by the server. (Of course java cache is enabled :)
    Please help what I am doing wrong.
    P.S. I am using java 1.6.0.1.

    Try [URLConnection.setUseCaches(false)|http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html#setUseCaches(boolean)].

  • Applet Cache Problem

    Dear All,
    I have an application which had two frames.
    In left frame, there was a applet in HTML pages and some other link. if click the link, will load different html, which contains applet, in right frame.
    In right frame, there was a page to show page detail after user click some links in left frame.
    Both left frame and right frame will refert to same applet jar. (this is for share data between two applets acrrose frame)
    for each pages, I have used cache_version to control applet download.
    However, when I monitor HTTP server log, Jar file will redownload again when change pages be click hyperlike in left frame.
    Do you know what the problem is?
    Appreciated for your help.
    Some codes for your reference:
    Left frame code:
    <OBJECT classid="clsid:CAFEEFAC-0015-0000-0010-ABCDEFFEDCBA"
    codebase="http://ipaddress:9100/pos2/plugin/j2re-1_5_0_10-win.exe#Version=1,5,0,10"
    WIDTH = "120" HEIGHT = "50" NAME="posRequestNoApplet">
         <PARAM NAME="CODE"          VALUE="common.applet.RequestNoApplet">
         <PARAM NAME="CODEBASE"      VALUE="http://ipaddress:9100/pos2">
         <PARAM NAME="CACHE_OPTION"  VALUE="Plugin">
         <PARAM NAME="CACHE_ARCHIVE" VALUE="pages/pos/lib/soap.jar,pages/pos/lib/json.jar,pages/pos/lib/posAllApplet.jar">
         <PARAM NAME = "CACHE_VERSION"       VALUE="2007.0621.0016.0018,2007.0621.0016.0018,2008.0122.0023.0034">
         <PARAM NAME="NAME"          VALUE="RequestNo">
         <PARAM NAME="type"          VALUE="application/x-java-applet;jpi-version=1.5.0_10">
         <PARAM NAME="scriptable"    VALUE="true">
         <PARAM NAME="MAYSCRIPT"     VALUE="TRUE">code of right frame
    <OBJECT classid="clsid:CAFEEFAC-0015-0000-0010-ABCDEFFEDCBA" WIDTH = 100% HEIGHT = 100% NAME=posApplet>
    <PARAM NAME="CODE"          VALUE="markin.applet.individualmarkin.DetailMarkInApplet">
    <PARAM NAME="CODEBASE"      VALUE="http://ipaddress:9100/pos2">
    <PARAM NAME="CACHE_OPTION"  VALUE="Plugin">
    <PARAM NAME="CACHE_ARCHIVE" VALUE="pages/pos/lib/soap.jar,pages/pos/lib/json.jar,pages/pos/lib/posAllApplet.jar">
    <PARAM NAME="CACHE_VERSION" VALUE="2007.0621.0016.0018,2007.0621.0016.0018,2008.0122.0023.0034">
    <PARAM NAME="NAME"          VALUE="MarkIn">
    <PARAM NAME="type"              VALUE="application/x-java-applet;jpi-version=1.5.0_10">
    <PARAM NAME="scriptable"    VALUE="true">
    <PARAM NAME="MAYSCRIPT"     VALUE="TRUE">Edited by: swellyahoo on Jan 22, 2008 11:52 PM
    Edited by: swellyahoo on Jan 22, 2008 11:54 PM

    Can I get help from you?
    If my question was not clear, please point out and I will supply more information.
    Looking forward to getting answer from you - Java Expert :)

  • Applet cache is not working on Mountain Lion(Mac 10.8)

    Applet cache is not working on Mountain Lion(Mac 10.8)
    OS Details:  Mac 10.8
    Applet cache is not working on Safari 6 and Firefox 15.0.1 with java 7(provided by oracle) on Mac 10.8(mountain Lion) and even applets are not working  on chrome because its not supporting java 7(64 bit).
    In order to run applets on Firefox and Safari we need to install Java SE6 which provided by Apple otherwise “PlugInProcess” does not work and it show the below warning message.
    For your information I given screen shots below
    ) Safari screen shot with Java Plug-in
         2.) Firefox screen shot with Java Plug-in
         3) Chrome screen shot( it does not have java plugin)
    4) Java cache viewer console
    5) Applet Java console and it is using Java 7
    Kindly review above mentioned problem and suggest us.

    Problem solved.
    I switched to a Western Digital powered Hard Drive from the Toshiba Canvio I was using.
    I suspect the USB 3.0 did not mount correctly after the first save.
    Fortnuately the Canvio does work on my Windows 7 machine.
    Thanks for yur suggestions

  • Java applet cache parameter

    I'm sorry if that what I'm looking for is described elsewhere. I couldn't find it. I seem to have a bug with the latest Apple's java implementation (1.5) downloaded with the latest Software Update.
    I have to switch off applet caching for a certain applet and tried to do this via the Java preference app. It seems that it doesn't work using the offered checkbox. Because everytime when I check it and leave the dialog and turn back it's still checked. I tried it with the deployment properties file but had no luck not knowing (finding) the correct parameter to set false.
    As setting the cache size to zero didn't resolve the problem finally I tried to set the cache path to "/dev/zero" what for sure is the worst solution but it works out. Caching is disabled (This way I discovered that trying to write the cache path in the box in the preference pane you can write it only in reverse manner! llun/ved/ No, it's not a joke)
    Anyone could tell me the right parameter for the deployment properties file that I can correct this situation?
    Thanks
    Powerbook   Mac OS X (10.4.6)  

    Unfortunately, this did not resolve the issue. I have been doing a bit more looking and it appears I'm getting a null resource error on reload/refresh:
    public abstract class SimpleWindow extends JInternalFram
       public SimpleWindow()
          initComponents();
    public class FancyWindow extends SimpleWindow
       public FancyWindow()
          initComponents();
    }During startup, it tries to create a new FancyWindow, which calls initComponents(). Inside initComponents is a call to create a JEditorPane.
    The function runs fine, and I am able to create a new JEditorPane; however, when I do:
    jedit.setText("Text Here");I get my null error (tracing through the calls, it looks like it's unable to initialize the editorkit.
    This does not happen on a normal first-time load. It does not happen if I completely close the browser and restart it to re-run the applet, but if I just try to refresh it, it seemingly can't get memory for this?
    Edit: It looks like this may be a regression in 1.6.0_22 and later: 1.6.0_22 HTMLEditorKit throws NullPointerException when reloaded
    Edited by: Jamie.McPeek on Jan 15, 2011 12:28 AM

  • Shared applet cache location

    In order to reduce both load times and network burden we are looking at the possibility using a common location for the java applet cache. Our internal tests, albeit limited, have proved successful. By specifying a common local network location for storing temporary files in the java control panel we were able to pull the jars for our applet by one initial user and use that cache (on a different pc) by another user. Specifically, we are looking at implementing this in a citrix environment using a local cache on the citrix server (rather than the network location in our tests).
    Does anyone have experience doing this? If so, what potential problems could arise? Is there a better solution?
    Thanks for any advise.

    Can I get help from you?
    If my question was not clear, please point out and I will supply more information.
    Looking forward to getting answer from you - Java Expert :)

  • Sharing JVM applet cache among multiple users

    Our browser plugin clients run in a Citrix environment where Windows Terminal Services servers host the client sessions for multiple users and the users only have a thin client hardware device at their desks. We've discovered that as a consequence of optimizing certain aspects of the Citrix environment a user's JVM cache is remote to the server hosting his/her browser session, and that the remote caching is a performance bottleneck.
    Turning applet caching off improves performance considerably, but we'd like to get the cache directed locally to the server hosting the browser session and turn caching back on. But since hundreds of users times tens of servers in the "Citrix farm" adds up to a lot of cache disk space, we're wondering about users sharing a JVM cache. This already happens when one runs multiple browser/plugin sessions locally on a regular workstation. But what about fifty users' separate plugins sharing a single applet cache? It appears from file timestamps that jars'/classes' idx files in a cache are updated when a file is loaded from the cache. What if multiple browser plugins were trying to do this concurrently? Is there a risk of locking, or a data integrity exposure? Or are those idx updates insignificant since they don't affect the last modified date or the sticky cache version number? (Most apps use a 1_5_0_2 JRE, but some apps require a 1.4 plugin.)
    Thanks,
    Brian

    This sounds very similar to a problem that's occuring for us at the moment. Did you ever find some solution to this problem?
    Regards,
    Jon.

  • Sharing JVM applet cache among multiple users (crosspost)

    Does anyone have experience sharing a single JVM applet cache among multiple users?
    (This is a crosspost of http://forum.java.sun.com/thread.jspa?threadID=5157018. I know crossposting is frowned on, but it went a week without replies in the plug-in forum.)
    Our browser plugin clients run in a Citrix environment where Windows Terminal Services servers host the client sessions for multiple users and the users only have a thin client hardware device at their desks. We've discovered that as a consequence of optimizing certain aspects of the Citrix environment a user's JVM cache is remote to the server hosting his/her browser session, and that the remote caching is a performance bottleneck.
    Turning applet caching off improves performance considerably, but we'd like to get the cache directed locally to the server hosting the browser session and turn caching back on. But since hundreds of users times tens of servers in the "Citrix farm" adds up to a lot of cache disk space, we're wondering about users sharing a JVM cache. This already happens when one runs multiple browser/plugin sessions locally on a regular workstation. But what about fifty users' separate plugins sharing a single applet cache? It appears from file timestamps that jars'/classes' idx files in a cache are updated when a file is loaded from the cache. What if multiple browser plugins were trying to do this concurrently? Is there a risk of locking, or a data integrity exposure? Or are those idx updates insignificant since they don't affect the last modified date or the sticky cache version number? (Most apps use a 1_5_0_2 JRE, but some apps require a 1.4 plugin.)
    Thanks,
    Brian

    This sounds very similar to a problem that's occuring for us at the moment. Did you ever find some solution to this problem?
    Regards,
    Jon.

  • Increase lyfecyle applet cache on java runtime

    Hi .
    Applet in IE6 on windows XP SP1, with java 15.0_09.
    I launch 3 times the applet with the same codebase.
    I launch the applet on first time on i go to a transaction after i launch in the same IE window the applet for the second time and i go in another transaction. I return in the first applet, that reload it in the first transaction when i do the same action on second applet i return in the second transaction. I this point there is no problem ...
    But when i launch the applet on third time and i go to another transaction, i lost the context of my first applet when i come back in.
    On tracing i can see that java use a "lifecycle applet cache", and this cache have 2 slots, that the reason that i lost the first applet context on the third launch.
    My question i how can i increase the number of slots on "lifecycle applet cache" ?

    Unfortunately, this did not resolve the issue. I have been doing a bit more looking and it appears I'm getting a null resource error on reload/refresh:
    public abstract class SimpleWindow extends JInternalFram
       public SimpleWindow()
          initComponents();
    public class FancyWindow extends SimpleWindow
       public FancyWindow()
          initComponents();
    }During startup, it tries to create a new FancyWindow, which calls initComponents(). Inside initComponents is a call to create a JEditorPane.
    The function runs fine, and I am able to create a new JEditorPane; however, when I do:
    jedit.setText("Text Here");I get my null error (tracing through the calls, it looks like it's unable to initialize the editorkit.
    This does not happen on a normal first-time load. It does not happen if I completely close the browser and restart it to re-run the applet, but if I just try to refresh it, it seemingly can't get memory for this?
    Edit: It looks like this may be a regression in 1.6.0_22 and later: 1.6.0_22 HTMLEditorKit throws NullPointerException when reloaded
    Edited by: Jamie.McPeek on Jan 15, 2011 12:28 AM

  • Caching problem w/ primary-foreign key mapping

    I have seen this a couple of times now. It is not consistent enough to
    create a simple reproducible test case, so I will have to describe it to you
    with an example and hope you can track it down. It only occurs when caching
    is enabled.
    Here are the classes:
    class C1 { int id; C2 c2; }
    class C2 { int id; C1 c1; }
    Each class uses application identity using static nested Id classes: C1.Id
    and C2.Id. What is unusual is that the same value is used for both
    instances:
    int id = nextId();
    C1 c1 = new C1(id);
    C2 c2 = new C2(id);
    c1.c2 = c2;
    c2.c1 = c1;
    This all works fine using optimistic transactions with caching disabled.
    Although the integer values are the same, the oids are unique because each
    class defines its own unique oid class.
    Here is the schema and mapping (this works with caching disabled but fails
    with caching enabled):
    table t1: column id integer, column revision integer, primary key (id)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Because the ids are known to be the same, the primary key values are also
    used as foreign key values. Accessing C2.c1 is always non-null when caching
    is disabled. With caching is enabled C2.c1 is usually non-null but sometimes
    null. When it is null we get warnings about dangling references to deleted
    instances with id values of 0 and other similar warnings.
    The workaround is to add a redundant column with the same value. For some
    reason this works around the caching problem (this is unnecessary with
    caching disabled):
    table t1: column id integer, column id2 integer, column revision integer,
    primary key (id), unique index (id2)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id2"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id2"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Needless to say, the extra column adds a lot of overhead, including the
    addition of a second unique index, for no value other than working around
    the caching defect.

    Tom-
    The first thing that I think of whenever I see a problem like this is
    that the equals() and hashCode() methods of your application identity
    classes are not correct. Can you check them to ensure that they are
    written in accordance to the guidelines at:
    http://docs.solarmetric.com/manual.html#jdo_overview_pc_identity_application
    If that doesn't help address the problem, can you post the code for your
    application identity classes so we can double-check, and we will try to
    determine what might be causing the problem.
    In article <[email protected]>, Tom Landon wrote:
    I have seen this a couple of times now. It is not consistent enough to
    create a simple reproducible test case, so I will have to describe it to you
    with an example and hope you can track it down. It only occurs when caching
    is enabled.
    Here are the classes:
    class C1 { int id; C2 c2; }
    class C2 { int id; C1 c1; }
    Each class uses application identity using static nested Id classes: C1.Id
    and C2.Id. What is unusual is that the same value is used for both
    instances:
    int id = nextId();
    C1 c1 = new C1(id);
    C2 c2 = new C2(id);
    c1.c2 = c2;
    c2.c1 = c1;
    This all works fine using optimistic transactions with caching disabled.
    Although the integer values are the same, the oids are unique because each
    class defines its own unique oid class.
    Here is the schema and mapping (this works with caching disabled but fails
    with caching enabled):
    table t1: column id integer, column revision integer, primary key (id)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Because the ids are known to be the same, the primary key values are also
    used as foreign key values. Accessing C2.c1 is always non-null when caching
    is disabled. With caching is enabled C2.c1 is usually non-null but sometimes
    null. When it is null we get warnings about dangling references to deleted
    instances with id values of 0 and other similar warnings.
    The workaround is to add a redundant column with the same value. For some
    reason this works around the caching problem (this is unnecessary with
    caching disabled):
    table t1: column id integer, column id2 integer, column revision integer,
    primary key (id), unique index (id2)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id2"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id2"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Needless to say, the extra column adds a lot of overhead, including the
    addition of a second unique index, for no value other than working around
    the caching defect.
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • I am facing a caching problem in the Web-Application that I've developed us

    Dear Friends,
    I am facing a caching problem in the Web-Application that I've developed using Java/JSP/Servlet.
    Problem Description: In this application when a hyperlink is clicked it is supposed to go the Handling Servlet and then servlet will fetch the data (using DAO layer) and will store in the session. After this the servlet will forward the request to the view JSP to present the data. The JSP access the object stored in the session and displays the data.
    However, when the link is clicked second time then the request is not received by our servlet and the cached(prev data) page is shown. If we refresh the page then request come to the servlet and we get correct data. But as you will also agree that we don't want the users to refresh the page again and again to get the updated data.
    We've included these lines in JSPs also but it does no good:
    <%
    response.setHeader("Expires", "0");
    response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control","no-store");
    %>
    Request you to please give a solution for the same.
    Thanks & Regards,
    Mohan

    However, when the link is clicked second time then the request is not received by our servlet Impossible mate.. can you show your code. You sure there are no javascript errors ?
    Why dont you just remove your object from the session after displaying the data from it and see if your page "automatically" hits the servlet when the link is clicked.
    cheers..
    S

  • Bridge update does not fix caching problems.

    Dear Adobe,
    The 5.0.1.23 update for Bridge CS6 does NOT fix the problem of constantly re-caching layered TIF files.
    I originaly reported the problem here on May 16, 2012.
    http://forums.adobe.com/thread/1007560
    At that time I also submitted a bug report via photoshop.com, and received an e-mail response from Adobe support confirming the problem had been replicated in their lab and promising a fix in the next update.
    I've since tracked several other reports of this bug and related cache problems.
    I assume that, at best, we will have to wait another 6 months or more for the next update. How can I assure this bug will be addressed?

    redcrown on guard wrote:
    The 5.0.1.23 update for Bridge CS6 does NOT fix the problem of constantly re-caching layered TIF files.
    At that time I also submitted a bug report via photoshop.com, and received an e-mail response from Adobe support confirming the problem had been replicated in their lab and promising a fix in the next update.
    Thank you for this bit of information. Maybe it means I can stop the deactivations/uninstall/reinstall/reactivate cycle to try yet another solution. And hopefully, this will stop the re-caching problem with other than tif files.
    regards
    *S*

  • Caching problem in Chrome and Firefox

    Hey folks,
    I ran into a weird problem.  I created a video player based on the Strobe Media Playback.  I added a couple of plugins.  This player is used to watch progressive download FLV files.
    I ran into the following issue.  I watch part of a video.  I select another one.  Then I select the previous one again.  Only the cached portion of the first video is shown.  The entire video will not be downloaded again from the server, but only the portion already cached on the client.
    This problem is really bad in Chrome.  When I restart FF, I can watch the entire video.  Not in Chrome.  The only way to solve this in Chrome is to clear the cache.
    Any ideas?
    The website is live, so you can test this yourselve.  http://www.submergeproductions.com/videos.aspx
    All help very welcome, because this is a major issue.
    Follow up.  I made a quick fix.  I added a random number to the FLV url to force a redownload from the server, but this quite a dirty fix. I would rather have a restart/continuation of the download if the file was only partially downloaded.
    Thanks,
    Peter

    Hi Silviu,
    the reason why it works now is because I uploaded a modified version.  I append "?<random number> to the URL.  That prevents caching problems because the browser hasn't got the version cached.  But I still report it as a bug.
    Peter

  • Caching problem of servlet

    Hi guys
    We are facing this problem of caching within our project. The project aims to generate a html code to pick up some rich media ads details at random and displaying on the html file where the generated code is expected to be pasted. We developed two servlets, one which extracts the ads from the database randomly and then depanding on the ad type it calls the other servlet as src of an iframe, which in turn puts all code for displaying the rich media ads. The script which we are generating for the user to paste onto their pages is:
    <script LANGUAGE="JAVASCRIPT" src="http://192.168.1.6:8080/advert_java/servlet/GetAdServlet?region=1&zone=1&type=nossi&cachevar=yes">
    </script>First servlet (GetAdServlet) returns the javascript statements and thus is called using this generated code. Now cotents of the iframe are supplied by the second servlet ie richMediaServlet. This servlet is called like
    iframeURL = fullHttpDir+"/servlet/RichMediaServlet?";
    iframeURL += "bannerCode="+ RNBanner (BannerCode to be called);
    out.println("document.write(\"<iframe  src='"  + iframeURL +  "' height=" + hheight +" width="+ wwidth + " SCROLLING=no FRAMEBORDER=0 MARGINWIDTH=2 MARGINHEIGHT=2 onfocus='window.focus(); return iframeFocus()'>\");");
    out.println("document.write(\"</iframe>\");");This richmediaServlet returns HTML into <iframe>. when richmediaservlet is called, a parameter 'bannerCode' is passed. then richmediaServlet fatches the banner from the database and displays the banner into the <iframe>.
    Now the problem comes when we run the html file containing the script tag mentioned above, and refresh our page, ideally it should pick the ads randomly and pass it on to RichMediaServlet.
    I also try debugging both servlets. I called the getadservlet from javascript mentioned above and put debugging info in both the servlets, now for every refresh we do on the html side, we are getting a different random bannercode in adservlet but in richmedia when we print the bannercode received in querystring it is taking an older value which was displayed some time back and keeps on doing this for quiet a long time, making it look like some caching problem of RichMediaServlet.
    Instead when we tried to put the same html <script> code into another servlet's doGet, everything seems to be working fine.
    i have also used the following code to prevent the caching on both the setvlets
    long currentTime = System.currentTimeMillis();
    response.setHeader("Cache-Control", "no-cache, must-revalidate");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("Last-modified", currentTime);
    response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");     and following in the iframe's head tag before the iframe tag in the getAdServlet.
    out.println("document.write('<head>');");
    out.println("document.write('<meta http-equiv=\"Cache-Control\" content=\"no-cache,must-revalidate\">');");
    out.println("document.write('<meta http-equiv=\"Pragma\" content=\"no-cache\">');");
    out.println("document.write('<meta http-equiv=\"Last-modified\" content=\""+ currentTime + "\">');");
    out.println("document.write('<meta http-equiv=\"expires\" content=\"Sat, 6 May 1995 12:00:00 GMT\">');");
    out.println("document.write('</head>');");I request you all geeks to try and help me to your best. The project is at its final stages and in high urgency now.

    i think the caching is being in the browser, with the iframe.
    You should try passing a random param to the servlet in the iframe URL, something like:
    var a = Math.random() * 10000000; //for example
    out.println("document.write(\"<iframe  src='"  + iframeURL +"&rand="+a+"' height=" + hheight +" width="+ wwidth + " SCROLLING=no FRAMEBORDER=0 MARGINWIDTH=2 MARGINHEIGHT=2 onfocus='window.focus(); return iframeFocus()'>\");");
    out.println("document.write(\"</iframe>\");");
    ...It should force the browser to ask for the servlet again
    hope this helps...

  • Caching problem with Internet Explorer

    Hi,
    users of an ApEx application I'm working on are reporting that when they're deleting an uploaded file from one of the pages in the application (using Internet Explorer), the link to the file remains. This is however not an issue in FireFox, and after some research I found out that this is a caching problem in IE. It can be avoided by making IE check for newer versions of stored pages every time a page is visited, but it is clearly not an option to ask all our users to do this. I also learned that it can be fixed by randomizing the file URL every time the page is loaded, but I don't know how to randomize a URL, nor how to make it still point to the uploaded file.. Any help would be appreciated!
    Thanks,
    -Kjetil

    Kjetil,
    This problem is also there if you use Flash Charts with a drilldown. See this posting:
    http://www.deneskubicek.blogspot.com/
    It will also link you to a corresponding thread and to an example in my demo application.
    The idea with a random number changing you link is the same I used in extending my
    xml chart package.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • Multiple desktops. One keeps switching to "desktop 5" when I click in the other.

    I have 2 monitors running 5 desktops. Whenever I click on the monitor that isn't holding desktop 5 the other monitor automatically switches from whatever desktop it's currently displaying to desktop 5. Why? I need this to stop. please help.

  • G5 Firewire-ports poor for audio interfaces??

    Hello. I have reason to believe that the FireWire-ports on the new G5:s are not really stable enough to handle an audio interface. Storage devices are okay (much less complex protocol). My G5 constantly loses contact with my Digi 002R interface, or c

  • Mouse timing lag in Captivate 5.5

    No matter how I position my mouse on the timeline, I get a three second lag. I can't find any information on how to fix this.

  • Your account cannot be created at this time

    Hello, can anyone help me please. i bought Iphone 5 from UAE and when i tired to create new App User account in Facetime from my IPhone 5 i got the below error message: "your account cannot be created at this time" i tried more than 100 times for 3 d

  • Can't print from mac book pro to Ricoh Aficio MP C4500

    Hello, today i started working in a new office, that uses a Ricoh Aficio MP C4500 printer and everyone in the office uses windows computers. I have a Mac Book Pro 2.26 GHz Intel Core 2 Duo, on it, I am running Mac OSX 10.6.6. When I have tried to pri