How to prevent applet from InterruptedException when the page is refreshed

Hi Guys,
Is there a way we can prevent an applet from being interrupted when the user navigates away or refreshes the page ?
I am getting the below error whenever the user invokes the applet and navigates away or refreshes the frame.
My requirement is the make the applet complete it action before it is destroyed or stopped.
I am not sure if this problem is due to new java life cycle. I tried setting the legacy_lifetime=true and I got the same error or java.io.IOException when legacy_lifecycle=true
java.lang.NullPointerException
     at java.awt.EventQueue.isDispatchThread(EventQueue.java:1005)
     at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.runOnEDT(Unknown Source)
     at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.start(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:780)
Ignored exception: java.lang.NullPointerException
java.lang.InterruptedException
     at java.lang.Object.wait(Native Method)
     at java.lang.Object.wait(Object.java:196)
     at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
     at sun.plugin2.message.Pipe$2.run(Unknown Source)
     at com.sun.deploy.util.Waiter$1.wait(Unknown Source)
     at com.sun.deploy.util.Waiter.runAndWait(Unknown Source)
     at sun.plugin2.message.Pipe.receive(Unknown Source)
     at sun.plugin2.main.client.MessagePassingExecutionContext.doCookieOp(Unknown Source)
     at sun.plugin2.main.client.MessagePassingExecutionContext.getCookie(Unknown Source)
     at sun.plugin2.main.client.PluginCookieSelector.getCookieFromBrowser(Unknown Source)
     at com.sun.deploy.net.cookie.DeployCookieSelector.getCookieInfo(Unknown Source)
     at com.sun.deploy.net.cookie.DeployCookieSelector.get(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.setCookieHeader(HttpURLConnection.java:1192)
     at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:624)
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1332)
     at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
     at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
     at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
     at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)
     at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)
     at com.sun.deploy.cache.DeployCacheHandler.get(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:888)
     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:861)
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
     at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
     at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
     at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(AccessController.java:280)
     at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
     at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:217)
     at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:83)
     at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:95)
     at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:135)
     at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:102)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(AccessController.java:280)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
     at java.security.AccessController.doPrivileged(AccessController.java:280)
     at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
     at java.security.AccessController.doPrivileged(AccessController.java:314)
     at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:689)
     at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:780)
Thanks
Sunny
Edited by: user10728422 on Feb 26, 2013 1:42 AM

An applet cannot access the client's filesystem. So there's no worry. All the .class files come from the server, unless you're using a ClassLoader to explicitly load from a certain location in clients hd with all the necessary security permissions.

Similar Messages

  • How to prevent apps from syncing in the new version of itunes?

    Hey there.
    I brang my macbook to Applestore cause it had a problem and they downloaded the latest version of itunes. Everything's fine and my music, videos and apps are in the new itunes like before. But now, when I want to sync my iphone, a pop window asks me to give the password of the itunes account I used to download some of my apps or it will delete them and their data. The problem is that one of these accounts is an old friend's one and I actually lost all contact with him. So basically now I can't sync my iphone at all or it will delete all my apps.
    Has anyone any idea how to sort that out? Or at least knows how to prevent apps from syncing in this new version of itunes?
    Thanks for your help

    Onthe top menu
    View > Show Status Bar.
    The grey bar will now appear at the bottom with the info you want

  • How do I stop a query from running when the page is loaded

    Hi All,
    I'm using JDeveloper 10.1.3.4. I have a JSPX page that is used to collect search parameters and then when a button is clicked uses those values to run a query and then populate a table on the same page. The problem is that when the page is loaded the system attempts to run the query. The query is a method in a session bean. I can keep the method from running the query code by wrapping it in an 'if' statement and checking the parameters for null (or other value). Once the parameters are collected the query is invoked but it looks like the method is running twice, once with the parameters (here I've checked that the result actually has rows in the list) and then again where the parameters are null and the method returns null.
    What is the best way to do what I want here? From the buttons action method I am called the session beam method and returning null to stay on the same page. I think that is why the method is running the second time and returning null.
    TIA,
    Dave

    Have a look at these screen casts from Steve Muench and see if one of these techniques works for you, or gives you the clue you need.
    Creating Three Simple Search Pages with ADF Business Components and ADF Faces (JSF)
    Part 1: Web-Style Search Form
    Part 2: Oracle Forms-Style EnterQuery/ExecuteQuery Mode Page
    Part 3: Search Form Using View Object with Named Bind Parameters
    I had trouble viewing these with Firefox, but they worked in Internet Explorer.

  • How can I make firefox highlight new unread items on Drudge when the page auto-refreshes

    So I read Drudge Report and checkit a few times a day. It would be nice to have the unread news items highlighted. The new items that appear after the page auto refreshes. It just occurred to me whilst writing this that I would have to open every link on the page to make the task of highlighting new content easier. I don't know but if there's a way to have the new unread items highlighted it would save time scanning the whole page for new stuff.
    Thanks,
    Mark

    Have you tried to subscribe to the page?
    '''https://support.mozilla.org/en-US/kb/how-subscribe-news-feeds-and-blogs?esab=a&s=subscribe&r=0&as=s'''

  • How to prevent computer from sleeping when downloading Lion from the recovery partition?

    Hello,
    I just got a new MacBook Pro that came with Lion. I'm reinstalling from the recovery partition and I'm on the downloading additional components stage. It has 3 hours to go and the computer keeps going to sleep. How can I prevent this? I don't want to have to babysit the computer for 3 more hours.
    Thanks.

    Looking for an answer to this question now.  Did you find one?  I'm about an hour into a 6+ hour reinstall of Mountain Lion from the Recovery partition on my MacBook Pro.  So I can't change the sleep corners or caffenate it or do much of anything but wait.   I want to go to bed and let it install overnight, but I assume it will go to sleep, and that will kill the download.  It there any way to prevent it from sleeping now? 
    Even trying to think of something I can put on the trackpad to trick it into thinking I'm touching it.
    Maybe ill put it under my dog, and her movements will keep it awake?  Thinking outside the box here.
    Any ideas would be appreciated.

  • How to prevent embedded images falling off the page

    I have embedded images in a multi-column document. It's great to have the images flow with the text, but sometimes they flow over the edge of the page. Is there a way to set the keep options so that embedded images stay on the page?

    Again, I'm going to ask what behavior you expect for this? Where would you have that image move? If what you want is for the entire paragraph to go to the next page, you are using the correct mothod by adding a keep option that will keep sufficient lines together  to match the image height. Adding the keep within the top and bottom boundaries of the column (rather than the page) for inline anchored images might be useful if it behaved like a keep option forcing the containing paragraph to the next page, but not so good if it pushed the position of the image up or down relative to its anchor point.
    What you are learning is that anchored objects are extremely useful, but that they are problematic when they fall at the bottom of a column. You almost always need to som manual editing to accomodate the odd case.

  • How to prevent iTunes from launching when iPad is connected?

    I don't want iTunes 11.0.1 to launch every time I connect my iPad (3rd generation, running iOS 6.0.1) to my Mini. I want to decide if I want iTunes, and then, if I do, launch it manually. How may this be accomplished?
    Notes:
    1.  iTunes .. Preferences .. Devices ==> "Prevent ... from syncing automatically" is UNchecked.
    2.  (in iTunes while connected) iPad .. Summary .. Options ==> "Open iTunes when this iPad is connected" is UNchecked.
    3.  When iTunes auto-launches, it does NOT sync. It "mounts" the iPad and then sits idle.
    TIA for any ideas,
    Mark

    Found the answer via Bing:
    http://www.brighthub.com/computing/hardware/articles/72004.aspx
    With the iPad connected and (at least in my case) iTunes NOT running, start the program "Image Capture" (mine is version 6.1). In the lower left will be a label "Connecting this iPad opens:" and below that label is a drop-down box which, in my case, was set to iTunes (don't ask me how), and I have since changed to "No application".
    Gee, that was obvious.
    </sarcasm>
    Mark

  • How to prevent Aperture from launching when iPhone is docked.

    How can I stop Aperture from launching and trying to import the photos from my iPhone every time I put the iPhone in its dock? It is annoying !

    image capture (the program) is recognizing your iPhone as a camera ... you have it set to open Aperture when a camera is connected, yes ???
    well ... the only way to turn it off (to the best of my knowledge) would be to open image capture and set it to do nothing ... that is when any camera/card/iPhone is connected image capture does nothing ... you will manually have to open aperture and import from your cards/cameras ...

  • How to prevent dust fr, How to prevent dust from getting inside the ports and earpiece?

    So I just got my iPhone 5 a coupe days ago and I just can't seem to keep dust from getting inside my phones port and speaker holes and also the earpiece. I have a case on the phone but obviously it doesn't protect those areas. I also bought a can of canned air but that only works when I used it at that moment but as soon as I'm out the house dust starts getting in those areas. I also had this problem with my precious iPhone 4. Can someone help??

    The only thing you can really do is get a case that protects the ports. Lifeproof, Otterbox (to a lesser degree) and Ballistic come to mind.
    I carried a 4 and a 4S for quite some time with no case at all with few problems as a result of dust. Every once in a while, I would get a dust bunny in the headphone jack. Had to clean that out with a toothpick. Clean the dock connector with a clean dry toothbrush.
    I have an Otterbox defender on my 5. Haven't had it long enough to swear to how well it will do as far as dust goes, but so far, so good. The re-designed speaker/mic grille should help some.

  • How to prevent attachments from appearing on the desktop?

    When I receive emails in Thunderbird containing attachments, I open them to see what it is (mostly word or pdf documents) - and they automatically appears on the desktop, which is now filled up.

    From the Menu Bar select Tools-Options-Attachments-Incoming
    Bottom of the window.
    No menu bar? Press the alt key.

  • How to preventing files from downloading when I open them

    Hi there,
    Is there a setting somewhere on my computer that will allow me to open files (in emails, on webpages, etc.) without first having to download them? Please help....

    No.
    If you are using an email client such as the Mail.app to access an email account, a message attachment must be downloaded with the message in order to open it and the same when accessing the account via webmail access using a browser.
    Why is this a problem?

  • Problems with safari when the page is refreshing constantly

    Hi Everyone!!!
    I have a problem develoing an application in .Net. that is working in MAC with Safari 2.0.4. The application have a page that is refeshing every 3 sec. and over 40 min later the safari stop working, don´t responds and when you try to open an other safaris window, they close in that moment (all the safaris windows).
    Does anyone have the same problem and know how to fix it?
    Have any sugestion?
    Are "setInterval" or "clearInterval" the problem?
    <Script language="javascript">
    <!--
    if (window.refrescarAhoraPrin)
    clearInterval(refrescarAhoraPrin);
    refrescarAhoraPrin = setInterval("Timer1()",3000);
    function Timer1()
    if (LeerCookie("Refresco")== "1")
    parent.TimerPrincipal.location = "TimerPrincipal.aspx";
    else
    if (window.refrescarAhoraPrin)
    clearInterval(refrescarAhoraPrin);
    refrescarAhoraPrin = setInterval("Timer1()",3000);
    thanks a lot for your help!
    Rene Rmz

    Your ciphertext is corrupt. Print it out just before you return from the encryption method and just inside the decryption method. I bet they are not the same.
    Note - these lines worry me
    try {
                    result = new sun.misc.BASE64Decoder().decodeBuffer(msg);
                } catch (IOException ex) {
                    Logger.getLogger(LogInPanel.class.getName()).log(Level.SEVERE, null, ex);
                }If you get an IOException here then it does not make sense to carry on with the decryption process. Any exception here is fatal and should be chained to an Error so the whole decryption process is aborted.

  • How to prevent iCloudDrive from waking computer from sleep?

    My PC wakes up periodically from sleep. After the checking the event logs, the logs show that iCloudDrive.exe process is causing the computer to wake up from sleep. I do not want to disable all system wake timers, but I do not know how to prevent iCloudDrive from waking up the computer. The expiration date keeps changing forward.
    in Command Prompt (admin):
    C:\windows\system32>powercfg -waketimers
    Timer set by [PROCESS] \Device\HarddiskVolume3\Program Files (x86)\Common Files\
    Apple\Internet Services\iCloudDrive.exe expires at 5:26:25 PM on 4/21/2015.
    In Event Viewer:
    Log Name:      System
    Source:        Microsoft-Windows-Power-Troubleshooter
    Date:          4/12/2015 3:21:56 PM
    Event ID:      1
    Task Category: None
    Level:         Information
    Keywords:     
    User:          LOCAL SERVICE
    Computer:      WIN-CBF43TVLMNC
    Description:
    The system has returned from a low power state.
    Sleep Time: 2015-04-12T18:24:08.280458300Z
    Wake Time: 2015-04-12T19:21:44.326107700Z
    Wake Source: Timer - iCloudDrive.exe
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Power-Troubleshooter" Guid="{CDC05E28-C449-49C6-B9D2-88CF761644DF}" />
        <EventID>1</EventID>
        <Version>2</Version>
        <Level>4</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2015-04-12T19:21:56.645016400Z" />
        <EventRecordID>2838</EventRecordID>
        <Correlation ActivityID="{0D44318C-F225-4D0E-AE0B-76736663674D}" />
        <Execution ProcessID="1888" ThreadID="848" />
        <Channel>System</Channel>
        <Computer>WIN-CBF43TVLMNC</Computer>
        <Security UserID="S-1-5-19" />
      </System>
      <EventData>
        <Data Name="SleepTime">2015-04-12T18:24:08.280458300Z</Data>
        <Data Name="WakeTime">2015-04-12T19:21:44.326107700Z</Data>
        <Data Name="SleepDuration">100</Data>
        <Data Name="WakeDuration">826</Data>
        <Data Name="DriverInitDuration">601</Data>
        <Data Name="BiosInitDuration">909</Data>
        <Data Name="HiberWriteDuration">0</Data>
        <Data Name="HiberReadDuration">0</Data>
        <Data Name="HiberPagesWritten">0</Data>
        <Data Name="Attributes">25612</Data>
        <Data Name="TargetState">4</Data>
        <Data Name="EffectiveState">4</Data>
        <Data Name="WakeSourceType">5</Data>
        <Data Name="WakeSourceTextLength">15</Data>
        <Data Name="WakeSourceText">iCloudDrive.exe</Data>
        <Data Name="WakeTimerOwnerLength">96</Data>
        <Data Name="WakeTimerContextLength">0</Data>
        <Data Name="NoMultiStageResumeReason">0</Data>
        <Data Name="WakeTimerOwner">\Device\HarddiskVolume3\Program Files (x86)\Common Files\Apple\Internet Services\iCloudDrive.exe</Data>
        <Data Name="WakeTimerContext">
        </Data>
      </EventData>
    </Event>

    In the Bluetooth System Preferences click the Advanced button, then uncheck the Allow Bluetooth Devices To Wake This Computer checkbox.

  • How can I prevent apps from syncing in the new iTunes?

    Hey there.
    I brang my macbook to Applestore cause it had a problem and they downloaded the latest version of itunes. Everything's fine and my music, videos and apps are in the new itunes like before. But now, when I want to sync my ipod touch, a pop window asks me to give the password of the itunes account I used to download some of my apps or it will delete them and their data. The problem is that one of these accounts is an old friend's one and I actually lost all contact with him. So basically now I can't sync my iphone at all or it will delete all my apps.
    Has anyone any idea how to sort that out? Or at least knows how to prevent apps from syncing in this new version of itunes?
    Thanks for your help

    Double tap the Home button...slide the last used view of the app(above the icon) up. Tap Home button when finished.

  • How to prevent Oracle from using an index when joining two tables ...

    How to prevent Oracle from using an index when joining two tables to get an inline view which is used in an update statement?
    O.K. I think I have to explain what I mean:
    When joining two tables which have many entries sometimes it es better not to use an index on the column used as join criteria.
    I have two tables: table A and table B.
    Table A has 4.000.000 entries and table B has 700.000 entries.
    I have a join of both tables with a numeric column as join criteria.
    There is an index on this column in table A.
    So I instead of
      where (A.col = B.col)I want to use
      where (A.col+0 = B.col)in order to prevent Oracle from using the index.
    When I use the join in a select statement it works.
    But when I use the join as inline view in an update statement I get the error ORA-01779.
    When I remove the "+0" the update statement works. (The column col is unique in table B).
    Any ideas why this happens?
    Thank you very much in advance for any help.
    Regards Hartmut

    I think you should post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your query resp. update statement. Please use the \[code\] and \[code\] tags to enhance readability of the output provided:
    In SQL*Plus:
    SET LINESIZE 130
    EXPLAIN PLAN FOR <your statement>;
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);Usually if you're using the CBO (cost based optimizer) and have reasonable statistics gathered on the database objects used the optimizer should be able to determine if it is better to use the existing index or not.
    Things look different if you don't have statistics, you have outdated/wrong statistics or deliberately still use the RBO (rule based optimizer). In this case you would have to use other means to prevent the index usage, the most obvious would be the already mentioned NO_INDEX or FULL hint.
    But I strongly recommend to check in first place why the optimizer apparently seems to choose an inappropriate index access path.
    Regards,
    Randolf
    Oracle related stuff:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

Maybe you are looking for