About the cache's directory name

We have deployed our application through webstart, but we meet a problem.
Our application will access a directory and seach all files in the directory, but when the client download the application through the webstart, the directory name in the cache is different with the server-side directory name.
For example, the original directory name is: patch, but the directory name in the cache is: DMpatch, so the application can not find the directory now.
How can i get the exact directory name in the cache ignoring the auto added prefix "DM".
Thank you very much!
Piggy

Hope this helps:
someClassName is one of your own classes..
URL url = this.getClass().getResource( someClassName);
if (url.getProtocol().equals("jar")){
// Strip off JarURL-specific syntax.
JarURLConnection jarConnection =
(JarURLConnection) url.openConnection();
url = jarConnection.getJarFileURL();
Marcel

Similar Messages

  • Question about the cache

    So I never really worried or cleared the cache in the past year on this computer. I occasionally cleared the cookies from time to time, but I never let Firefox clear cache or cookies due to me wanting to have some passwords saved on some sites and automatically log me in. But yesterday, I had a weird problem with the Frozen movie website (site is movies.disney.com/frozen). Whenever I clicked it, it was just a skinny image in the center of the screen with the drop down men to navigate to different sections, as opposed to the nicely designed website you'll get if you go there right now. I was wondering why the site looked like this on my computer, yet on all the other computers and tablets in the household, the site looked as it should.
    So I decided to clear my cookies. That didn't help. Restarted computer. Didn't help. And finally I decided to clear the Firefox cache. That fixed the problem, and the site went back to normal. So my first question is, why did this fix the site? What was in the cache to cause the site to do this?
    Also, after clearing my cache there the Cached Web Content was only using 1kb of disk space. Now, after almost a day, it is up to 230mb of disk space. Does this affect my computer in a massive way, or is the 250mb a small amount? And is it normal for the Web Content Cache to increase each time I open Firefox? And why does the amount of cached content keep rising so drastically? When I cleared it yesterday, I believe the cache was only using 351mb of disk space after only a year.
    Last question is, can I have Firefox clear the cache when I close it without also clearing cookies, or do I have to clear both to make it work?

    Hi,
    First, Frozen's song "Let it Go" has been stuck in my head all week <3.
    Second your questions:
    "So my first question is, why did this fix the site? What was in the cache to cause the site to do this?"
    Depending on the server request the cache will check to see if the content has been modified. And there is sometimes an expiration date set in the cache to save network capacity use. You can check this out in the Network logging if you open up a Web Console.
    "Also, after clearing my cache there the Cached Web Content was only using 1kb of disk space. Now, after almost a day, it is up to 230mb of disk space. Does this affect my computer in a massive way, or is the 250mb a small amount?"
    Generally this is a pretty small amount, as the defualt cache size is 359400 bytes.
    "And is it normal for the Web Content Cache to increase each time I open Firefox?" The cache will load from a file when you open Firefox. This is normally stored in a file inside of the Profile Folder.
    "And why does the amount of cached content keep rising so drastically?"
    It should never go over the set limit in the about:config page for cache disk capacity.
    "Last question is, can I have Firefox clear the cache when I close it without also clearing cookies, or do I have to clear both to make it work?"
    It is possible to set the Firefox setting History to not remember any history. This will clear the history cache.
    I hope this helps.

  • How much info about the cache-cluster does the client have and What would you recommend about putting the cluster behind virtual ip

    Hi,
    I will appreciate if someone can point me to some documentation as to how app-fabric client library accesses the app-fabric cluster.
    What I have found so far is that the list of hosts provided in the client configuration are used as an entry point into the Cache-Cluster. By connecting to one of hosts, the client will download information about all the hosts constituting the cluster.
    Since a named cache is distributed across the entire cluster, and the data can be stored on any node. How does the client decide which node it should connect to, to get the data from. Does the client have enough information to know which host has the data
    or the client will connect to one of the nodes, if the node has data, it will serve it otherwise redirect the client to the node that has the data.
    I also would like to know what do you say about the idea that we would like to put our cache-cluster behind a virtual ip, so that if needed, we can take down nodes or add more nodes. In fact the virtual ip will that of a load balancer, but we don't plan to
    use it for load balancing purposes but the idea is that the client will have the virtual ip address and we can repoint this IP address, if we need to take out a node for maintenance reason. 

    I'm not sure about the reason for putting the cache servers in a VIP, but one of the reasons why the cache servers should be made known to the servers is because of auto load balancing and throughput
    Imagine i have 10 cache servers running on 1G ethernet links, theoretically i have 10G usable bandwidth and the clients will be able to manage and load balance if any of the cache server fails or have performance issues
    Now if all these were parked behind a VIP
    1. The LB now does the load balancing, which may not be optimal
    2. The LB may not have 10G upstream and 10G downstream, even if it has, this is quite a waste of resource\

  • Query about the Cache in browser Netscape

    The Page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out (such as a search or online purchase) will be repeated. To resend the data, click OK, Otherwise, click Cancel.

    Hello All,
    I apolozise for my last post which is incomplete. I am having a problem using Netscape 7.01 browser.
    I have a servlet which has form fields and it takes in information and calls a another servlet on submitting and inserts the data in the database and shows a confirmation page. If I am using Netscape 4.7 , from this confirmation page if I press browser back button I get a message
    " Data Missing
    This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the
    reload button. "
    But if I am using Netscape 7.01, from the confirmation page if I press back button I get the form page and if I click on forward button then I get a message
    "The Page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out (such as a search or online purchase) will be repeated. To resend the data, click OK, Otherwise, click Cancel."
    and if I am pressing OK then the insertion operation is taking place once again in the database.
    Now how to avoid this condition, how to remove the cached information??
    Please help me
    Thanks,
    Sarada.

  • About the "Omit Oracle Connection Name" property

    now every time i connect to the db using components of Oracle.DataAccess i get the 603 error, but using System.Data.OracleClient and setting "Omit Oracle Connection Name = true" in the connection string it works. then i go back to use the Oracle.DataAccess and set "Omit Oracle Connection Name = true" in the connection string, when connecting a exception pops up saying "Omit Oracle Connection Name" is invalid .
    so what the "Omit Oracle Connection Name" is, is there any way i can solve the 603 error using Oracle.DataAccess?
    thx in advanced

    "Omit Oracle Connection Name" is not a connection string attribute of ODP.NET (Oracle Data Provider for .NET) hence it can not be used.
    What is the version of database you are attempting to connect to? What is the version of ODP.NET are you using?
    Also check following post if it can be of any use -
    ORA-603 Problem

  • How do I change the cache storage directory?

    I want to access, and change, my cache storage directoy

    1. Enter "about:config" in the Firefox's location address field.
    2. Accept the warning about Dragons and promise to be careful.
    3. Type "cache.disk.parent" in the Filter field.
    4. Double click the "browser.cache.disk.parent_directory" entry.
    5. In the "Enter string value" dialog enter your new cache directory path. For example: "E:\Temp\Firefox_Temporary_Cache". Click OK.
    6 . Restart Firefox
    7. Check your new cache location by repeating steps 1 through 3.

  • SUP - 2 questions about the CDB (cache database)

    Hi,
    I have 2 questions about the cache database and the cache groups:
    1 - How does the "On demand" cache group policy exactly works? I know that online cache group is without storing any data on the CDB making direct requests to de backend from the device, the DCN is based on updating from the backend, the scheduled is based on a time period, but I don't understand how the "on demand" exactly works, and why it has a time period too.
    2 - Is it possible to query the cache database table to check the data that SUP has stored? How can I do this?
    Thank you!

    I posted a similar question in SUP Apps project not too long ago and  Paul Horan provided this useful reply:
    Create a "Sybase ASA v12.x for Unwired Server" connection profile in the Enterprise Explorer.  I named mine CDB.
    : Host = localhost (or whatever the machine name is)
    : Port = 5200
    : Database name = "default"
    : User Name = "dba"
    : Password = "sql"
    Obviously, change the userid/password to match, if you changed them during install time.
    Connect, and you'll see the "default" database displayed.
    Navigate down through the Tables folder, and the first subfolder is labeled something like [#should_delete_sk ...]  Start there.
    You'll see a bunch of tables with the naming convention "D1" + package name + package version + MBO name.  These are the cache tables for the MBOs.

  • Index.html pages in local sub-directories will not load automatically when sub-directory name entered into address field, followed by a forward-slash

    I am in the process of designing a website-on-a-CD. In order to make things easier for my clients, I decided to organize this site into local sub-directories with an index.html page in each one. However, when I try to enter the local sub-directory name, followed by a forward-slash, the index page does not open automatically. Instead, I get a raw directory listing that includes the index.html file, and anything else that is present within it. I would like to know if there is any way to force this page to load automatically within Firefox from a local storage medium as it would load from a web-server.

    You need to use file:// as the protocol instead of C:/. The latter may never work (C:\ might).
    Where is the main HTML located ?
    Easiest if to store the images in a sub folder of the location because you can't go back via ../ beyond that root location for security reasons.
    See:
    *http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • What is the Data Rate of the Cache in Adobe Premiere CS6

    Hi,
    Trying to build a raid array to edit with and want to know how much speed i need for caching read/write drive for premiere and After Effects. I'm of the impression that the cache doesn't need more than a single 7200rpm drive (~120MB/s) but really i have no clue what the data rate that adobe caches to is or what the data rate to read is
    so it's 2 questions
    how fast does premiere write the cache? (i know this is system dependent but a ballpark figure would be good for say a sandy bridge i5 2500k system with a 2 raid 7200rpm drive)
    and
    what's the data rate to read the cache in a 1080 24p file?
    also, when doing the final export does premiere/after effects read from the Cache or the original files or both?
    thx,
    Jayson
    youtube.com/AWDEfilms

    ok i've figured out the physics of this question.
    The Cache Read data rate is always larger than the Cache Write data rate, because the computer would have to be rendering to Cache faster than realtime for the Write rate to be higher, which would make it unnecessary to render to cache in the 1st place. So I'm really only worried about the Cache read data rate. Does adobe have a paper that tells us what the data rate is for different sequences.
    my 3 common workflows are
    canon h.264 1080 24p
    AVChd 1080 24p from my GH2 with a 44mb
    and
    r3d 5k epic footage 24p - (this is painful to edit )
    anyone know where this info is?
    thx,
    Jayson
    youtube.com/AWDEfilms

  • Make information about the current user available in a managed bean

    I've overridden prepareSession in an Application Module (AM) so that when a user logs into my application, it immediately uses the username as a bind variable to execute the query for a View Object (VO) that gets more information about the user, like full name, e-mail address ... This works fine and I'm able to bind the VO to a page and display the information.
    But now I'm beginning to realize that I'm going to need this information about the user throughout the application. Do I have to include an iterator for the user info VO and associated attributeValues on every single pageDef, or is it possible to write a single managed bean that will expose the attributes of the single row of the VO as properties. The application I'm working on now is a "minor" upgrade of a JDeveloper 10.1.3 application, so I need a 10.1.3 solution, but I have a 11.1.2 application in the works that will probably do the same thing.
    Oh, and sorry if this is an FAQ - I'm probably not using good search terms to find solutions that have already been posted.

    Thank you Nick -
    Your code didn't give me exactly the answer I needed, but it pointed me in the right direction. For one thing, I had a version of ADFUtils that didn't have the getApplicationModuleForDataControl method. However I was able to do a Google search and find working code for the missing method. And since the values I need to expose in the managed bean are from the VO, not the AM, I had to go one step further and get a reference to the VO from the AM, and then a reference to the first (and only) row of the VO.
    For anyone else with this question, here's my version of the code:
    public class UserInfo implements Serializable {
        private String eMail;
        private String stateCode;
        private String fullName;
        public UserInfo() {
            AppModuleImpl appModule =
                (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            ContactInfoViewImpl contactInfoVO =
                (ContactInfoViewImpl)appModule.getContactInfoView1();
            contactInfoVO.reset();
            ContactInfoViewRow contactInfo =
                (ContactInfoViewRow)contactInfoVO.first();
            stateCode = contactInfo.getConStCode();
            System.out.println("At construct UserInfo stateCode=" + stateCode);
            eMail = contactInfo.getConInternetAddr();
            System.out.println("At construct UserInfo eMail=" + eMail);
            fullName =
                    contactInfo.getConFname() + " " + (contactInfo.getConMi() != null ?
                                                       contactInfo.getConMi() +
                                                       " " : "") +
                    contactInfo.getConLname();
            System.out.println("At construct UserInfo fullName=" + fullName);
        public String getStateCode() {
            return stateCode;
        public String getEMail() {
            return eMail;
        public String getFullName() {
            return fullName;
    }

  • How to verify the caching

    My Queries are not caching even i enabled chaching in NQScinfig.ini file. How to verify and resolve the problem. Please suggest the answer.

    Are the physical tables underlying your queries actually flagged as "cacheable" in your RPD?
    Did you restart your BI Server enabling caching in the NQSConfig?
    With the server running: what do the Oracle BI Management MBeans say about the caching parameter?

  • How can i modify the cache block size to 64k in the 3510 array

    which option should be modify if i wanna setup cache block size to 64k in 3510 array ?
    because my stirpe size was set to 64k,so i wanna setup my cache block size to 64k.
    the document had refered to that it can be modify ,but not instruction how
    and i check all the option about the cache in 3510,and didn't find it... :(
    could anybody tell me how to do it?
    Thx!!

    could any body help me ?

  • Getting Application root directory name dynamically

    hi all,
    For some reason I need to get Application root directory name dynamically
    and use it somewhere.
    Im using resin and default app dir is "doc" i've another directory "abc" and set
    that as application root directory.
    So from jsp i need to get the application root directory name.
    thx in adv,
    kiran

    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath
    use the following in you jsp
    <%=application.getRealPath("/")%>this will give you the application root directory.

  • What is the significance of the blue, green and grey highlighted names in the directory used to text or iMessage? This is not about the messaging themselves, but the names to select to text or iMessage.

    What is the significance of the blue, green and grey highlighted names in the directory used to text or iMessage? This is not about the messaging themselves, but the names to select to text or iMessage.

    The entries in blue are people you've recently exchanged iMessages with, the ones in green are people with whom you've recently exchanged SMS messages and the ones in grey are people with whom you have not recently exchanged any messages.

  • "There was an error opening this document. The filename, directory name, or volume label syntax is i

    "There was an error opening this document. The filename, directory name, or volume label syntax is incorrect."
    I tried different versions, no avail.
    I think it has to do with the password somehow, but I do not know. I can copy the files from the web folder to my desktop and they open fine (after entering the password AGAIN), but I can not open them directly form the web folder - it does not ask for the password again, just pops up the error.
    Adobe's support really upset me (insert explicative here) by keeping me on the phone for 20 min, collecting all sorts of information about me (not the problem) with some lady who barely spoke English, just to tell me to go to the website. No surprise they need to charge for tech support, customer service is doing everything but "service". I hate companies that do this. I am thinking of using another PDF reader, I have heard good things about them. Check
    http://en.wikipedia.org/wiki/List_of_PDF_software
    Has anyone ever been able to find a fix? I can not find anything on this site.

    Howdy, Moritz!
    Thanks for the suggestion, but this is not an issue of filename and language conflicts, at least in my environment. I highly doubt that's the root cause of this issue.
    The PDF files in my tests have all had very simple names, such as 123.pdf and test.pdf, as well as more complicated names with spaces in them. Nothing about the files contains anything outside of the English language, including the content and filenames.
    From everything I've been able to determine, this is a WebDAV-related security issue that affects programs like Acrobat Reader. I know for a fact that MS's KB892211 WebDAV patch doesn't create the issue, however MS's update to that 892211 patch DOES create the issue. As I've outlined earlier in this thread, my extensive testing has proven this more than once.
    At this point, I haven't been able to accurately uninstall the update to 892211 after the update has been installed. And, as far as I can tell, the update to 892211 comes down from MS as a Office and/or Windows Update component. So, everyone has it, the uninstaller doesn't work, and there's no documentation detailing what registry entries are being changed when the update to 892211 is installed.
    My ultimate goal is to bring a test machine to the point just before the update to 892211 goes on, fire up the Registry, Process, and File monitors on my test box, and install the 892211 update. This should give me an accurate picture of what I need to restore in order to rid the machine of the update to 892211.
    Until Microsoft officially fixes the issue, I am not totally sure how this will be resolved. I've ceased my work on the issue for now since copying the PDF file from the WebDAV share to the user's desktop gets the user what they wanted in the first place - the ability to open the PDF file!
    Maybe, once some other projects slow down a bit, I might get back to creating a solution, but it's going to be a "hack" no matter which way you slice it. I'd much rather MS spend their time creating the solution. If I have to do it, my fee to MS will be quite HIGH! :*)
    George B.

Maybe you are looking for