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?

Similar Messages

  • Isql*plus is taking too much time to stop

    Hi,
    today encountered one problem...isql*plus is taking hours to stop the process...
    iSQL*Plus 10.2.0.3.0
    Copyright (c) 2003, 2006, Oracle. All Rights Reserved.
    Stopping iSQL*Plus ...
    when i issue the isqlplusctl start....it shows that, process is already running...
    how to encounter this problem..i have gone through the all metalink document regarding this..not helpful...
    I am not able to ge the home page of isqlplus
    http:<hostname.domainname:5560/isqlplus
    how to resolve in this case..I wanted to restart the isqlplus process...but it is taking hours wile doing that job

    - To stop iSQL*Plus, enter the command:
    $ORACLE_HOME/bin/isqlplusctl stop
    - To verify whether iSQL*Plus process is running, use the following command:
    $ ps -eaf |grep java
    If you have any running processes, use kill command to terminate those processes.
    - To start iSQL*Plus, enter the command:
    $ORACLE_HOME/bin/isqlplusctl start
    It is worth to review Note: 300547.1 - Troubleshooting Guide for iSQL*Plus issues
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=300547.1

  • Too much Time until logon window after applying Security Configuration Wizard on DC

    Hi,
    The scenario is the following:
    Domain Controller on Windows 2012 R2
    DHCP installed on Domain Controller
    Clients: Win7, Win8
    Servers: Win2008/R2, Win2012 R2
    After applying a SCW template on a DC, the logon window takes too much time to appear (after reboot, lock or sign out).
    The seetings in the template are the following:
    Select Server Roles: All of the default options selected by SCW
    Select Client Features: All of the default options selected by SCW
    Select Administration and Other Options: All of the default options selected by SCW
    Select Additional Services: All of the default options selected by SCW
    Handling Unspecified Services: Do not change the startup mode of the service
    Network Security Roles: All of the default options selected by SCW
    Require SMB Security Features: 2 checkboxes marked
    Require LDAP Signing: the checkbox marked
    Outbound Authentication Methods: Domain Accounts
    Outbound Authentication using Domain Accounts: 2 checkboxes marked
    Inbound Authentication Methods: none of the checkboxes marked
    System Audit Policy: Audit successful activities
    The question is:
    What options(s) include/exclude from SCW template that avoid too much time logon windows takes to appear?
    Thanks in advance!

    Hi,
    Based on my research, SCW helps administrators to ensure that only those services, application capabilities, and ports required for the roles to function are available; anything not specifically needed by the roles the server holds will be disabled. These
    tasks above all consume time to implement, which causes the delay for the Windows logon screen to display.
    Therefore, as the way I see it, it is a normal behavior, and I didn’t find any option which could avoid/reduce time spent on applying settings within the SCW template.
    More information for you:
    The Security Configuration Wizard
    https://technet.microsoft.com/en-us/magazine/2007.04.securitywatch.aspx
    Security Configuration Wizard
    https://technet.microsoft.com/en-us/library/cc754997.aspx
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • How do I stop touchsmart from loading on start up, taking too much time

    pc taking too long to boot, touchsmart loading on every boot up, taking way too much time

    richardfit wrote:
    pc taking too long to boot, touchsmart loading on every boot up, taking way too much time
    disable inside application, use msconfig, uninstall other applications, etc.... (as I try to replicate your grammar and style)

  • Creative Cloud is taking too much time to load and is not downloading the one month trial for Photoshop I just paid money for.

    Creative Cloud is taking too much time to load and is not downloading the one month trial for Photoshop I just paid money for.

    stop the download if it's stalled, and restart your download.

  • Taking too much time using BufferedWriter to write to a file

    Hi,
    I'm using the method extractItems() which is given below to write data to a file. This method is taking too much time to execute when the number of records in the enumeration is 10000 and above. To be precise it takes around 70 minutes. The writing pauses intermittently for 20 seconds after writing a few lines and sometimes for much more. Has somebody faced this problem before and if so what could be the problem. This is a very high priority work and it would be really helpful if someone could give me some info on this.
    Thanks in advance.
    public String extractItems() throws InternalServerException{
    try{
                   String extractFileName = getExtractFileName();
                   FileWriter fileWriter = new FileWriter(extractFileName);
                   BufferedWriter bufferWrt = new BufferedWriter(fileWriter);
                   CXBusinessClassIfc editClass = new ExploreClassImpl(className, mdlMgr );
    System.out.println("Before -1");
                   CXPropertyInfoIfc[] propInfo = editClass.getClassPropertyInfo(configName);
    System.out.println("After -1");
              PrintWriter out = new PrintWriter(bufferWrt);
    System.out.println("Before -2");
              TemplateHeaderInfo.printHeaderInfo(propInfo, out, mdlMgr);
    System.out.println("After -2");
    XDItemSet itemSet = getItemsForObjectIds(catalogEditDO.getSelectedItems());
    Enumeration allitems = itemSet.allItems();
    System.out.println("the batch size : " +itemSet.getBatchSize());
    XDForm frm = itemSet.getXDForm();
    XDFormProperty[] props = frm.getXDFormProperties();
    System.out.println("Before -3");
    bufferWrt.newLine();
    long startTime ,startTime1 ,startTime2 ,startTime3;
    startTime = System.currentTimeMillis();
    System.out.println("time here is--before-while : " +startTime);
    while(allitems.hasMoreElements()){
    String aRow = "";
    XDItem item = (XDItem)allitems.nextElement();
    for(int i =0 ; i < props.length; i++){
         String value = item.getStringValue(props);
         if(value == null || value.equalsIgnoreCase("null"))
              value = "";
                             if(i == 0)
                                  aRow = value;
                             else
                                  aRow += ("\t" + value);
    startTime1 = System.currentTimeMillis();
    System.out.println("time here is--before-writing to buffer --new: " +startTime1);
    bufferWrt.write(aRow.toCharArray());
    bufferWrt.flush();//added by rosmon to check extra time taken for extraction//
    bufferWrt.newLine();
    startTime2 = System.currentTimeMillis();
    System.out.println("time here is--after-writing to buffer : " +startTime2);
    startTime3 = System.currentTimeMillis();
    System.out.println("time here is--after-while : " +startTime3);
                   out.close();//added by rosmon to check extra time taken for extraction//
    bufferWrt.close();
    fileWriter.close();
    System.out.println("After -3");
    return extractFileName;
    catch(Exception e){
                   e.printStackTrace();
    throw new InternalServerException(e.getMessage());

    Hi fiontan,
    Thanks a lot for the response!!!
    Yeah!! I kow it's a lotta code, but i thought it'd be more informative if the whole function was quoted.
    I'm in fact using the PrintWriter to wrap the BufferedWriter but am not using the print() method.
    Does it save any time by using the print() method??
    The place where the delay is occurring is the wile loop shown below:
                while(allitems.hasMoreElements()){
                String aRow = "";
                    XDItem item = (XDItem)allitems.nextElement();
                    for(int i =0 ; i < props.length; i++){
                         String value = item.getStringValue(props);
         if(value == null || value.equalsIgnoreCase("null"))
              value = "";
                             if(i == 0)
                                  aRow = value;
                             else
                                  aRow += ("\t" + value);
    startTime1 = System.currentTimeMillis();
    System.out.println("time here is--before-writing to buffer --out.flush() done: " +startTime1);
    bufferWrt.write(aRow.toCharArray());
    out.flush();//added by rosmon to check extra time taken for extraction//
    bufferWrt.flush();//added by rosmon to check extra time taken for extraction//
    bufferWrt.newLine();
    startTime2 = System.currentTimeMillis();
    System.out.println("time here is--after-writing to buffer : " +startTime2);
    What exactly happens is that after a few loops it just seems to sleep for around 20 seconds and then again starts off and ............it goes on till the records are done.
    Please do lemme know if you have any idea as to why this is happening !!!!! This bug is giving me the scare.
    thanks in advance

  • Why it is taking too much time to kill the process?

    Hi All,
    Today,one of my user ran the calc script and the process is taking too much time, then i kill the process. I am wondering about one thing here even it is taking too long to kill the process, generally it will not take more than 2 sec. I did this through EAS.
    After that I ran Maxl statement
    alter system kill request 552599515;
    there is no use at all.
    Please reply if you have any solutions to kill this process.
    Thanks in advance.
    Ram.

    Hi Ram,
    1. Firstly, How much time does your calculation scripts normally run.
    2. While it was running, you can go to the logs and monitor where exactly the script is taking time .
    3. Sometimes, it does take time to cancel a transaction ( as it might be in between).
    4. Maxl is always good to kill ,as you did . It should be succesful . Check the logs what it says ,and also the "sessions" which might say "terminating" and finish it off.
    5. If nothing works ,and in the worst case scenarion , if its taking time without doing anything. Then log off all the users and stop the databas and start it .
    6. Do log off all the users, so that you dont corrupt any filter related sec file.
    Be very careful , if its production ( and I assume you have latest backups)
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • ROWSET taking too much time to populate

    Hi ,
    I have a problem with ROWSET.
    I have a table with 6 columns and approximately more than 200 records.
    I reterive them in a ResultSet and resultset gets populated.
    But when I populate Rowset with that ResultSet then it hangs for atleast 1 minuate and then it comes back to its original state.
    Can anyone have the idea why it happens....?
    Is there any issue with the Rowset ?
    Why it takes too much time to populate the rowset..?
    CachedRowSetImpl crs = new CachedRowSetImpl();
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet result = stmt.executeQuery(sql); // Here we have 250 records in ResultSet
    crs.populate(result); // This is the problem. This line takes atleast 1min to executeThanks
    Tariq

    I think this Java Forum is not the right FORUM for
    me.....I think you are right. This is NOT the FORUM for YOU.
    I think u (So Called GURUS) all need to work on JDBC
    more and on large application so that u should be
    able to solve complex problem.
    THIS is PROBABLY not the BEST way for YOU to get HELP
    I hope u will work on my suggestion...
    I HOPE you CHOKE on a TURNIP and DIE.
    Thx
    Muhammad TariqF&#117;ck you.
    On your way out please make sure to stop in at Google and search for "Forums for arrogant fuckwits". That's the kind of resource you need.

  • NX 6125 too much time to complete POST. USB error

    I have been having some issues over the last week or two
    NX 6125 takes too much time to boot. I'm dual booting it , Windows XP and Linux Mint.
    It takes more time to complete the POST, during POST, LEDs on all the USB devices attached to it will go ON & OFF.
    then comes the boot menu. from that step onwards it works normally.
    Once it boots into Windows, there is a pop up "USB device malfunctioned" which keeps on coming even if no devices are attached to USB.(it has an internal card reader and fingerprint reader module)
    While using Linux, the kernel throws the error "  [ 2094.490070] hub 1-0:1.0: connect-debounce failed, port 2 disabled "
    Checked the RAM with memtest and hdd with self test from BIOS, says OK.
    The major issue is it can't boot from any other devices other than internal harddisk !
    Previously I could boot Linux frm DVDs and bootable USB drives.
    Windows XP cd when booted gives "NTLDR missing" error.
    Kindly help me.

    card reader is a usb device, not sure about the fingerprint reader.
    one of them has malfunctioned. check the card reader slot for debris.
    You may have to open up the  notebook and disconnect the card reader, see if the error stops.

  • T400 takes too much time to start or shutdown

    I got a lenovo thinkpad T400, everything seems to be fine but lot of issues.
    1. It takes too much time to start or shutdown (I purchased 2GB turbo memory along with the system for $50, but no use).My  system is slower than 2.2 GHz(mine is 2.53GHz)
    2.Fingerprint Reader: When I tried to login using my fingerprint reader it gives an error message "computer is locked only authorized user can login", when we need to type in Password every time, why Finger print reader is used ?
    Connectivity: All laptops around can see all networks but not mine, my system couldn't see any networks. Why ?
    4. System strucks suddenly staying irresponsible for while.!!!!!!!!!!!
    When I tried to talk to CSR, they instructed to format my system using the CD's which they are going to send.When I tried to do so; an error message occurred when I inserted second CD ,that "please insert suitable/matchable(don't remember exactly) CD.
    I have other question; the CD's sent by lenovo are not AUTO PLAYABLE ?

    what if you press your blue thinkvantage button during startup? does it take you to the recovery partition?
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Sun cluster 3.2 - resource hasstorageplus taking too much time to start

    I have a disk resource called "data" that takes too much time to startup when performing a switchover. Any idea what may control this ?
    Jan 28 20:28:01 hnmdb02 Cluster.Framework: [ID 801593 daemon.notice] stdout: becoming primary for data
    Jan 28 20:28:02 hnmdb02 Cluster.RGM.rgmd: [ID 350207 daemon.notice] 24 fe_rpc_command: cmd_type(enum):<3>:cmd=<null>:tag=<hnmdb.data.10>: Calling security_clnt_connect(..., host=<hnmdb02>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<0>, ...)
    Jan 28 20:28:02 hnmdb02 Cluster.RGM.rgmd: [ID 316625 daemon.notice] Timeout monitoring on method tag <hnmdb.data.10> has been resumed.
    Jan 28 20:34:57 hnmdb02 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <hastorageplus_prenet_start> completed successfully for resource <data>, resource group <hnmdb>, node <hnmdb02>, time used: 23% of timeout <1800 seconds>

    heldermo wrote:
    I have a disk resource called "data" that takes too much time to startup when performing a switchover. Any idea what may control this ?I'm not sure how this is supposed to be related to Messaging Server. I suggest you ask your question in the Cluster forum:
    http://forums.sun.com/forum.jspa?forumID=842
    Regards,
    Shane.

  • Finishing Backup takes too much time.

    Finishing backup takes too much time in my system , sometimes 30 minutes even 1 hour! and sometimes right after finishing backup(before the icon in the menu bar stops) it starts to take another backup( and usually 10MB or something small !) or the estimation is wrong .
    Sometimes I see my system that is taking backups hours and hours(just with small stops!)
    and the speed rate I of data transfer is reduced, while I set it to be on maximum speed in Time Capsule.

    And the log with Time-stamps from Console
    4/6/09 2:31:24 PM /System/Library/CoreServices/backupd[2141] Starting standard backup
    4/6/09 2:31:34 PM /System/Library/CoreServices/backupd[2141] Mounted network destination using URL: afp://[email protected]/Sina's%20Time%20Capsule
    4/6/09 2:31:34 PM /System/Library/CoreServices/backupd[2141] Backup destination mounted at path: /Volumes/Sina's Time Capsule
    4/6/09 2:31:39 PM /System/Library/CoreServices/backupd[2141] Disk image /Volumes/Sina's Time Capsule/Sina’s MacBook_0017f2347181.sparsebundle mounted at: /Volumes/Backup of Sina’s MacBook
    4/6/09 2:31:39 PM /System/Library/CoreServices/backupd[2141] Backing up to: /Volumes/Backup of Sina’s MacBook/Backups.backupdb
    4/6/09 2:39:45 PM /System/Library/CoreServices/backupd[2141] No pre-backup thinning needed: 862.6 MB requested (including padding), 205.56 GB available
    4/6/09 2:46:52 PM /System/Library/CoreServices/backupd[2141] Bulk setting Spotlight attributes failed.
    4/6/09 2:48:07 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 2:48:07 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 2:48:07 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 2:50:06 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 2:50:06 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 2:57:21 PM /System/Library/CoreServices/backupd[2141] Bulk setting Spotlight attributes failed.
    4/6/09 3:03:57 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 3:03:58 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 3:03:58 PM /System/Library/CoreServices/backupd[2141] Unable to rebuild path cache for source item. Partial source path:
    4/6/09 3:12:55 PM /System/Library/CoreServices/backupd[2141] Copied 29426 files (162.6 MB) from volume Macintosh Disk.
    4/6/09 3:17:36 PM /System/Library/CoreServices/backupd[2141] No pre-backup thinning needed: 678.9 MB requested (including padding), 205.56 GB available
    4/6/09 3:37:18 PM /System/Library/CoreServices/backupd[2141] Bulk setting Spotlight attributes failed.
    4/6/09 3:37:57 PM /System/Library/CoreServices/backupd[2141] Copied 2362 files (100.3 MB) from volume Macintosh Disk.
    4/6/09 3:42:00 PM /System/Library/CoreServices/backupd[2141] Starting post-backup thinning

  • Large records retrieve from network took too much time.How can I improve it

    HI All
    I have Oracle server 10g, and I have tried to fetch around 200 thousand (2 lack ) records. I have used Servlet that is deploy into Jboss 4.0.
    And this records come from network.
    I have used simple rs.next_ method but it took too much time. I have got the only 30 records with in 1 sec. So if I want all these 2 lacks records system take around more than 40 min. And my requirement is that it has to be retrieve within 40 min.
    Is there any another way around this problem? Is there any way that at one call Result set get 1000 records at one time?
    As I read somewhere that &ldquo; If we use a normal ResultSet data isn't retrieved until you do the next call. The ResultSet isn't a memory table, it's a cursor into the database which loads the next row on request (though the drivers are at liberty to anticipate the request). &ldquo;
    So if we can pass the a request to around 1000 records at one call then maybe we can reduce time.
    Has anyone idea How to improve this problem?
    Regards,
    Shailendra Soni

    That true...
    I have solved my problem invokeing setFetchSize on ResultSet object.
    like ResultSet.setFetchSize(1000).
    But The problem sorted out for the less than 1 lack records. Still I want to do the testing for more than 1 lack records.
    Actually I had read a one nice article on net
    [http://www.precisejava.com/javaperf/j2ee/JDBC.htm#JDBC114]
    They have written a solutions for such type of the problem but they dont give any examples. Without examples i dont find how to resolve this type of the problem.
    They gave two solutions i,e
    Fetch small amount of data iteratively instead of fetching whole data at once
    Applications generally require to retrieve huge data from the database using JDBC in operations like searching data. If the client request for a search, the application might return the whole result set at once. This process takes lot of time and has an impact on performance. The solution for the problem is
    1.     Cache the search data at the server-side and return the data iteratively to the client. For example, the search returns 1000 records, return data to the client in 10 iterations where each iteration has 100 records.
    // But i don't understand How can I do it in java.
    2. Use Stored procedures to return data iteratively. This does not use server-side caching rather server-side application uses Stored procedures to return small amount of data iteratively.
    // But i don't understand How can I do it in java.
    If you know any one of these solutions then can you please give me examples to do it.
    Thanks in Advance,
    Shailendra

  • Domain creation too much time

    Hi Guys,
    I am trying to create a domain in my windows 7 with following components.
    Oracle database 11.2.0.1
    RCU 11.1.1.5
    weblogic 10.3.6
    IDM suite 11.1.1.5
    Trying to create domain using Oracle\Middleware\Oracle_IDM1\bin\config.bat and domain creation taking too much time and in the log file i am getting below message
    "java.lang.UnsatisfiedLinkError: no GetVolumeInfo in java.library.path" and then it continues with domain creation and getting following message
    NMProcess: INFO: Saving node manager configuration properties to 'C:\Oracle\Middleware\wlserver_10.3\common\nodemanager\nodemanager.properties'
    NMProcess: <Sep 18, 2012 10:32:48 AM> <SEVERE> <Fatal error in node manager server>
    NMProcess: java.lang.NullPointerException
    NMProcess:      at java.util.Hashtable.containsKey(Hashtable.java:307)
    NMProcess:      at weblogic.nodemanager.server.NMServerConfig.initNetworkInfoList(NMServerConfig.java:491)
    NMProcess:      at weblogic.nodemanager.server.NMServerConfig.getNetworkInfoList(NMServerConfig.java:481)
    NMProcess:      at weblogic.nodemanager.server.NMServerConfig.getConfigProperties(NMServerConfig.java:545)
    NMProcess:      at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:154)
    NMProcess:      at weblogic.nodemanager.server.NMServer.main(NMServer.java:375)
    NMProcess:      at weblogic.NodeManager.main(NodeManager.java:31)
    NMProcess:
    NMProcess: Sep 18, 2012 10:32:48 AM weblogic.nodemanager.server.NMServer main
    NMProcess: SEVERE: Fatal error in node manager server
    NMProcess: java.lang.NullPointerException
    NMProcess:      at java.util.Hashtable.containsKey(Hashtable.java:307)
    NMProcess:      at weblogic.nodemanager.server.NMServerConfig.initNetworkInfoList(NMServerConfig.java:491)
    NMProcess:      at weblogic.nodemanager.server.NMServerConfig.getNetworkInfoList(NMServerConfig.java:481)
    NMProcess:      at weblogic.nodemanager.server.NMServerConfig.getConfigProperties(NMServerConfig.java:545)
    NMProcess:      at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:154)
    NMProcess:      at weblogic.nodemanager.server.NMServer.main(NMServer.java:375)
    NMProcess:      at weblogic.NodeManager.main(NodeManager.java:31)
    NMProcess: Stopped draining NMProcess
    NMProcess: Stopped draining NMProcess
    Successfully launched the Node Manager.
    The Node Manager process is running independent of the WLST process.
    Exiting WLST will not stop the Node Manager process. Please refer
    to the Node Manager logs for more information.
    The Node Manager logs will be under C:\Oracle\Middleware\wlserver_10.3\common\nodemanager
    Node Manager starting in the background
    But process won't move forward, it just hangs with Progress 0% only. I checked similar errors in the forums and it is due to path settings but i tried to remove the existing path settings but no luck. If you guys have any idea what went wrong...?
    Thanks,
    Ravindher

    I don't have any CLASSPATH variable and I have only Path variable but nothing was specified to any oracle product except DB(D:\Oracle\product\11.2.0\dbhome_1\bin;)
    Even i set java is 1.6 using JAVA_HOME earlier and then removed but no difference. Not sure what went wrong.
    Thanks,
    Ravindher

  • Delta Sync taking too much time on refreshing of tables

    Hi,
    I am working on Smart Service Manager 3.0. I have come across a scenario where the delta sync is taking too much time.
    It is required that if we update the stock quantity then the stock should be updated instantaneously.
    To do this we have to refresh 4 stock tables at every sync so that the updated quantity is reflected in the device.
    This is taking a lot of time (3 to 4 min) which is highly unacceptable from user perspective.
    Please could anyone suggest something so that  only those table get refreshed upon which the action is carried out.
    For eg: CTStock table should get refreshed only If i transfer a stock and get updated accordingly
    Not on any other scenario like the changing  status from accept to driving or any thing other than stocks.
    Thanks,
    Star
    Tags edited by: Michael Appleby

    Hi fiontan,
    Thanks a lot for the response!!!
    Yeah!! I kow it's a lotta code, but i thought it'd be more informative if the whole function was quoted.
    I'm in fact using the PrintWriter to wrap the BufferedWriter but am not using the print() method.
    Does it save any time by using the print() method??
    The place where the delay is occurring is the wile loop shown below:
                while(allitems.hasMoreElements()){
                String aRow = "";
                    XDItem item = (XDItem)allitems.nextElement();
                    for(int i =0 ; i < props.length; i++){
                         String value = item.getStringValue(props);
         if(value == null || value.equalsIgnoreCase("null"))
              value = "";
                             if(i == 0)
                                  aRow = value;
                             else
                                  aRow += ("\t" + value);
    startTime1 = System.currentTimeMillis();
    System.out.println("time here is--before-writing to buffer --out.flush() done: " +startTime1);
    bufferWrt.write(aRow.toCharArray());
    out.flush();//added by rosmon to check extra time taken for extraction//
    bufferWrt.flush();//added by rosmon to check extra time taken for extraction//
    bufferWrt.newLine();
    startTime2 = System.currentTimeMillis();
    System.out.println("time here is--after-writing to buffer : " +startTime2);
    What exactly happens is that after a few loops it just seems to sleep for around 20 seconds and then again starts off and ............it goes on till the records are done.
    Please do lemme know if you have any idea as to why this is happening !!!!! This bug is giving me the scare.
    thanks in advance

Maybe you are looking for

  • Unable to deploy cartridge

    hi i am new to osm and i am stuck at this error please help debug this thank you in advance Wed Oct 03 16:24:30 IST 2012 <03-Oct-2012 4:24:25,015 IST PM> <INFO> <operation.ImportOperation> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Defa

  • Multiple users on 1 Apple ID

    Please bear with me as I am new to all of this! I have moved in with my partner and we both have apple products. I know we can't combine our Apple ID accounts, so will have to lose lots of paid for music and apps, but at the same time we often buy th

  • Data Transfer Process and Delete Overlapping Requests

    Hi All, We are on BW 7.0 (Netweaver 2004s).  We are using the new data transfer processing and transformation.  We want to use the ability to delete overlapping requests from a cube in a process chain.  So lets say we have a full load from an R/3 sys

  • Custom book formats

    One reason that I upgraded from A2 to A3 was because I use custom page sizes in order to send my books to Blurb and on more than one occasion A2 decided that I could no longer have a black background...or any other color for that matter and I had to

  • How to create password for EXISTING address book application

    I want to password protect my address book as a whole or individual addresses/contacts. I can't find any documentation or prompts about how to do this.  Can anybody help? Solved! Go to Solution.