Speed of animation fluctuates based on java cache..

Hi everyone,
It seems I am experiencing a rather weird problem.
In my app I am having a small animation on a BufferedImage using the swingx.Timer class.
The problem is that sometimes the animation runs very slow (I get a feeling of the computer struggling to keep up)
while some other times its running on full speed! (I have set the Timer constructor to 1ms)
What could be causing this "undeterministic" behaviour? I 've looked at the code a million times
and there seems to be nothing wrong with it...!
P.S I am having a CORE2DUO and running the latest JRE 1.6.024
UPDATE: I can replicate the problem if I clear the java cache from the control panel
in windows..!strange...isn't it?
Edited by: konos5 on Mar 14, 2011 4:10 PM

konos5 wrote:
UPDATE: I can replicate the problem if I clear the java cache from the control panel
in windows..!strange...isn't it?Depends. Are you perhaps loading the image in the same method you are drawing it? If so: that is horribly inefficient.

Similar Messages

  • Java web start fails to launch application when java cache is off

    Hi,
    there's no problem when java cache is used but when java cache isn't used, my application fails to launch via jws (jnlp).
    the following is the error
    java.lang.NullPointerException
    at java.util.jar.JarVerifier.mapSignersToCodeSource(Unknown Source)
    at java.util.jar.JarVerifier.mapSignersToCodeSources(Unknown Source)
    at java.util.jar.JarVerifier.getCodeSources(Unknown Source)
    at java.util.jar.JarFile.getCodeSources(Unknown Source)
    at java.util.jar.JavaUtilJarAccessImpl.getCodeSources(Unknown Source)
    at com.sun.deploy.cache.DeployCacheJarAccessImpl.getCodeSources(Unknown Source)
    at com.sun.javaws.security.SigningInfo.getCommonCodeSignersForJar(Unknown Source)
    at com.sun.javaws.security.SigningInfo.check(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    this is the jnlp file
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" version="1.0" codebase="http://11.4.100.41" href="secuiNXG.jnlp">
    <information>
    <title>secuiNXG U start GUI</title>
    <vendor>secui.com Ltd.</vendor>
    <homepage href="/"/>
    <icon href="web_login_ci.gif"/>
    <shortcut online="true">
    <desktop/>
    <menu submenu="secuiNXG U"/>
    </shortcut>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+" initial-heap-size="50m" max-heap-size="250m" />
    <jar href="SES.jar"/>
    <jar href="skin_alloy.jar"/>
    <jar href="Borders.jar"/>
    <jar href="informa.jar"/>
    <jar href="jaxen-1.1-beta-12.jar"/>
    <jar href="jcelements.jar"/>
    <jar href="jctable.jar"/>
    <jar href="jdom.jar"/>
    <jar href="log4j-1.2.14.jar"/>
    <jar href="jnlp.jar"/>
    <jar href="jxl.jar"/>
    </resources>
    <application-desc main-class="secui.firewall.SecuiLogin">
    <argument>11.4.100.41:80</argument>
    </application-desc>
    </jnlp>Test Environment
    JRE : 1.6.0_19
    O/S : Windows 7 (32 bit)
    Browser : IE8
    I checked for other versions of jre but not using java cache didn't cause any problems.
    I checked for the release note of update 19 but I have no clue.
    Is there any way to launch java application without using java cache?

    greencosmos wrote:
    ..I had a problem changing the cache location. The button for this action is disabled. I can't figure out how to enable it.On my system, it is enabled when the 'cache files' box is checked, and disabled when it isn't.
    1) Without changing the location I assumed that deleting the cached files could be a similar job, so I clicked "Delete Files..." and deleted with all checkboxes checked.I am not convinced that would entirely clear the cache, but have done no specific tests to check.
    2) I unchecked "Keep temporary files on my computer".So it was checked when you were trying to change the cache location?
    3) Applied all the changes.
    4) I launched your demo.
    Result - It was launched without any prompt.
    I revisited the page with the URL and successfully launched the app. again.The application launched just fine, but no prompt.
    If you follow those (links and) steps I outlined exactly, does the file service demo launch twice for you?I'm sorry I don't exactly understand your question. .. Your description is enough to convince me that answer is 'yes'.
    ..I tried twice and it launched twice, but not twice at the same time(it launched once at a time).Surprise, surprise. That is the first mention in this thread of 'same time'/'simultaneously'. Care to share the other defining factors that you forgot to mention, or is guessing part of the 'fun' of helping?
    But still I'm having problems with launching my application.
    I assume that it could be jnlp syntax problem. The "main=true" subelement is missing.It is a good idea to validate the launch files of JWS based launches that are failing for any reason. For that purpose, I offer JaNeLA.
    Having said that, a missing main='true' will not be detected by JaNeLA, since it is not a compulsory attribute. ..But check them anyway.

  • Java Caching Framework

    Hi All,
    I m in process of evaluating some open source java caching framework which can help our web application to reduce response time.
    Though i have some open source caching framework in my list like
    JCS
    OSCache
    JOCache
    But i have never used any one of the caching framework.If any one in the group have used them in past or is working on some open source based framework,please do share there experience so that it can help us in deciding the best available solution.
    Thanks in advance
    -Umesh

    You may want to check out Hazelcast . It is an open source distributed, transactional distributed cache for Java. Hibernate second level cache plug-in is also available .
    Hazelcast is released under Apache license. It also have distributed lock, topic, multimap, queue and executor service implementations. [This 10 minute video|http://www.hazelcast.com/screencast.jsp] is very good to get started.
    -talip
    Edited by: talip_ozturk on May 2, 2010 1:59 PM
    Edited by: talip_ozturk on May 2, 2010 2:16 PM

  • Webutil_file_transfer url_to_client places objects in the Java Cache

    Hi,
    I'm using webutil_file_transfer url_to_client to download a PDF file.
    Once I downloaded the PDF file, it is visible in the Client Java Cache Viewer. When I try to run the download again webutil takes the PDF from the Cache instead taking the newer PDF from the Server where the URL is pointing to.
    So the URL I passing is each time the same, but the PDF file on the Server is getting updated very often.
    I don't usethe WEBCACHE port!
    My question now is. Can I avoid webutil to put does PDF file in the Java Cache on the Client. Or is there any utility to remove selected objects from the Java Cache.
    Does anybody have a Idea how to avoid such a behaviour?
    Fatih

    Hi Craig,
    with the help of Oracle Support, we found the reason and also a workaround for this issue.
    The real cause:
    By default the java applet parameter DefaultUseCaches is true an all files downloaded within an applet is going throug the Java Client Cache.
    WEBUTIL does not touch this parameter, so it keeps staying default (true).
    Solution/workaround:
    With the methode setDefaultUseCaches it possible to disable/enable the default Cache setting.
    So it's possible to disable the cache with a small Java Bean running in Forms, which disable the Cache before WEBUTIL_FILE_TRANSFER and enable it after the successfull download.
    here is an extract of the bean code:
    URL u = new URL( "http:" );
    URLConnection uc = u.openConnection();
    uc.setDefaultUseCaches(false);
    thank you for your time!
    regards,
    Fatih

  • Value mapping replication - java cache

    i used value mapping replication and successfully loaded values to the java cache (i can see the in the cache monitoring but not in  the configuration).
    when i try to use a scenario with value mapping using the agencies and schemes which i loaded, the mapping doesn't work and i receive the same value that was entered.
    what could be the problem?
    P.S
    i used the same groupid for each pair of source and target value when i loaded them. is that the right way?

    Tomer,
    what is the context that u used. Did you give the correct context in mapping as in Runtime Cache.
    Regards,
    Sudharshan N A

  • Issue with Java cache

    Hi friends,
    I'm in PI 7.3 environment, my problem is - when I try to access ESB and IB, it says that it is Unable to download.
    So, for that am clearing Java cache and trying to download to get into ESB and IB every time. Obviously am wasting hours of time to login ESB and IB. Just in case if the connection gets off, then If I want to get into ESB again I have to clear the Java cache completly(Java cache is not recognizing)
    I came across all the links in sdn but not solves my issue. Kindly share exact to do things - to fix the issue.
    Many thanks.
    Swarnaalu.

    Hi Swarna,
             There might be some problem with javawebstart you can try uninstalling java and try to reinstall so that it will work.
    OR
    I am not sure in PI &.3 but in earlier versions you can do the re-initialization which works.
    follow the below:
    1. Login to your XI/PI server
    2. Go to Exchange Infrastructure Tools main web screen. You will see
    Tools list and other options.
    http://SERVER:PORT/rep/start/index.jsp
    3. On the Upper right part of your screen you will see Tools
    Administration Client Installation and Guidelines Documentation.
    Click Administration
    4. Login with user.
    5. On the Exhange Infrastructure Administration , make sure you are in
    the Correct tab. (Repository Directory Runtime). The tab will
    determine the administration configuration that your will perform
    5.1 When this problem occur with Integration Repository > make sure you
    are in Integration REPOSITORY TAB. Proceed with step 6. Skip step 5.2.
    5.2 When this problem occur with Integration Directory > make sure you
    are in Integration DIRECTORY TAB. Proceed with step 6.
    6. Click on Java web start administration.
    7. Click on Re-initialization and force-signing. This will
    re-authenticate all new JAR files deployed. This will also let the new
    JAR files adapt to the current certificate deployed.
    This function will cause the above re-collection and additionally a
    re-signing of ALL resources with a dummy certificate. The original SAP
    signatures of the jarfiles will be lost. To get back the original SAP signatures
    the application has to be deployed again.
    8. A Java(TM) Web start Application reset text will appear.
    9. Wait for 5 to 15 minutes for re-initialization to complete
    10. Start your "Integration Repository' or "Integration Directory"
    again. It should work now.
    This will solve the issue
    Regards,
    Naveen

  • Clear java cache

    Hi
    Hope someone can assist
    I'm struggling to download items on some websites on Safari and the forum on the website suggested I clear my Java cache. I can't find any references to Java under system Preferences or Utilities. There is also no option to clear the cache in Safari.
    I've cleared the history and the cookies but that hasn't helped either.
    Can anyone point me in the right direction?
    Much appreciated
    K

    Thanks,
    For some reason I don't see Java under System Preferences?

  • Store XML data in java cache (hashmap as a key value pair)

    Hi,
    I have to store a xml file in java cache so that I can resue it .The flow is like this :
    DAO layer reads database ,create an xml and sends to --> IBM MQ-->our java code should read this xml file over MQ and store it in a cache (preferably hashmap).The file contain unique id for every customer.
    How can we achieve this.One way is to store the xml as an string as key is "id" and value is whole xml.Is this a good way or any other way is available.Please suggest.
    Sample xml:
    <Client>
    <ClientId>1234</ClientId>
    <ClientName>STechnology</ClientName>
    <ID>10</ID>
    <ClientStatus>ACTIVE</ClientStatus>
    - <LEAccount>
    <ClientLE>678989</ClientLE>
    <LEId>56743</LEId>
    - <Account>
    <AccountNumber>9876543678</AccountNumber>
    </Account>
    </LEAccount>
    - <Service>
    <Cindicator>Y2Y</Cindicator>
    <PrefCode>980</PrefCode>
    <BSCode>876</BSCode>
    <MandatoryContent>MSP</MandatoryContent>
    </Service>
    </Client>
    Thanks
    Sumit

    A HashMap can work, but then still store the customer related data in a bean (and perhaps it will have some child objects as well, if for example the service subelement can repeat). So you get a HashMap of Customer objects, with the clientID as the index into the hashmap.

  • Java Caching techniques..

    How can any one please provide me the pointers for Java caching techniques for performance enhancement of a a code.
    Thanks
    Naxy

    [Commons Pool|http://commons.apache.org/pool/]?
    What are you caching and why?

  • Java Cache Viewer shows duplicate URL with different versions

    In doing some testing lately we have come across a couple of situations where the same URL is showing in the JAVA cache viewer with different versions to them.  In the case of a 1.7 JRE this is not causing any adverse effects however when utilizing a 1.6 JRE we are getting messages about mixed mode for the JAR files.
    The jar file is signed as below:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.2
    Application-Library-Allowable-Codebase: *
    Application-Name: named_applet
    Built-By: relbuild
    Permissions: all-permissions
    Created-By: 1.6.0_17-b04 (Sun Microsystems Inc.)
    Caller-Allowable-Codebase: *
    Codebase: *
    understanding the need to change the wildcard's to domains as we move forward.  I am wondering why the jar file is being listed and called twice and why it is being recognized as signed one time and not the next.
    The URL is identical in the cache viewer and the java console says it is not found in the cache when it is used the second time, even though previously in the session is finds it with the correct version.
    Any advice would be helpful

    that i even know, but the problem is that i do not have that version of java re installed, but i found distribution 07 of the same java version, i'll try it out with that.
    but when it still doesn't work, then i still would like to find the link where i can download java version 1.4.2_06.

  • Using Decision Service for existing  rules based on Java Fact

    Hello
    According The BPEL Process Manager developers guid (10.1.3.1) page 18-28 if we want to call existing ruleset from BPEL that it's based on java facts . We should write RL function and convert xml data into java and assert the facts and after retrieving the result we should set the data from java types into xml types. From BPEL we should call this function
    But I have question : We know that rules based on java facts has better performance than xml facts , Instead of Using Decicion Service , we have writen java function and run ruleset and then we have exposed this as a webservice and invoke it from BPEL.
    What is the performance difference if we use this way instead of Decision Services?

    Thank you ralf
    So I want to write an RL Function and call my ruleset (based on my Java facts) from this RL Function and then Call this RL Function from BPEL decicion services.
    I have problem : I want to generate XSD that match with my JavaFact A . How can I easily create XSD from my java fact class.? I saw http://technology.amis.nl/blog/?p=3221 that shows how we can create xsd from Java classes . I could generate XSD from Java class A by the recommended method.
    I have Class A that contains member B as an array of objects (C) , My problem is that When I import generated xsd into rule Author it's generated JAXB class does not generate member B as an array of class(C)
    Is there any way that I can modify class A into JAXB compatible class and generate xsd file from it's JAXB class .
    I don't know JAXB specification and I do not know how JAXB works.I want easily generate JAXB class form my java class A and then retrieve corresponding xsd from it .
    Can I do such thing?

  • Java Cache Issue on SAP MII 12.1 SP09 (Build 116)

    Hi All,
    Has anybody experienced this issue before?
    Problem Description
    This installation is a central MII instance, which is HP hosted in Swindon, UK. On Login we are experiencing a delay in loading the Java Applets, i.e. iGrids, iCharts, iCommands etc. After the first screen load the performance improves. When we close the session and re-enter, the performance on the first screen is delayed.
    Problem Investigation
    We have compared this project to other MII instances and investigated the cache loading of each of the MII installations. What we have noticed is that the Java is not being cached on the client side for the MII server V12.1 SP09 (Build 116). We had three MII servers, with this version, and we are experiencing the same issue. We have other instances of version 12.1.7, 12.1.8, and 12.2.0 and the cache functionality is working fine.
    To view the cache we are opening the Java Cache viewer on the Java Control Panel, and we are looking for the file u201Cillum8.zipu201D which is the MII Java library. This investigation was done using the same Client Java Runtime version and IE Version.
    Software Versions used: JavaRuntime version: 1.0.6_22 & Internet Explorer 8.0
    Any advice/help much appreciated.
    Regards,
    Henry

    Hi Henry,
    Not sure this has any bearing, but what NW version and SP is MII sitting on top of?
    Thanks,
    Mike

  • Language based on Java?

    I am completely new to this, and the is the most relevant forum I could find...
    Anyway, I am interested in writing a new language based on Java. Basically, it will just be a different programming paradigm than OOP, but be Java.
    Therefore, I would like to be able to use all of Java code AND use my own custom code syntax (for paradigm specific features).
    If some people could maybe just point me in the right direction?
    Thanks,
    Bigologn

    bigOlogN wrote:
    I am completely new to this, [...]Well, if you are serious about this, it's probably advisable to study some programming language theory: http://en.wikipedia.org/wiki/Programming_language_theory
    Personally, I found the book Programming Language Pragmatics (2nd ed., see: http://www.cs.rochester.edu/~scott/pragmatics/ ) very informative, and fun to read.
    omcgovern wrote:
    Eg. https://javacc.dev.java.net/ has a Java syntax parser. In fact, you can probably google the
    syntax rules for the java language itself, and write a syntax parser of Java, in Java, then work
    from there onwards.The ANTLR project might be intersting, too (see e.g.: http://blogs.sun.com/sundararajan/entry/antlrworks_and_fun_with_asts ) -- it has Java 1.5 grammar available to experiment with... Another parser generator is CUP ( http://www2.cs.tum.edu/projects/cup/ ).
    Visiting Languages for the Java VM ( http://www.robert-tolksdorf.de/vmlanguages.html ) might also be worth your while. Maybe one of the precompilers there is able to help you in achieving your goals (e.g. The Java Syntactic Extender). Even if this is not the case, it can be quite entertaining (and possibly inspiring) to see what can be done (and what people have done) on top of the Java VM...
    And last but not least, Sun's javac itself was GPL'ed: http://openjdk.java.net/groups/compiler/

  • How do i clear java caches for Mac OS X, version 10.6.8?

    how do i clear java caches for Mac OS X, version 10.6.8?

    Sarah2565 wrote:
    should i keep the "keep temp files" box checked after removing Java caches?
    Yes. Always keep the default settings unless you have a specific reason not to.
    If you are a heavy user of Java programs or applets, you may need to clear the cache files after Java updates because the old caches may interfere.

  • How can I change the java cache path - jre v. 1.6.0_03 ?

    Hello,
    Computer with OS Windows Vista Pro & JRE v. 1.6.0_03.
    Standard path for the "java cache" is: c:\users\PCV\AppData\LocalLow\Sun\Deployement\cache
    Is it possible change it?
    Many thanks for your feedback

    The General tab, Temporary Internet Files, of the Java Control Panel allows this to be set.
    I suspect that Vista's Security/ALC will be upset if you mode it to a different security zone, however.

Maybe you are looking for

  • BP 6M BATTERY HEATING DURING CHARGING

    N73 BATTERY BP 6M BATTERY HEATING DURING CHARGING AND DISCHARCHING WITH IN HOURS FROM CHARGING ITS SIZE IS ALSO INCREASED

  • Crystal Report for Java

    Hi everyone, I have a JSP, <FORM name="ReportForm" method="POST" action="http://webcrdev:8085/ReportViewer/viewer.jsp"> <input name="reportName" type="HIDDEN" value="ClaimD"/> <INPUT name="<fieldname1>" type="HIDDEN" value="<value1>"/> <INPUT name="<

  • Duty calculation for import PO for a specific material group

    Hi All, As per company requirement, we need to do changes in duty calculation for import PO for a specific material group. Current scenario :  Currently  duty calculating on MRP with abatement  35% ( We have ABTT condition @ 35% of MRP). For example:

  • Color correction slows down editing

    In CS 5.5 I  adjusted the curves for color correction for the first time and then renedered the 12min video for 1hour 20min. I now see a couple of minor clip edits I want to make.  However, Premiere is acting very slow and choppy.  Is the color corre

  • Get short text of component in packing instruction

    Hi, i need to get the short text of Components tab in transaction POP3 (packing instruction). How can i do it? Best regards.