How to detect Applet has been stopped or killed...

Hello,
I'm working on a Swing Applet that creates Annotations
I want to detect when the browser or Applet have been killed so that i can save the Annotation objects into XML format.
currently I have put the code to save the Annotations into XML format in the stop() method but this does not seem to be called. does this method get called automatically? or do I have to manually call it?

You may want to try using the destroy method rather than the stop method. Both stop and destroy are automatically called. Stop code is executed everytime the user leaves the page containing the applet, destroy is called when the browser exits. Java guarantees to call this method when the browser shuts down normally.
The problem is probably a security issue tho. Have you given the applet sufficent rights to write the annotations file to the location it has chosen?
And finally, if your not sure if the stop code is being executed why not make it pop up a dialog box or something to show that it's executing the code? It's more likely to be able to complete a dialog box command without error than file writing commands, ne?
Hope this helps.

Similar Messages

  • HT4623 My IPad is locked and shows that Please connect iTunes since iPad has been stopped to be used. How should I unlock it?

    My iPad is locked and shows that Please connect iTunes since iPad has been stopped to be used. How to unlock it?

    Force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

  • How to stop uploading of Yosemite as it has already been done ? There is a bar in Launchpad showing that it has been stopped once.

    How to stop uploading of Yosemite as it has already been done ? There is a bar in Launchpad showing that it has been stopped once. Coming back on Appstore, I cannot delete : written  "pending". Sorry for eventual poor explanation as I write from France. Thank you

    Thank you for your reply.
    I have looked at this, however, if the line is say a dotted line, I can not edit this in the layer panel by going to the stroke style, it just comes up blank.
    So how would I go about editing this dotted stroke path once it is placed in Photoshop?
    For example if I wanted to change the gap between the dots?

  • My iPad screen rotation has been stopped.how to resolve.

    My iPad screen rotation has been stopped.how to resolve.

    In addition to the previous answer, if Settings > General > Use Side Switch To is set to mute notifications, then rotation lock will be set via the taskbar (double-click the home button, slide the taskbar to the right, and it's the icon far left). More info on the side switch/taskbar here http://support.apple.com/kb/HT4085

  • How do  offcard program know whether the applet has been personalizated?

    The offcard program want to know whether the applet has been personalizated. if Y . the offcard program don't send the personalization command to the applet. anyway to inqury the applet state in offcard program. thxs

    I don't know what card framework (OCF, JCOP tools or other) you use.
    For the JCOP tools framework it is very simple. Connect to your applet by creating an instance of the com.ibm.jc.OPApplet. This class has a method called public int getState() wich returns "the applet privileges" in form the flags NOT_AVAILABLE, LOGICALLY_DELETED, INSTALLED, SELECTABLE, PERSONALIZED, BLOCKED and LOCKED.
    Jan

  • UNFORTUNAT​ELY DOLBY HAS BEEN STOPPED

    RECENTLY I BOUGHT LENOVA A6000.WHEN TRY TO OPEN THE DOLBY IT IS SHOWING AN ERROR
    "UNFORTUNATELY DOLBY HAS BEEN STOPPED".
    HOW TO OVERCOME THIS.
    ALSO I PUT 2G/3G SIM IN THE 1ST SLOT OF SIM.THE NETWORK SIGNAL IS PINGPONGING FROM 3G TO 2G
    AND 3G TO 2G.HOW TO PUT PERMANANTLY IN 3G OR IN 2G ONLY.
    Solved!
    Go to Solution.

    SIR
          Thanks for your reply.
    I Tried Settings > Apps > Manage Applications >  Dolby > "clear Cache" & tap onit.
    In my phone two icons are there namely Dolby(320 KB) and Dolby(14.54 MB)
    In Dolby(320 KB)ver 4.4.4. Cache has 0.00 B,
    but in Dolby(14.54 MB)ver 1.0 Cache has 12.00 KB and it is not getting cleared
    after Tab on it.It is showing Cache 12.00 KB.
    Still iam getting "UNFORTUNATELY DOLBY HAS STOPPED" error message only on Dolby.
    Thanks.

  • SAPOSCOL has been stopped in PROD CI

    Dear all,
    saposcol has been stopped in Prod CI server iand Prod APP1 & APP2 are working .
    when i try to start SAPOSCOL i got the below error .
    PRDCIXI:irpadm 4> saposcol -l
    -l
    open logfile '/usr/sap/tmp/dev_coll.tmp' failed... use stderri
    19:22:29 15.03.2010 ERROR:  cannot open log file /usr/sap/tmp/dev_coll.tmp
    19:22:29 15.03.2010 ERROR:  Make sure directory /usr/sap/tmp exists or specify D
    IR_PERF
    19:22:29 15.03.2010 ERROR:  in profile and run saposcol pf=<profile>
    how can i make up SAPOSCOL
    and what reason it has been stopped .
    kindly suggest
    Regards

    > open logfile '/usr/sap/tmp/dev_coll.tmp' failed... use stderri
    > 19:22:29 15.03.2010 ERROR:  cannot open log file /usr/sap/tmp/dev_coll.tmp
    > 19:22:29 15.03.2010 ERROR:  Make sure directory /usr/sap/tmp exists or specify D
    Hi,
    This is common error and just permission issue.
    As it says, go to /usr/sap dirctory and check the existence of tmp directory.
    if tmp is not present, create it with <sidadm:sapsys permission.
    if tmp is present, then give 777 to all of it's content i.e. from root user
    cd /usr/sap/
    chmod -R 777 tmp
    => in case you do not want to touch all of tmp's content then just give 777 to /usr/sap/tmp/dev_coll.tmp
    and start saposcol from sidadm using saposcol -l
    Cheers !!!
    Ashish

  • When i want to access blackberry ID, it appear: WE DETECT JAVASCRIPT HAS BEEN DISABED IN YOUR BROWSER

    hye.
    my blackberry got problem in blackberry ID and app world.
    cant access app world!
    help me!
    when i want to access blackberry ID, it appear: WE DETECT JAVASCRIPT HAS BEEN DISABED IN YOUR BROWSER. PLEASE ENABLE IN YOUR BROWSER TO CONTINUE
    please help me how to solve it. tq
    MOD EDIT: Subject Title edited to reflect new topic.

    Hi,
    Troubleshooting a start up script can be difficult. There are some third party programs that also keep logs of start up programs, however for Firefox this may be different.
    Is Firefox a startup program? [http://www.winxptutor.com/msinfo32.htm]
    Its also possible to check the Web developer tools for any scripts in a page: [https://developer.mozilla.org/en-US/docs/Tools/Debugger]
    In the control panel there is also Administrative tools to view event logs, but this may be something a local technician can walk you through.

  • Music has been stopped

    I'm un acceptable think while travelling by bus or bike music player has been stopped 5 to 7seconds when hearing an headset...please how to fix it ...this issue.
    Solved!
    Go to Solution.

    Hi, Ragav0507. Thanks for posting in the community. Can you further elaborate your concern? Do you mean that there's a 5-7 seconds delay when listening to your music player via headset? To verify, does this only happen on the situations you specify? How about when using other music player app or headset? Is there any error message? BTW, can we have the name of the music player app you're using & the model of the headset? Keep us posted.

  • "A critical error has occurred while running the virtual machine and the machine execution has been stopped"

    I have the following error:
    "A critical error has occurred while running the virtual machine and the machine execution has been stopped"
    When I am installing grid clusterware and when is copying files from one node to other I received that virtualbox error and is stop working.
    Can somebody give me any hint how to solve it ?
    Thank you
    Eugen

    I think that is not a Clusterware issue, The clusterware installation may generating a high load on your machine and Virtual Box is not supporting.
    Check vbox.log file to identify root cause.

  • How can I tell how long a request has been sitting on an execute queue?

    Is it possible to determine (in WL 8.1 and/or 10.3) how long an HTTP request has been sitting on the execute queue before being assigned to a servlet?
    Under heavy load, I'm finding that the caller times out by the time the servlet tries to write the response because the request has been waiting on the execute queue for too long. To prevent doing all the work to process the request, I want to be able to see how long the request has been waiting to determine whether it's worth processing the request.
    Currently I use the getExecuteThreadTotalCount() method in ExecuteQueueRuntimeMBean and assume that if the count is high, the request has probably been waiting for a while, but getting the actual time on the queue would be much better.
    Thanks.

    Further investigation and a bunch of speed tests later, I'm even more puzzled. Between 7 pm and 9pm this evening, download speed has been consistently at 112kb, except for the 1 in 10 occasions where it hits 1.5mb, for 30 or 40 seconds, before dropping back to 112kb.
    Does anyone have any ideas what is going on?
    thanks in advance
    Ben

  • 10.1.3.4 - db Adapter connection factory has been stopped.

    I created a process which had a custom sql operation to read data from a db table. It was working fine, but now I am getting a weird error
    file:/apps/oracle/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_SiebelRMAShipmentIn_bpel_1.0_d9f7e6fe5e3f4daf12e5a856c48d4ff9.tmp/getShipmentRecords.wsdl [ getShipmentRecords_ptt::getShipmentRecords(getShipmentRecordsInput_msg,getShipmentRecordsOutputCollection) ] - WSIF JCA Execute of operation 'getShipmentRecords' failed due to: Pure SQL Exception. Pure SQL Execute of select a.row_id, a.asset_num, a.SERIAL_NUM, o.ORDER_NUM, oi.LN_NUM from s_asset a, s_order_item oi, s_order o where a.REF_NUMBER_2 = o.ORDER_NUM and oi.X_SHIP_ASSET_ID is null and oi.STATUS_CD <> 'Closed' and oi.ORDER_ID = o.row_id and a.X_ORDER_LN_NUM = oi.LN_NUM and a.ship_dt >= sysdate - 10 and a.X_ORDER_LN_NUM >= 1 failed. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: javax.resource.spi.ApplicationServerInternalException: Unable to create a connection. Connection factory has been stopped.Error Code: 0. [Caused by: javax.resource.spi.ApplicationServerInternalException: Unable to create a connection. Connection factory has been stopped.] ; nested exception is: ORABPEL-11633 Pure SQL Exception. Pure SQL Execute of select a.row_id, a.asset_num, a.SERIAL_NUM, o.ORDER_NUM, oi.LN_NUM from s_asset a, s_order_item oi, s_order o where a.REF_NUMBER_2 = o.ORDER_NUM and oi.X_SHIP_ASSET_ID is null and oi.STATUS_CD <> 'Closed' and oi.ORDER_ID = o.row_id and a.X_ORDER_LN_NUM = oi.LN_NUM and a.ship_dt >= sysdate - 10 and a.X_ORDER_LN_NUM >= 1 failed. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: javax.resource.spi.ApplicationServerInternalException: Unable to create a connection. Connection factory has been stopped.Error Code: 0. [Caused by: javax.resource.spi.ApplicationServerInternalException: Unable to create a connection. Connection factory has been stopped.] The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead. </summary>
    <detail>Internal Exception: java.sql.SQLException: javax.resource.spi.ApplicationServerInternalException: Unable to create a connection. Connection factory has been stopped.Error Code: 0</detail>
    I don't get it, whats happening ? why does the adapter care what i am running inside a custom sql step. all it is supposed to do is execute the sql and return the values. Why is it forcing me to rewrite the operation which was working before ?

    well as always...nothing works like restart of the server. Issue resolved.

  • Can a subVI tell when the application it is part of has been stopped and restarted?

    Can a subVI tell when the application it is part of has been stopped and restarted?
    It is easy enough for a subVI to tell when it has been run for the first time after having been loaded into memory. But is there a way for a subVI to tell when the application it is part of has been stopped and restarted? Is there some property or application-invocation-specific refnum that when queried multiple times during the same run of the application would return the same value yet when queried during different runs of the application would return different values?
    I don�t want to depend on anything that happens when a run is exited.
    I don�t want to require code to be included in the main V
    I to accomplish the solution.
    (Otherwise I could, in the main VI create an un-named semaphore tied to a global; the subVI could then check the global to see if the value changed, which it would between runs of the application.)
    Any ideas?

    Have you tried the First Call? function? It's on the Advanced>Synchronization palette.

  • Is there a way to find out how long my child has been playing with my ipad

    Is there a way to find out how long my child has been playing with my ipad???  He has been getting up before me in the morning and in the evening he is super tired and I'm wondering how early he has been getting up????

    No way to see exactly how long the iPad has been used but you may want to consider using parental controls.
    iOS: Understanding Restrictions (parental controls)

  • "Movie recording has been stopped automatically"

    Recently, using my 60D in very cold Wisconsin weather, I've had the message "movie recording has been stopped automatically."  I've used my 60D in all kinds of temps but recently in Wisconsin the overnight temps are getting into the the minus single digits so when I go out to shoot homes in the early am it is cold.  I am using a SanDisk Ultra 16G 30mb/s 10.  It seems that once the camera "warms" up a bit, it shoots fine and I don't get the message.  This happens when I come in from the cold outdoors and begin shooting inside.  I've had no issues with the pictures, just the video portion.  Any ideas? Condensation perhaps?

    60D operating temperatures according to two WEB sources is 32F to 104F.  I suggest a camera overcoat or some way to keep the camera in that temperature bracket when shooting.  I hope the cold temps break for you soon.  
    John  

Maybe you are looking for

  • DB13, Error while backup

    Hello I am trying to schedule Whole offline backup through DB13 in Solution Manager 4. The backup kicks off at the schedule time but ends with error with in seconds. When i go and check the background job in SM37, the Job DBA:ALLOFFLINE______@174008/

  • How can i make shorten systemlog files and joblog files on OS

    Hello How can i make shorten systemlog files and joblog files on OS

  • Beginner, lot of little problems

    Hello everybody (excuse me for my bad english). I just installed solaris, for the first time, and there are several things I don't understand. 1) Firstly, I have seen that the $home folder for a new user is generally /export/home/username (no problem

  • Again: iTunes 10.1.1.4 not working

    So I've read every post on here about the issues people are having with iTunes 10.1.1.4 and Windows 7. Unfortunately, nothing has addressed my issue and none of the solutions I've tried have worked. I'm not computer illiterate by any means and I've t

  • Hi  all......................i have a query in kmat configurabale material

    Please help me its very urgent Ticket:  regarding duplication of requirements being triggered in MRP.   In this regard, I have already communicated to you that we identified following reasons are contributing factor for duplication of requirements in