Applets not refreshing

This is more of an annoyance than anything. When I compile a java applet (from the command line), then try to view it in html, I don't get the newly compiled version of my applet.
Instead, I get the old version. The only time I get the new version is when I change the .java file name, compile it, then change the applet tag in the html file for the .class. Like I said, a real annoyance.
Is there something I can do about this? I'm using Xp with firefox 1.5 if that makes any difference.
I've tried disabling my cache (with a firefox extension), but still the same result.

No effect.Worth a try though...
I guess you're familiar with the "appletviewer" tool to run the applet without
using a browser. You can't use this if you need to interact with the applet from
within your web page (via javascript or whatever), but otherwise it could get
round the browser caching the applet.

Similar Messages

  • Applet not refreshing in internet explorer 7

    Hi there,
    I have an application that works fine in IE6 but does not work under IE7.
    The applet reads a text file every minute, this text file is refreshed also every minute.
    I have found out that if you press x in the Java console to clear the classloader cache, the applet does read the tekst file once more.
    Is there anything that can be done to this application to make it work under IE7?
    See code below.
    Thanks in advance for your input / feedback,
    Kind regards, Sharief.
    Code:
    import java.applet.Applet;
    import java.awt.*;
    import java.io.*;
    import java.net.MalformedURLException;
    import java.net.URL;
    //import java.util.*;
    public class VoiceWebQ extends Applet
    implements Runnable
    public VoiceWebQ()
    FileToRead = "WinWebQ_data.txt";
    refreshRate = 5;
    public void init()
    width = 220;
    height = 50;
    resize(width, height);
    String s = getParameter("FileToRead");
    if(s != null)
    FileToRead = new String(s);
    public void paint(Graphics g)
    g.setColor(new Color(89, 169, 222));
    g.fillRect(0, 0, 220, 50);
    g.setColor(new Color(204, 204, 204));
    g.fillRect(0, 50, 220, 10);
    g.setColor(Color.WHITE);
    g.setFont(new Font("Arial", 1, 14));
    g.drawString(firstMessageStr, 10, 18);
    g.setFont(new Font("Arial", 1, 14));
    g.drawString(secondMessageStr, 10, 40);
    g.setFont(new Font("Arial", 3, 9));
    g.drawString("� @Voice Applications WebQ v.1.1", 10, 58);
    public void start()
    if(readThread == null)
    readThread = new Thread(this);
    readThread.start();
    public void run()
    while(Thread.currentThread() == readThread)
                   //classCache.clear();
    readFile();
    try
    Thread.sleep(1000 * refreshRate);
    catch(InterruptedException interruptedexception) { }
    public void stop()
    Thread thread = readThread;
    readThread = null;
    thread.interrupt();
    public void readFile()
    URL url = null;
    InputStream inputstream = null;
    BufferedReader bufferedreader = null;
    try
    url = new URL(getDocumentBase(), FileToRead);
    catch(MalformedURLException malformedurlexception)
    System.out.println("Malformed URL ");
    stop();
    try
    inputstream = url.openStream();
    bufferedreader = new BufferedReader(new InputStreamReader(inputstream));
    int i = 0;
    do
    String s;
    if((s = bufferedreader.readLine()) == null)
    break;
    if(i == 0)
    firstMessageStr = s.trim();
    i++;
    if(i == 1)
    secondMessageStr = s.trim();
    } while(true);
    catch(IOException ioexception) { }
    finally
    if(bufferedreader != null)
    try
    bufferedreader.close();
    catch(IOException ioexception1) { }
    if(inputstream != null)
    try
    inputstream.close();
    catch(IOException ioexception2) { }
    paint(getGraphics());
    String FileToRead;
    Thread readThread;
    int refreshRate;
    int width;
    int height;
    String firstMessageStr;
    String secondMessageStr;
    //private Hashtable classCache = new Hashtable();
    }

    You might want to check which version of java plug-in is used in your client machine.
    We have a similar applet application which works fine for JRE 1.5 or below. However, it stops refresh for JRE 1.6. It seems to me it is a Java 1.6 bug.

  • Applet not refreshing in browser

    I wrote a HelloWorld applet and viewing it through internet explorer. when i modify the code, compile it, then it replaces the original .class file, but when i refresh the browser, it loads the original applet. when i delete the .class file from the directory, the applet still shows up on the browser after i refresh it. whats going on? and how do i update the applet.

    you hafta CLOSE the browser and then re-open it so the VM sarts up again

  • Hi,  Trying to log in with my user id and password at iocbc but was not able to access. Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting  Anyone can advise? or i need to download?

    Hi,
    i have the same problem?
    Trying to log in with my user id and password at iocbc but was not able to access.
    Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting
    Anyone can advise?

    You need to install Java for your Mac OS version, and/or make sure it's enabled in the Java Preferences application and your browser's preferences.

  • JPanel do not refresh when minimizing or moving JApplet

    I�m using a JApplet that contains a JTree,some buttons and 3 JPanels. The 3 panels have the same size and are placed in the same place. So, 2 panels have the setVisible(false) and one setVisible(true), and depending on the situation, I change the panel I want to show. The problem is that in the appletviewer, when I move the applet, I minimize it or I put a window in front of it, the JPanel visible (all of them contain JTextFields, JTextAreas, JCombos ...) does not refresh and I cannot see the components inside the panel. This doesn�t happen with the JTree and the buttons.
    Any help ? Thanks !

    I think I got the solution. First you have to add the panel to the frame :
    this.getContentPane().add(panel, new XYConstraints(240, 112, -1, 484));
    and then add the elements to the panel.
    If you first add the elements and then the panel to the frame, the elements inside the panel are not refreshed (they dissapear) if you minimize or move the window.

  • Can not refresh server manager Error:0x8007045b

    OS: Windows 2012 R2 Core
    Services: Hyper V
    I was trying to remote reboot and the session hung. No worries I decided I could just reboot the next morning. So I rebooted the next day but when I go into server manager I get
    an errror can not refresh server manager Error:0x8007045b. Did some research found suggestions to fix it using a DISM.exe /Online /Cleanup-image /Restorehealth.
    But then I get an error 1115 A system Shutdown is in progress. I attempt to fix this issue using pskill winlogon but the issue pursistest. I have restarted the server several times now. Not sure how to fix this.
    Thanks in advance,
    Jake

    Hi,
    In addition to the above information,
    Checkout the below thread for similar discussion,
    http://social.technet.microsoft.com/forums/windowsserver/en-US/a700e9f6-4491-4c70-8bd0-d9d3111e2f70/windows-reboot-error
    Regards,
    Gopi
    JiJi
    Technologies

  • Can not refresh page after save properly(When not saving master record)

    I am using jdeveloper 11g R2 (11.1.2.3) JSF Facelet
    In some use case I have Address as master table and Person as detail table
    For some business reason I need to don't save same addresses
    eg:
    If +1 Test St+ is in database already and new user coming and adding this address with new person
    I need to use the row in database not creating a new address
    I do saving in doDML method of Address with some hashing algorithm and it is fine
    My problem is that I can not refresh page after save properly
    User coming to page think Adding a new address and a new person but in fact no new
    address added because of business I describe above
    Any ideas how I can implement this?
    Appreciate that
    Regards
    Mohsen

    Hi,
    from your description it is not clear why the page doesn't refresh. It could be a problem in your implementation code - who knows. What if you perform the address check on a command button that actually submits the new address? If the check returns true (address exists) you would call row.refresh(forget new row); and re-query the view object so the address coming from the database is displayed. If you wanted to use the doDML then yuou need to be aware that doDML doesn't help removing the row the user created. It just ignores the database update but the entity is still around, which in my suggested solution wont be the case.
    Frank

  • Can not refresh the metrics in schedular

    Post Author: sachinddalal
    CA Forum: Performance Management and Dashboards
    Hi,
    When I refresh the metric using schedular, the metric is not refreshed , nor schedular return any error. But when checked in metrics proparties, the last refresh date is not changed, niether the values are updated.
    Whe I try to refresh the metric manual, the values are refresh.
    Please help me to troubleshoot the problem of refreshing metric through schedular.
    Thanks,
    Regards
    Sachin Dalal

    Post Author: jezbraker
    CA Forum: Performance Management and Dashboards
    Scheduler is pretty horrid for refreshing metrics.Better of to use the Rules engine and create a rule thats based on a schedule that based on condition (1=1 works well ) then refreshes metircs.troubleshooting is best done with the trace options in setup/parameters.there are a few other ways or seeing what the schedulers up to - but id stick to rules if i were you.

  • Clicking a tree node does not refresh the fields in the table component

    hi all,
    I am using a tree component along with a table component in my page.so whenever i am clicking on a node it should display the relevant information of that node in the table from the database.But whenever i am doing the page is not refreshing and the old values of the textfields in the table still exist.i have written the code to populate the table in a button click event.It is working fine but the same is not working when i am clicking any node in the tree component.Can anyone provide a solution to this problem.
    Thanks and regards,
    Prasant Kumar

    Never mind... I actually found something that works...
    treeModel.nodeStructureChanged(leadSelection);

  • Report Portlets do not refresh data.

    How can I refresh a report portlet?
    I have created a report and a forms provider based on the same table. I put the portlets on separate TABS on the same PAGE. The report works fine, but when I update the information on the form and return to the report it does not reflect the changes. I have pressed 'refresh', I have gone to another page and come back, no luck. The only way to see the changes is to log out and back in again. Any ideas?
    Thanks, Deb

    I had caching turned off. When I turned on both content and page definition, I was unable to query my forms. The forms and reports are on the same page, different tabs. When I select cache page definition only, I get the same results as no caching. The forms will query my data, I can update, but when I return to the reports TAB, the data has not changed. (Yes, I did click refresh.) I have found that if I click the 'Customize' link on the portlet containing the report and then click 'OK' the data will update. This, however gives me a new error that I will worry about later. For now, the users have 'Minimize' but do not have the 'Customize' Link and the 'minimize' link does not refresh the data, nor give me the new error.

  • Workbook not refresh after running Planning Function (BI-IP)

    Hi! Folks,
         I have a problem with the Bex Analyser which not refresh the data after running Planning Function.
    Step 1: Run Planning Function (There are some changes in records)
    Step 2: I have to Run Process Variables again and input the same selection in the pop-up variables
    Step 3: The changed records will be shown...
    Can I have some coding in the Layouts of Bex Analyzer to refresh the data after running Planning Function?
    Brgds,
    Supasake

    Hi,
    I had a similar problem that the resuls of my planning function were not automatically shown. Only if I did "something else" like saving or running another function the results were displayed.
    I think I solved it by upgrading my SAP GUI6.4 with patch 14. the results of planning functions should be automatically displayed.
    D

  • When I resume my laptop from sleep/hiberante, firefox is hung. It will prompt me with a dialog when I quit, so it is still running, but the page display is blank and will not refresh. I noticed this since about beta 7

    Firefox is running when my laptop comes out of system standby, but the page that was displaying when the laptop went into sleep mode is now a white canvas that does not refresh.
    The application is not hung, because I get prompted to save tabs when I quit, but for some reason, I can't prompt Firefox into refreshing the screen.
    I'm running Firefox on a Thinkpad T400 which has Intel 4 series Express integrated Graphics.

    This also happened if the network adapter is disabled then enabled. My computer is Windows 7 x64. Firefox needs to be killed from taskman before it will load a new instance of the application. I can also reproduce with all add-ons disabled.

  • Master-Detail Detail does not refresh after it's been empty

    I have a master detail page (both are tables) that works just fine, until I click a master record that has no details.
    After that the panelHeader of teh detail is refreshed with the PPT but the table underneath it is not, I keep seeing "no rows yet", no matter which master record I click.
    When I go to a different page and return it's fine again.
    Only one of my pages has this behavior, I tested this on another and it was fine. Has anyone seen this behavior before?
    My console has this message:
    May 11, 2007 10:52:38 AM oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel getSelectedRow
    WARNING: rowIterator is null
    Message was edited by:
    Wendy Tromp

    Ok I found it,
    My details iterator had the following properties:
    <iterator id="AfdelingMedewerkersIterator" RangeSize="-1"
    Binds="AfdelingMedewerkers"
    DataControl="PRBAppModuleDataControl"
    Refresh="IfNeeded" RefreshCondition="#{!adfFacesContext.postback}" />
    I have no idea why I set it like that, but removing the Refresh properties fixed my problem.
    I am still clueless as of why this led to the behavior as described above. I could have understood it if my iterator was not refreshed at all, but I have no idea why it stopped working only after the details were empty and not a second before...
    Anyway, problem solved!

  • Not Refresh Value After Add New Record used with RPC Component

    This is my code in the class Users.as
    package inthanous
    import mx.controls.Alert;
    import mx.rpc.http.HTTPService;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    public class Users
    private var service:HTTPService;
    [Bindable]
    public var xmllist_user:XMLList;
    public function Users(){
    service = new HTTPService();
    service.method = "POST";
    service.useProxy = false
    service.resultFormat = "e4x";
    public function listUser():void{
    service.url = "/user/get_all_user_group_name";
    service.addEventListener("result", httpResultListUser);
    service.addEventListener("fault", httpFaultListUser);
    xmllist_user = new XMLList();
    service.send();
    private function httpResultListUser(event:ResultEvent):void{
    service.removeEventListener("result", httpResultListUser);
    service.removeEventListener("fault", httpFaultListUser);
    xmllist_user = new XMLList(service.lastResult.children());
    listAllUser();
    private function httpFaultListUser(event:FaultEvent):void{
    var faulstring:String = event.fault.message;
    service.removeEventListener("result", httpResultListUser);
    service.removeEventListener("fault", httpFaultListUser);
    Alert.show(faulstring,"Error");
    public function createUser(_xml:XML):void{
    service.url = "/user/create_user";
    service.addEventListener("result", httpResultCreateUser);
    service.addEventListener("fault", httpFaultCreateUser);
    service.send({firstName: _xml.firstName,
    lastName: _xml.lastName,
    gender: _xml.gender,
    login: _xml.login,
    pwd: _xml.pwd,
    dtBirth: _xml.dtBirth,
    telephone: _xml.telephone,
    idGroup: _xml.idGroup
    private function
    httpResultCreateUser(event:ResultEvent):void{
    service.removeEventListener("result", httpResultCreateUser);
    service.removeEventListener("fault", httpFaultCreateUser);
    listUser();
    clearUserDetail();
    private function httpFaultCreateUser(event:FaultEvent):void{
    var faulstring:String = event.fault.message;
    service.removeEventListener("result", httpResultCreateUser);
    service.removeEventListener("fault", httpFaultCreateUser);
    Alert.show(faulstring,"Error");
    This code i used with Ruby on Rail to connect with MySQL.
    When i used with FireFox browse after i create new user
    success it refresh the new record in Datagrid. But for the Internet
    Explorer Datagrid not refresh it because of it display the old
    recode before create.
    So i don't know it problem by Internet Explorer or my script.
    i hope someone can help me the solve this problem.
    thanks

    If you restrict the selection, a record value outside of that selection is not acceptable and will give you this error. This is how BPS works.
    You need to restrict on some other char so BASIC1 doesn't come in, but this value should be part of any selection on ZSEGMENT field for it to be accepted back.

  • Why??? Simple snapshot can not refresh automatically, but can refresh manually.

    Server 1 : Oracle 7.3.4 (as a Master site)
    Server 2 : Oracle 7.3.4 (as a Snopshot site)
    Client PC: SQL*Plus (Oracle 7.3.4 Client)
    Step 1: on Client PC, start 2 SQL*Plus dialog Windows,
    one(Window A) for <Server 1> , another(Window B) for <Server 2>;
    Step 2: on <Window A> do:
    SQL>connect scott/tiger@Server1
    SQL>CREATE SNAPSHOT LOG ON scott.dept ;
    SQL>select * from dept;
    DEPTNO DNAME LOC
    10 AAAAAA AAAAA
    20 BBBBBB AAAAA
    30 CCCCCC AAAAA
    Step 3: on <Window B> do:
    SQL>connect scott/tiger@Server2
    SQL>CREATE DATABASE LINK oracle USING 'Server1';
    SQL>CREATE SNAPSHOT all_dept REFRESH fast
    start with sysdate NEXT SYSDATE+1/(24*60)
    AS SELECT * FROM scott.dept@oracle;
    -- refresh interval: 1 minute
    SQL>select * from all_dept;
    DEPTNO DNAME LOC
    10 AAAAAA AAAAA
    20 BBBBBB AAAAA
    30 CCCCCC AAAAA
    Step 4: on <Window A> do:
    SQL>insert into dept values (50,'MMMMMM','NNNNN');
    SQL>commit;
    SQL>select * from dept;
    DEPTNO DNAME LOC
    10 AAAAAA AAAAA
    20 BBBBBB AAAAA
    30 CCCCCC AAAAA
    50 MMMMMM NNNNN
    <one or two minutes later ... ... >
    Step 5: on <Window B> do:
    SQL>select * from all_dept;
    DEPTNO DNAME LOC
    10 AAAAAA AAAAA
    20 BBBBBB AAAAA
    30 CCCCCC AAAAA
    conclusion: Simple snapshot can not refresh automatically ???????
    SQL>exec DBMS_SNAPSHOT.REFRESH( list => 'all_dept',method => 'F');
    SQL>select * from all_dept;
    DEPTNO DNAME LOC
    10 AAAAAA AAAAA
    20 BBBBBB AAAAA
    30 CCCCCC AAAAA
    50 MMMMMM NNNNN
    conclusion:Simple snapshot can refresh manually.
    How to solve this problem?????
    Thank you very much
    Zhang Ming-an

    When you are manually refreshing the snapshot as scott/tiger, and your database link was defined with a 'connect to/identified by ' clause, your login credentials will be scott/tiger. When the refresh happens from the job queue, it does not use those credentials, It uses some default set. What you should probably do is:
    1. create public database link Oracle using 'server1';
    2. as scott/tiger, create database link Oracle connect to scott identified by tiger;
    3. your automatic refresh should work now.

Maybe you are looking for

  • Bug on printing pdf

    i am trying to print this pdf generated by safari-oreilly http://pagesperso-orange.fr/olmignard/test2.pdf i can print this pdf with adobe reader and when i launch the print of this pdf with preview i have this crash . Process: Preview [264] Path: /Ap

  • I need help with a mapping issue.

    We have a number of websites setup so that they are all under the default website in IIS 7.  We use ISAPI/ReWrite/3 to process and take it to the correct page to view.  Unfortunately this does not work so well with CFAJAX or CFFILEUPLOAD.  Can anyone

  • [OVM 3.0.1] Visibly attached FC storage not being recognized by VM manager

    This is my first real trek into Oracle VM so please be gentle. I have an SCST based FC target that I can see is visibly attached to my OVS server. It's picked up as /dev/sdc but not matter how many times I reboot the OVS server, I can't get OVM to ev

  • Yahoo mail draft not saving

    I'm using yahoo mail through my mail app and it's starting not to save my drafts when I save them. It just started and don't know how to fix it. Anyone know?

  • How do you show what time an sms message was recieved or sent?

    how do you show what time an sms message was recieved or sent?