Applets stop() method is not executed

Hi,
I

ups, once again...
i'm writing on an applet for database administration and i want to save all the changes when the user closes the browser. i know already that the stop() method is called in this cases. that's why i made this changes in that method. but i was very astonished that sometimes the changes were saved and sometimes not. so i found out that the stop() method is canceled in the middle of execution. i'm using the newest java plugin and ie 5.5. maybe i also have to mention that everything works fine if i run the applet with the appletviewer from jbuilder. does someone know how to control the stop() method or are there any limitations regarding in execution time or whatever?
thanks in advance!

Similar Messages

  • Abort and Reset methods do not execute on incoming error-

    Hi,
    I am using labview 8.6. Can i use  reset method in my host vi to reset my FPGA VI? Thanks

    The help explains what the Reset button does:
    Reset—Aborts and resets the FPGA VI on the FPGA target to
    the default state of the VI. This method sets the FPGA VI controls and
    indicators to their default states, sets uninitialized shift registers to their
    default values, clears FIFOs, and sets global variables to their default values.
    This method does not reset memory. If an error occurred before this method runs,
    the method runs normally and passes the error in value to
    error out. If an error occurs while this method runs, the
    method runs normally and merges error in and its own error
    status to produce error out.
    What exactly is the issue you are facing? Posting code will be helpful.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • MDG Cross entity validation using enrichment spot is not executed.

    I have configured the enrichment sport for cross entity validations and used BRF to validate the data, but looks like validations are
    not executed. I have the check activated for the step in the configuration and I can see my custom class is being picked in method GET_ENRICHMENTS of class CL_USMD_DQ_ACCESS_ENRICHMENT for that request type and step. I have flag relevant  selected and option “Execute Always” (will change this to “Execute when data changed).
    I am trying to figure out if SAP MDG standard code will execute my custom class code or not. I had put break point in my custom class constructor and this is called when an instance for enrichment is created in method GET_ENRICHMENTS of class CL_USMD_DQ_ACCESS_ENRICHMENT. However my code in below method is not executed (and hence BRF is not called)
      IF_USMD_ENRICHMENT_FEEDER~GET_ADAPTER_DATA
      IF_USMD_ENRICHMENT_FEEDER~IS_RELEVANT
    Now I am trying to figure out a place from where these enrichment class methods will be executed. I feel this will be from EXECUTE_ENRICHMENT
    of class CL_USMD_DQ_ACCESS_ENRICHMENT. But this method is also not executed when I hit on Check button. Am I looking wrong standard class?
    Is there anything I am missing in configuration? Or we need to implement any SAP note? I tried to find one, but no luck.

    Hello, I am not using cress entity BADI for Validation. I am using this BADI for cross entity derivations and they are working fine.
    I had a requirement to do cross entity validations, and I have rules written using the BRF+.
    I had used enrichment sport functionality to have a custom class used to call BRF functions and prepare the context with required entity data.
    Validations are supposed to happen based on the enrichment spot defined and the configuration for that enrichment sport on the process step level. This is not happening. let me know if you need more information on it,

  • Extended method in the task is not executing

    Hello Friends,
    I had extended the business object BUS2105 and added a new synchronous method which will return the PR items as objects in the form of a table. This method does not have an import parameter as I am using OBJECT-KEY-NUMBER and has a multiline export element of type BUS2009. Then I had Implemented, Released & Delegated my Z business object. All these activities were completed perfectly.
    Then in my workflow I had used this method in an activity step.  I had set the binding from Workflow container to the Task container( in the workflow container I am getting the EVTOBJECT into a workflow container element of type BUS2105 by binding from Event container to Workflow container) and then from the Task container to the Method container also. There were no inconsistencies during binding.
    During test run this works perfectly and returns the workflow with the PR items as objects into a multiline container element of type BUS2009. Then I tested using SWUE and triggered against the 'CREATED' event of BUS2105. There also this works perfectly as it should be.
    My problem is, when I create a PR from ME51N, execution of my workflow stops by this activity step which is using my custom method. From SWEL I can see that workflow workitem has been created. In the workflow log, the created PR number is coming up to the WIOBJECT_ID of the task container. But the method will not trigger. If binding was the problem, then this workflow should not work from SWUE or during test run.
    Can anyone help me to solve this issue? What else I should do to solve this?
    Thanks & Regards,
    Abijith

    Hi,
    "My problem is, when I create a PR from ME51N, execution of my workflow stops by this activity step which is using my custom method. From SWEL I can see that workflow workitem has been created. In the workflow log, the created PR number is coming up to the WIOBJECT_ID of the task container. But the method will not trigger. If binding was the problem, then this workflow should not work from SWUE or during test run."
    1. I hope the task would be a background task and that is the reason even after inserting a break point the execution of the method has not interrupted. When ever you want to debug a background task first make it as a fore ground task and make agent assignment as general task and then assign the recipient as yourself, so that the workitem comes to your inbox then you try to execute the worktiem after inserting the break point in the method. This way you can debug the method from the workflow.
    2. The other part would be as you said that the workflow hangs at this activity step , so make sure the PR is not locked, I mean sometimes it may be possible that the object might be locked and if any changes are done in the method. it fails.
    3. The reason I feel it is working from SWUE is that you have inserted values which are already existing in the system and they might not have locked by the system.
    so please check the above three points.
    Regards
    Pavan

  • APPLET'S STOP METHOD - PROBLEM!!

    I'm learning java on my own, and I have a problem. Could you help me.
    The stop()** method in my applet does not show on the appletviewer until I close the appletviewer.
    I open another program like notepad, but when I come back to the appletviewer it doesen't show!
    It only shows right before I close it.
    Why is that?
    Thanks
    stop() {
    showStatus("STOPPED");

    Dear JustAnotherProgramer,
    pillaged from the docs
    stop
    public void stop()
    Called by the browser or applet viewer to inform this applet that it should stop its execution. It is called when the Web page that contains this applet has been replaced by another page, and also just before the applet is to be destroyed.
    It seems that if you run it in a browser and you go to the other page(same browser) it will be called.
    I guess by changing focus between different application(notepad) it will not work.
    Thank
    Joey

  • Execute Method must not return a resultSet

    Hi.
    I am using DataModifyQuery to insert a record in MS SQL. On that Table there is one trigger defined whcih in turn insert data into some other table. in case there is any error the trigger return a error message.
    When i execute the Sql with DataModifyQuery and there is a error return from the trigger then Toplink gives me a error message.
    Execute Method must not return a resultSet
    how can i over come this sistuation.
    Thanks.

    Nadir wrote:
    I was lost. Right, there was no return statement. Below works now
    public String getIPAddress(){
    String hostip = "";
    try {
    hostip = InetAddress.getLocalHost().getHostAddress();
    System.out.println("ip is "+hostip);
    } catch (UnknownHostException e) {
    hostip = e.getMessage();
    return hostip;
    -----It compiles. I wouldn't say it works. If I call a method getIPAddress(), I expect the String I get back to be an IP address. I don't want to have to parse it to determine that it's not an error message. That defeats the whole purpose of the exception mechanism. If that method can't get the IP address, it should throw an exception. In this case, there's no reason to catch the exception; just let it propagate up out of that method.
    Beginners often seem to think that exceptions are something that just arose on their own out of the language, and the designers had to add try/catch in order to be able to stop them from preventing our code executing. That's not the case. They were deliberately added to the language as a better way of indicating an error than checking return values at every step.

  • Not executed method

    Hi. I need some help. That's a snippet of the class.
    public constructor ( ChooserListener callback ) {  // that's a constructor
    super();
    Loader.load();
    this.callback= callback;
    JFrame frame = new JFrame();
    frame.getContentPane();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.add(this);
    frame.setSize(300,330);
    frame.setVisible(true);
    JPanel lectures = new JPanel();
    String items [] ={BLANK,COMP,EIMC,MATH};
    JList list = new JList(items);
    list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    list.addListSelectionListener( listSelectionListener);
    lectures.add(list);
    ListSelectionListener listSelectionListener = new ListSelectionListener() {
    public void valueChanged (ListSelectionEvent e)
    {    // System.out.println(  listSelectionListener);
    System.out.println("Hooray");
    if (e.getValueIsAdjusting()== false)
    // tell(dept[deptList.getSelectedIndex()]);
    tell(COMP);
    } // the end of class
    I can't understand why System.out.println("Hooray"); is not executed. Why execution bypasses that 'valueChanged' method. What's the problem?
    Cheers

    mvezelis wrote:
    What do you mean, “use code tags”? I am new here.When you make your post, you'll see some formatting options above the text input box.
    When you post code, highlight it, and then click the button that says "CODE".
    That way your code will be legible.
    What do you mean, I change the list?I don't know what he was referring to, but I don't see any place where you actually add the listSelectionListener to anything. If that's the case then the code in question would never get executed. Do you understand why?

  • My Mastercard was working effectively, suddenly it stopped !  it says my payment method is not accepted ! why  I have money in my card but still cann't use it

    My Mastercard was working effectively, suddenly it stopped !
    it says my payment method is not accepted ! why
    I have money in my card but still cann't use it

    If it is a debit card, that may be your problem as Apple has
    stopped accepting debit cards in many areas.
    Click the link below to see current policy re accepted forms of payment:
    http://support.apple.com/kb/HT5552

  • Method in WF not executing..

    Hi, Can anyone tell me whether to include Delegated Object (ZDISCON) or Standard Object(DISCONNECT)  in the  activity step type of my Workflow (WS9000009).
    The issue is:
    The reciever is being called while trying to create a event in SWUE. But the Function module inside the ZDISCON is not executing.
    BEGIN_METHOD CREATE CHANGING CONTAINER.
    DATA:
       DISCONNECTIONREASON LIKE EDISCDOC-DISCREASON,
       REFERENCEOBJECT TYPE SWC_OBJECT,
       REFOBJTYPE      LIKE EDISCDOC-REFOBJTYPE,
       REFOBJKEY       LIKE EDISCDOC-REFOBJKEY,
       ETYPE           LIKE REGEN-EXIT_TYPE,
       WEDISCDOC       LIKE EDISCDOC,
       setexitreturn   LIKE regen-kennzx.
       SWC_GET_ELEMENT CONTAINER 'DisconnectionReason' DISCONNECTIONR
       IF SY-SUBRC <> 0.
         EXIT_RETURN '0002' 'DisconnectionReason' SPACE SPACE SPACE.
       ENDIF.
       SWC_GET_ELEMENT CONTAINER 'ReferenceObject' REFERENCEOBJECT.
    CALL FUNCTION 'ISU_S_DISCDOC_CREATE'
         EXPORTING
               X_DISCREASON   = DISCONNECTIONREASON
              X_REFOBJTYPE   = REFOBJTYPE
              X_REFOBJKEY    = REFOBJKEY
              X_UPD_ONLINE   = 'X'
         IMPORTING
             Y_EXIT_TYPE    = ETYPE
              Y_NEW_EDISCDOC = WEDISCDOC.
    CALL FUNCTION 'Z_SEND_MAIL'
       EXPORTING
         DISCNO        =  WEDISCDOC-DISCNO.
    ENDMETHOD.

    Hi,
    If you Delegate the Custom BO to Std. BO, you can use the std. BO then custom BO methods will automatically come.
    The reciever is being called while trying to create a event in SWUE. But the
    Function module inside the ZDISCON is not executing.
    This happen because Delegation is not correct.
    Refer this [Link1|https://wiki.sdn.sap.com/wiki/x/JQD1Aw ] & [Link2|https://wiki.sdn.sap.com/wiki/x/8YBVAw ] for delegation.
    Regards,
    Surjith

  • Workflow not executing method

    Hi,
    I am new in workflow. I am working on quotation workflow. I am using one zbusiness object which is working perfectly. But when i am using this object in my workflow one of method in this object is not working . It is excuting properly but logic within this method is not working.
    Regards,
    Gurprit

    I wouldn't mind trying to help, but I can't - because you're not letting anyone help you! How do you think we can help with your problem when you:
    1) don't say what you are trying to achieve with your method.
    2) don't give us the non-working (section of) the code.
    So please give some more information about your problem. Read the community guidelines for information and tips about phrasing your question.
    PS: When one of the methods in your object is not working I think it is slightly incorrect to say that your object is working perfectly...

  • BAdi method not executing - IF_EX_RSR_OLAP_BADI~DEFINE

    dear all,
    I am trying to implement a virtual characteristics using BAdi and the article i'm using is this. However, when i try to put my breakpoint in the code it is not executing in either RSRT or RSRT2. Any idea why? Even if i put my breakpoint in the CASE statement to determine if it is the infocube i want to filter by, that does not get executed. Any idea why?
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90b2babc-15ad-2d10-c4b2-bd3af67d86b1?quicklink=index&overridelayout=true
    thanks in advance for the reply friends.

    any body with any thoughts out there on this? thank you so much in advance for the reply.

  • 10133 ADF: How to stop search button to execute when there is an error

    Hi,
    I have two dropdownlists in a search criteria on a search page. The search result is at the bottom of the same page. The two values in the dropdownlists need to be validated when the search button is clicked. The validation logic is put in the searchBtn_action method binded to the search button. In the logic, when an invalid combination happens, I am able to post some error message on top of the page. But how can I stop the application to execute the sql statement? I mean if there is any method I can call to exit if there is an error? Thank you very much.
    Regards,
    Annie

    This is most likely an optimization problem. I know such behaviour existed in the past with some functions and NI usually fixed it in some later release, but the recent changes in the LabVIEW compiler to use LLVM and various optimization improvements may have added this "feature" back in. The default value behaviour is certainly correct and consistent but the behaviour without default value feels not right to me for LabVIEW. In C I would say ok this is simply undefined behaviour and that means the produced code is entitled to even format your harddisk, since C explicitedly says all undefined behaviour is subject to choices by the implementor and is allowed to do whatever the implementor sees fit, including changing behavior between any version of the compiler.
    But LabVIEW as a high level language has explicitedly so called default default data, which in this case should be used. Just having read a bit about LLVM I know they are wrestling with C undefined behaviour as well and LLVM being used a backend by several C compilers already has to deal with them. The reason that C explicitedly has many undefined behaviours is to allow various and sometimes significant optimizations, that could not be done, if the C standard would explicitedly require specific behaviour in certain cases (for instance uninitialized variables).
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Too much time in stop method - IE locks up

    I have a problem where IE & Java Console are occasionally locking up when going from one page with an applet to another. I managed to narrow it down to a specific test case:
    The basics are:
    On a button press: Applet 1 calls getAppletContext().showDocument(url, newpage)
    then getAppletContext().showDocument(closeurl, "_self")
    closeurl is a html page that calls top.close in it's ONLOAD.
    url goes to a page with the Applet 2.
    next:
    On a button press: Applet 2 calls getAppletContext().showDocument(url2, newpage)
    then getAppletContext().showDocument(closeurl, "_self")
    closeurl is a html page that calls top.close in it's ONLOAD.
    url2 goes to a page with the Applet 1.
    So basically I have 2 applets that on a button press launch another window with a different applet and close their own window.
    Normally this is fine, and I can happily click away launching one applet right after the other.
    However, if I add a loop in the stop() method, for example:
    int j=0;
    for *int i=0; i<100000; i++)
    j+=i;
    Just to slow down the stop(), then after a few clicks/applet loads, the new applet will come up partially, then lock up. The java console is also locked up, and I have to kill the IE process to recover.
    Now in my code where I started having this problem, what I'm doing is notifying a server process that I'm dying from the stop method. It works fine most of the time, but every once in a while I get the lockup. I wrote the other test case as I was trying to narrow down the cause. I'm currently looking at minimizing the code in the stop() method (not that there was that much in the first place), but does anyone have any suggestions or possible reasons that this might occur?
    Any help would be greatly appreciated.
    Thanks,
    Keith Ambrose

    Update:
    It appears that the lockup can still occur, even if I don't have anything in the stop method.
    I seems more likely if I have the for loop in place, but since it's random it's hard to tell.
    Ideas anyone?

  • Implementation of the BADI CRM_MKT_MODIFY_ORDER is not executing

    Hello all,
    I'm working in the execution of campaigns in the CRM Web Client trying to copy to the generated activities the products added to the corresponding Activity Template.
    My first (and only) approach is to use the method MODIFY_ACTIVITY_OBJ of the BADI CRM_MKT_MODIFY_ORDER in order to make the proper changes.
    I implement and activate this BADI putting some dummy code with a break point. The problem is that it never stops in this break point. Seems to be that is not executing this method at all. I try several times but nothing happened and I running out of ideas.
    Do you know if I need to do something else? Maybe perform some configuration before.
    Any idea will be welcome.
    Thanks in advanced!
    Alvaro
    Edited by: Alvaro Guzman on Oct 23, 2008 4:35 PM

    Hey,
    Make sure that only one impl is active ..
    Can you explain me the scenario with some more details.. little curious. Just wanted to check whether this is the correct BAdI to implement or not..
    Thanks
    Regards,
    Vinay

  • For Loop Will Not Execute

    I have been a software engineer for a number of years now, and thus far I have never come across any coding issues that truly merit a post such as this. Someone has almost always run across the issue before, so there is no need to reinvent the wheel, or solution as it were.
    However, a number of times I have run across instances where the JRE simply... does not execute parts of my code, and throws no exceptions.
    The sample code is a simple logging application, watered down to the bare minimum for the purposes of this forum:
    public class Log {
    public static void main(String[] args)    {Log log = new Log();}
    public Log() {Logger.log("Hello World");}
    import java.util.*;*
    import java.io.*;
    import java.text.SimpleDateFormat;
    public abstract class Logger {
    private static final int SIZE = 2;
    private static final SimpleDateFormat DAY = new SimpleDateFormat("EEEE");
    private static final String
      DIR = "logs/",
      EXT = ".log",
      FILTER = ".*log\\z",
      DNE = "DNE";
    private static int i,oldest;
    private static long previous = 0;
    private static FileFilter filter = new LogFilter();
    private static FileWriter out;
    private static File file,directory;
    private static File[] list;
    public synchronized static void log(String param) {
      try {
       directory = new File(DIR);
       file = new File(DIR + getDay() + EXT);
       list = directory.listFiles(filter);
       if (file.createNewFile()) {
        readOnly();
        reconcile();
       write(param);
      catch (Exception exception) {}
    private static void write(String param) throws Exception {
      out = new FileWriter(file, true);
      out.write(param);
      out.close();
    private static void readOnly() throws Exception {
      for (i=0;i<list.length;i++) {list.setReadOnly();}
    private static void reconcile() {
    try {
    previous = list[SIZE].lastModified();
    oldest = SIZE;
    for (i=SIZE;i<=0;i--) {
    if (list[i].lastModified() <= previous) {
    previous = list[i].lastModified();
    oldest = i;
    list[oldest].delete();
    catch (Exception exception) {System.out.println("Skipping reconciliation...");}
    private static String getDay() throws Exception {
    return DAY.format(Calendar.getInstance().getTime());
    private static class LogFilter implements FileFilter {
    public LogFilter() {}
    public boolean accept(File param) {
    try {
    if ((param.getName()).matches(FILTER)) {return true;}
    else {return false;}
    catch (Exception exception) {return false;}
    *The problem*:
    Ok, easy visual, this is the "log/" directory as I run the Log.java application repeatedly and iterate the date on my computer as I do so.
    Thursday
    *log/*
    +Thursday.log+
    Friday
    *log/*
    +Thursday.log+
    +Friday.log+
    Saturday
    *log/*
    +Thursday.log+
    +Friday.log+
    +Saturday.log+
    Sunday
    *log/*
    +Friday.log+
    +Saturday.log+
    +Sunday.log+
    Monday
    *log/*
    +Friday.log+
    +Saturday.log+
    +Monday.log+
    This is the point at which I go ???
    Turns out, the JRE skips the execution of my for loop in the *reconcile()* method when the date rolls over to Monday, and from then on it simply deletes the previous day's log instead of the oldest log.
    Why?  Who knows.
    Things I have tried:
    - Using another variable integer for the *readOnly()* method
    - Removing the synchronized keyword from the *log(String param)* method
    - Second call to *directory.listFiles(filter)* and setting *SIZE* to *3* after the old files have been set to read-only
    - Removing the call to *readOnly()*
    - Verified that the call to *readOnly()* does not alter the +modified+ date on the log files
    - Changed Logger.java from a +static+ class to a +local+ class
    Things I cannot do:
    This log application stores privy information about end-users at locations across the country in the event that there are support issues that need to be resolved, and the agreement is that we store this information no more than three days.  Just wanted to make sure, that the hopefully informed respondants to this issue, know that the obvious solution (storing seven day records), is unfortunately not available to me.
    Edited by: Threadstorm on Jan 8, 2009 8:24 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    HA! Most excellent. The last place I would ever look.
    Yes, seems like Java sorts the files in such a way that everything works fine without the loop until Monday rolls over.
    Now I can have a better appreciation for that second set of eyes.
    I use for loops so frequently that I never look at them (though I did stare at this one myself prior to this post, much to my chagrin now) but the subtracting iteration (which I use once in a blue moon) was necessary for the nature of the code.
    But ok, up and running! (whew) was going to be a long day until now.
    To answer your question though, the Logger is static so I don't have to pass it around to dozens and dozens of other modules but rather just include the package on the fly as I develop new modules that need to log information, and I like to write most mundane things myself if I can, that way I have the freedom to modify them at will.
    Thanks again! I'm now a happy camper once more.
    I'm also thankful that I don't have to chalk up another notch on the wall of cases where the JRE behaves magically and truly ignores code which I have definitely run into before. Something about listCellRenderers and the order of calls made to them, or some such and JRE doesn't read one of the lines. It's been a year or two.
    Edited by: Threadstorm on Jan 8, 2009 8:47 AM

Maybe you are looking for

  • SAP Inbound Proxy Error

    Hi Experts, I am facing an issue when executing inbound proxy message. After the message completed, the message status end up with Error. The error says below details. "Information about the method parameters is missing for the interface INTERFACE_NA

  • After I updated to 5.0.1 this morning...

    icloud isnt functioning and i cant log into find my iphone or my friends. and I get the message my device is not suported. It was working fine before.

  • After suspension of hard drive activity, my mac is unable to restart (I must shut down and restart)

    when occurs a suspension of hard drive activity, manually or after a period of inactivity, this suspension seems to be incomplete (a ventilator continue to run) therfore my mac (powermac G5, OS 10.4.11) is unable to restart, no possible action from t

  • Custom Time stamp control

    Hi,  I'd like to know if it is possible to customize a timestamp wich have this format 00(H):00(M):00(S) to a format  that could use and print  hundred of hours 000(H):00(M):00(S). What should I do to get that ? Thanks. Olivier

  • Boot Camp Assistant does not work

    I just installed leopard (clean install). When I start the boot camp assistant, I just get the error message that I need to upgrade the operating system..... anybody?