The program suspend occasionally,until I press "enter"

Please help! my program is simple, but it don't run stablely! :((
Occasionally,it suspend, and when I press "enter",it resume, but when run for
a few hours,it suspend again.
my program just like that:
=======================
try {
while (true) {
now = Calendar.getInstance();
year = now.get(Calendar.YEAR);
month = now.get(Calendar.MONTH) + 1;
date = now.get(Calendar.DATE);
hour = now.get(Calendar.HOUR_OF_DAY);
minute = now.get(Calendar.MINUTE);
second = now.get(Calendar.SECOND);
//run on the fifth minute every hour
if (lastHour != hour && minute == 5) {
System.out.println("Running...");
System.out.println("date time:" + year + "-" + month + "-" +
date + " " +
hour + ":" + minute + ":" + second);
/* do the routine job start */
// must ftp a file, and do something else
System.out.println("successfully!");
catch (Exception ex) {
System.out.println(ex.getMessage());
/* do the routine job end */
lastHour = hour;
// sleep for 30 seconds
try {
Thread.sleep(30000);
catch (InterruptedException ex1) {
System.out.println(ex1.getMessage());
catch (Exception ex2) {
ex2.printStackTrace();
=======================
the ouput of the program is just like that:
Running
date time:2003-10-17 16:5:12
Finish ftp. File size: 729088 bytes.
successfully!
---- suspend here, when I found the File size din't change on 17:20:22,
---- I press "enter",and the following shows
Running
date time:2003-10-17 17:5:18
Finish ftp. File size: 671744 bytes.
successfully!
==========================================
I can figure out what happened to my program , the Thread.sleep interrupted ? the ftp interrupted ?
please give me some advices,I greatly appreciate your help!!!

the program suspend occasionally,until I press my keyboard,
Please help! It have tortured me for a long time.
my program is simple, but it don't run stablely! :((
Occasionally, it suspend, and when I press my keyboard, it resume, but when run for a day,it suspend again.
my program just like that:
===============================================
// a rountine job, run every hour
// timer = new Timer();
// timer.scheduleAtFixedRate(new RemindTask(), time, 60 * 60* 1000); // 1 hour
System.out.println("Start to run,save log, date time:" + year + "-" + month + "-" + date + " " +
hour + ":" + minute + ":" + second + " Current=" + System.currentTimeMillis());
logSaver2.saveLog("date time:" + year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second);
System.out.println("end log, start ftp, Current=" + System.currentTimeMillis());
// must ftp a file, and to dump the file into database
System.out.println("finish!");
==================================================
logSaver2.saveLog just do this:
RandomAccessFile myRAFile;
myRAFile.seek(myRAFile.length()); //move to the end of the file
myRAFile.writeBytes(s); //Start appending!
====================================================
the ouput of the program is just like that:
Start to run,save log, date time:2003-12-11 08:10:00 Current=1071101400854
end log, start ftp, Current=1071101400856
finish!
------------- it suspend,I checked the log file, it have recorded "date time:2003-12-11 09:10:10",
--------------and when I press keyboard on 09:38:40, the following shows, and it runs normally
Start to run,save log, date time:2003-12-11 09:10:10 Current=1071105200898
end log, start ftp, Current=1071107280241
finish!
======================================================
notice that when it suspend, the difference of the two "Current" values will be large,
and when it run on time, the difference of the two "Current" values will be small,
but I just do "savelog" at that time span!
and some experience:
I once used the windows ftp client to do the ftp, and the program suspend frequently(once a few hour),
and I used the enterpriseftp-1.2.3 now, the program suspend occasionally(maybe twice a day)
I cann't figure out what happened to my program.
please give me some advices,I greatly appreciate your help!!!

Similar Messages

  • The webpage does not load after pressing enter or CTRL+ENTER. My OS is Windows 7 Ultimate

    I have tried installing the older version Firefox 3.6. After entering the URL on address bar it does not load after pressing enter or CTRL+ENTER

    This issue can be caused by an extension (AVG Safe Search can cause this) that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • When I open my premiere elements 9, I can't see the workspace, I have to restart the program many times until it works, what happens??

    Somebody can help me, the program was fantàstic, but a few months ago, when I open my premiere I can't see the workspace, the program doesn't show me an error message, but I have to restart Windows several times until I can work normally, what happens, adobe premiere have some problems with other programs installed? I don't understand, I have a serial number, I buy a dell with the program installed, with Windows 7.
    Can somebody help me, it's very important for me this program and I use it a lot

    mcaro5
    Thanks for reporting what worked for you with regard to your Premiere Elements 9 issue. Your results will be helpful to all those who find themselves in the same situation that you encountered. It is good that the suggestion worked for you also since often problems with the same symptoms can (often do) have different causes and fixes.
    Best wishes as you move forward with your Premiere Elements projects.
    ATR

  • Satellite L305 won't boot until I press "Enter" repeatedly

    My wife is going on a mission trip to Africa, and acquired a used Satellite L305-S5907 to donate to a needy student there. I used the original Toshiba recovery discs to reformat and reinstall Vista to original factory state, and have run all the endless Windows updates, including SP1 and 2. Everything seems to work fine except for one weird quirk. When I start or restart the computer, it powers up, but won't start to boot unless I repeatedly press Enter (or F2 or F12), and then go through the Boot screen or Setup screen. The computer was doing this before I restored it, but since it had belonged to a high school girl I hoped that a clean reinstall would fix things. The only thing that occurs to me is to update the BIOS, but drilling down through the levels of Toshiba's website, I get as far as a link to BIOS 2.20, but that page won't even load, let alone download the installer. I've searched for another way into Toshiba's download site, but can't find one, and I don't want to risk a third party BIOS fix.
    She's leaving for Kenya next weekend, and wants to donate a conputer that's working smoothly, so any help will be much appreciated. Thanks.

    sdl701 wrote:
     I used the original Toshiba recovery discs to reformat and reinstall Vista to original factory state...  then go through the Boot screen or Setup screen. The computer was doing this before I restored it
    I dumped Vista operating system a long time ago and installed Win 7.  I’ve used different OS system since Win 98; I thought Vista was not prime time.  Have you tried to fix with Windows STARTUP REPAIR if you haven’t found a solution yet?
    http://windows.microsoft.com/en-us/windows-vista/startup-repair-frequently-asked-questions

  • What is causing my program to crash when I go to print from my Epson R2400 printer ? I just got a new IMac & thought the program was fine until I tried to print.

    I just got a new IMac & thought

    You should post in the forum dedicated to whatever program you are talking about.
    Here is a link to a page that has links to all Adobe forums...
    Forum links page:
    https://forums.adobe.com/welcome

  • I'm looking for the program that can make my left enter key an option key.

    I used to have it before my computer crashed and i lost everything on my hard drive. if any one who knows what it is please help me out.

    http://doublecommand.sourceforge.net/download.html
    I figured it out.

  • Waiting until pressing enter

    In a console application, how can a program wait until user press enter?

    import java.io.*;
    public class InputTest {
       public static void main(String [] arg) throws Exception {
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          for(String line=""; ((line=br.readLine())!=null); )
             System.out.println("Input: "+line);
    }asjf

  • Pressing ENTER in Command Prompt to solve hanging

    Hi,
    Does anyone know why sometimes Java hangs, unless you press ENTER in the
    Command Prompt for Windows 2K? After pressing ENTER it continues execution.
    It happens with WebLogic sometimes too. It will not print anything on the
    console until I press ENTER.
    I'm sure lots of Java developers have experienced this weird problem.
    Thanks,
    Duke
    [email protected]

    That is what we call a "feature" of an enterprise-class OS ;-)
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "Chad McDaniel" <[email protected]> wrote in message
    news:[email protected]..
    On windows machines be very careful to turn off the "mark" option in
    the shell preferences. It can halt the server.
    Daniel Hoppe <[email protected]> writes:
    Hi,
    because you marked something in the command prompt. Marking stops
    execution. Enter means 'copy' and continues execution...
    Daniel
    -----Original Message-----
    From: Duke Nguyen [mailto:[email protected]]
    Posted At: Thursday, December 13, 2001 3:16 AM
    Posted To: ejb
    Conversation: pressing ENTER in Command Prompt to solve hanging
    Subject: pressing ENTER in Command Prompt to solve hanging
    Hi,
    Does anyone know why sometimes Java hangs, unless you press
    ENTER in the
    Command Prompt for Windows 2K? After pressing ENTER it
    continues execution.
    It happens with WebLogic sometimes too. It will not print
    anything on the
    console until I press ENTER.
    I'm sure lots of Java developers have experienced this weird problem.
    Thanks,
    Duke
    [email protected]

  • Pressing enter instead of clicking on a button

    Hey all, this is rather simple but the search term 'enter' is very common so i'm having a hard time searching for my solution!
    I'm basically writing a search program that finds customers, at the moment I have a screen where the user types in a name then clicks on a button I have which executes the search.
    I'd like to be able to have it search by pressing enter as well as being able to click on the button.
    I tried debugging to see what the sy-ucomm was when I pressed enter but apparently that doesn't change.
    Can anyone direct me to what I should be researching to implement this?
    Just a few basics to get me on my way would be great,
    Thanks

    Hi Mate
    In your PAI okcode module you can include '/00' or 'ENTE' to capture the enter keypress. 
    This will solve your problem.
    Regards
    Gareth

  • Error - There was a problem sending the command to the program

    one of my users is getting he above error. The difference is we have put a GPO in place to untick the 'DDE' option under excel options but this issue as resurfaced
    The customer is using a hosted environment, server 2008 R2, with excel 2010 as their version of excel.
    Question is , is there another workaround or fix for this (permanent fix). THe fixit seems to only untick the option.
    anyone help, much appreciated.

    Question is , is there another workaround or fix for this (permanent fix). THe fixit seems to only untick the option.
    There is no other solid solution for this issue by far. However, you can try to following steps to check if it will fix the issue:
    1. Press Windows key + R to open the Run command, type
    regedit and press Enter to open the Registry Editor.
    2. Navigate to:
    HKEY_CLASSES_ROOT\Excel.Sheet.12\shell\Open\ddeexec
    3. Export the ddeexec key for backup purpose. Then right-click on the key and select
    Delete.
    Reboot the computer and then check the issue again.
    Please let me know the result.
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Premiere Pro CS4 crashes/freezed whenever I press enter

    Hi again
    I am only editing a 3 minute piece, 720x480 72dpi but whenever i press enter the whole thing freezes up and i have to restart. So i can't effectively edit becuase I can never see my transistions and such.
    my specs:
    Dell Deminision 4700
    Windows XP Professional SP3
    4 gigs of Ram
    500 Gigs of harddrive space
    pentium 4 proccessor
    What should I do?
    thanks
    -jose

    Hi John!
    Thanks so much for pointing out those articles for me. I read them thoroughly.
    Here are the more details of my set up is you will:
    Pentium 4CPU 3.00GHz
    2.99 GHz, 3.25GB of RAM / Memory: 3326MB RAM (even though I installed 4!)
    Windows XP Professional (5.1, Build 2600) SP3, all updates and hotfixes installed
    BIOS: Phoenix ROM BIOS PLUS Version 1.10 A10
    1 x 465GB SATAII. Drive C:\OS, programs, project files, scratch disks and Windows Virtual Memory with 206 GB free
    Drive D:\ Compaq DVD-ROM GDR8160B
    Drive W:\ Philips DVD+-RW DVD 8631
    I don't know what any of the "connections" are though...
    Processor Scheduling is adjust for best performance of Programs
    Memory usage also for best performance of Programs
    Page File = 2046 MB
    although my DXDAIG Scan says: Page File 1191MB Used, 4023MB available
    DirectX Version 9.0c (4.09.0000.0904)
    Display Device:
    RADEON x3000 Series/x550 series (0x5B60)
    DAC type (400MHz)
    Drivers: ati2dvag.dll version 6.14.0010.6601
    whql logo'd: yes
    Mini VDD: atimtag.sys
    vdd: n/a
    This is my MSINFO32 scan:
    OS Name    Microsoft Windows XP Professional
    Version    5.1.2600 Service Pack 3 Build 2600
    OS Manufacturer    Microsoft Corporation
    System Name    BLUEMAGELOCAL
    System Manufacturer    Dell Inc.
    System Model    Dimension 4700
    System Type    X86-based PC
    Processor    x86 Family 15 Model 3 Stepping 4 GenuineIntel ~2993 Mhz
    BIOS Version/Date    Dell Inc. A10, 1/4/2006
    SMBIOS Version    2.3
    Windows Directory    C:\WINDOWS
    System Directory    C:\WINDOWS\system32
    Boot Device    \Device\HarddiskVolume1
    Locale    United States
    Hardware Abstraction Layer    Version = "5.1.2600.5512 (xpsp.080413-2111)"
    User Name    BLUEMAGELOCAL\Jose
    Time Zone    Eastern Daylight Time
    Total Physical Memory    4,096.00 MB
    Available Physical Memory    2.09 GB
    Total Virtual Memory    2.00 GB
    Available Virtual Memory    1.96 GB
    Page File Space    5.09 GB
    Page File    C:\pagefile.sys
    I usually turn off other applications while I try to edit.
    PrProCS4.2.1
    Sequence Length:  00:01:08:25
    Time Line: 00:11:08:07 (I don't know why, I never specified for it to be this length).
    Sequence Settings:
    Editing Mode - DV NTSC
    Timebase: 29.97 frames/second
    Video:
    Frame Size: 720 x 480 4:3
    Pixel Aspect Ratio: D1/DV NTSC (0.9091)
    Fields: Lower Field First
    Display Format: 30fps Non-Drop-Frame Timecode
    Audio:
    Sample Rate: 48000Hz
    Display Format: Audio Samples
    Video Previews:
    Preview File Format: NTSC DV
    Codec: DV NTSC
    ASSETS:
    the only assets I have at this point are
    14 wav files, all being 48,000 hz in ATs 1-14
    1 (ONE) .psd which is 72dpi, RGB, 988 x 612 (1.0) in V1
    The .psd file is scaled at 125% becuase i only want to use a portion of the file in the frame.
    i have the red line above. when i press enter, the whole program freezes at an arbitrary point of rendering. Somethings it's fream 172, sometimes is frame 40, etc.

  • Pressing enter after typing URL no longer loads webpage, fix?

    It used to be that all you had to do was type half a URL or the whole thing and press enter and the web page would load, now pressing enter does not work, how do I fix this?

    From [[Latest Firefox issues]]
    '''Pressing Enter in the address bar doesn't work'''
    The AVG Safe Search extension is causing an issue where pressing Enter when trying to go to a website does not work. You have to click the green go arrow instead. Until this is resolved you can work around this issue by disabling the extension:
    At the top of the Firefox window, click on the Firefox button (Tools menu in Windows XP), and then click Add-ons. The Add-ons Manager tab will open.
    #In the Add-ons Manager tab, select the Extensions panel.
    #Click Disable button next to the AVG Safe Search extension to disable it.
    #Click Restart Firefox.
    For more information, see [[Troubleshooting extensions and themes]]
    -----

  • Data getting deleted from screen fields when  I Press Enter

    Hi Folks,
    I have a serious Issue need to resolve it urgently. I have created a subscreen in PS Module
    Prog: SAPLXCN1(Subscreen)
    Screen: 0600.
    Enhancement: CNEX0006.
    I have created a screen and populated the data via search helps, when I fill all the custom fields with values and press enter my data is getting deleted please give me quick solutiojn.
    Thanks & Regards,
    Ramcharan.

    Hi RAM,
    Check the Code where you are writning , (PBO or PAI)
    After that check the sy-ucomm for Enter and write your code accordingly,,.
    Thanks & regards,
    Dileep.C

  • Nothing plays in the Program window.

    Hello,
    I'm a new user to Premiere Pro and I recently downloaded it and started working on it. I'm using Mac OSX 10.8.5
    I was working on a project that someone had given to me, I opened it and everything was working fine and then inexplicably nothing would play in the program window. When I scrub the playhead I can hear the audio and the sequence progresses in the Program window, but when I press play it does absolutely nothing, it doesn't even play a single frame. All clips still play just fine in the source window.
    While I am admittedly a novice on Premiere Pro this strikes me as a very peculiar problem as it seemed to happen out of nowhere, one moment it was working, the next it wasn't.
    I've tried restarting, saving the project in a different location, logging in with a different user and always with the same result, the sequence just won't play.
    Can anyone suggest a solution?
    Thanks.

    Hi Arjun,
    When I right click on a clip and and create a new sequence it works fine.
    So I tried creating a new sequence, and then copied and pasted everything from the sequence that wasn't playing into the new one and it plays now though playback is not very smooth, other than that it's working fine.
    Jude - it was the entire sequence that wouldn't play, not just one video track.
    Thanks for your help.

  • Pressing enter activating other buttons in VI

    Hi All,
    I have an app built based on the User Event Handler template. In it I
    have a graph and several buttons (so far). The odd behavior occurs
    when I edit an axis range on the graph during runtime. When I type in
    a new max val for an axis and press enter, it not only accepts the new
    axis max val but activates one of the buttons. Any idea why this may
    be occurring?
    Thanks for any info,
    Gc.

    Good catch! The button did have 'enter' assigned to it under
    Advanced/Key Navigation.
    Muchos gracias!
    Gc.
    shoneill wrote in message news:<[email protected]>...
    > The only things which occur to me are
    >
    > 1) the button is highlighted when you press enter, but this can`t be
    > the case as you`re editing a chart
    > 2) the button is assigned the enter key as a keyboard shortcut
    >
    > Otherwise, no explanation from me.
    >
    > Shane.

Maybe you are looking for

  • 8.0.1 running very well here........

    Well, I have been reading all the threads now on 8.0 and 8.0.1. I converted over to 10.5 then 10.5.1 just a week ago. I read threads on doing clean installs, had never done one before, so I took the plunge and did it. Now I don't have alot of 3rd par

  • Values of prompt not reflected in reports.

    Hi, I have created two reports both with two columns. The first column is the main dimension (an id that represents a specific entity) and is prompted, the second column is the first colum with a ranked filter. In this ranked filter I also specify a

  • Using Adobe Cloud in countries where it is not available for purchase

    I'm living in the UK moving to Vietnam in a month. If I buy Creative Cloud membership here before I go, will I have full access to all the functionality offered by the creative cloud? My big fear is going out there after paying for a year's subscript

  • JPanel not displaying in Windows

    I have a window displaying a panel and some buttons. I installed the application on Solaris and Windows. On Solaris, it displays fine every time. On Widows, it displays the first time I bring up the application but the panel does not display when I c

  • Iphoto thumbnails not matching photos

    Just back from a trip and uploaded all our photos, and thought they were all out of order when looking at the thumbnails, but when I click on a thumbnail, it's actually a different photo completely. HELP!     Don't want to lose all our photos, what's