Vm.process().getInputStream().read() hangs if the VM is suspended?

I use a LaunchConnector to launch a application. When I was using the vm.process().getInputStream().read() method to read the output of the application, I found the read() method blocked if the VM is suspended. However , after the VMDeathEvent ,the read() method run smoothly. Is that means if I want the output I must wait for the completion of the application?
I'm writing a debug tools . I want to get the output message while the application is being debuged.
Below are simple codes for my problem:
public class MyTest {
     public static void main(String[] args){
          List connectors = Bootstrap.virtualMachineManager().allConnectors();
          LaunchingConnector lc=findLaunchingConnector(connectors);
          Map arguments=lc.defaultArguments();
Connector.Argument mainArg=(Connector.Argument)arguments.get("main");
VirtualMachine vm;
mainArg.setValue("fore");//fore is a simpl application
try {
     vm=lc.launch(arguments);
     vm.resume();//if this is removed,the next code will be blocks
vm.process().getInputStream().read();
}catch(Exception e){
     throw new Error("can't launch the application");//ignore for simplification
     public static LaunchingConnector findLaunchingConnector(List cs){
          Iterator iter=cs.iterator();
          while(iter.hasNext()){
               Connector c=(Connector)iter.next();
               if(c.name().equals("com.sun.jdi.CommandLineLaunch"))
                    return (LaunchingConnector)c;     
          return null;
}

hello,
thank you for your answer!
When i try to read the stream nevertheless:
process.getInputStrem().read() = -1
There ist still another thing, which I understand...
process.exitValue() is 13. Which for an error could be it??
regards,
Joana

Similar Messages

  • Process Chains Always Hangs at the second step waiting for an event

    Gents;
    all BI process chains created in Production system are always hanging in the second step waiting for an event RSPROCESS with a certain parameter. This issue is happening for all process chains in Production system and it is not happening for the same in other systems in the landscape (development, Copy of porudction, quality and so on). I tried to trigger the event manually using SM62 but the job is always stick to status " released". the same thing was replicated in other systems and the job status has changed and the process was completed.
    Any idea what might cause this issue??
    Thanks.

    Hi,
    You said that this thing is happening only in production system.Try doing the following checks :
    1.Check SM21to see if there are any red entries.It can be possible that there is some data base RFC connection failure.While checking SM21, make sure you give proper selection condition.If there are any red entries, you may take the help of basis guys to understand the type of failure.May be file system has got some problems.
    2.Check St22 and try to analyse if any short dumps.
    3.Try to check Connection with the source system ( Goto RSA1->source system tab->right click on the source system and select check option to find if any errors in the connection.
    4.If possible, try to load manually in some other info provider.
    Thanks,
    Tarun Brijwani.

  • Process.getInputStream()

    Hello,
    I'm trying to connect to a database server (on Linux) from a Java prog with Runtime.exec( ) and to redirect database server response to the terminal by process.getInputStream() and printing out the input stream. My problem is that I'm getting three different behaviours of process.getInputStream() depending on the syntax of my command.
    If I type commands simply in the terminal window I'd see:
    1) # mysql user=root host=localhost --port=3306
    ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
    - runnining this command with Runtime.exec() I won't get output stream, only "-1" meaning end of stream is reached;
    2) # mysql user=root hostlocalhost --port=3306 (incorrect syntax, typo "--hostlocalhost")
    mysql: unrecognized option `--hostlocalhost'
    - this is the only occasion when my prog behaves as I expect - it sends to the terminal bunch of ints, each representing a char from the process' output;
    3)# mysql user=root password host=localhost port=3306
    Enter password:
    - I was expecting this string would appear in digits, but suprisingly I see it in characters!
    Could anyone explain me pls what's wrong with my code?
    import java.io.*;
    class MySQLconnnect extends Thread{
    public void run(){
    try{
    String command = "mysql --user=root --host=localhost --port=3306";
    Process process = Runtime.getRuntime().exec(command);
    InputStream is = process.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    int ch;
    do{
    ch = isr.read();
    System.out.print(ch);
    }while (ch != -1);
    isr.close();
    is.close();
    System.out.println();
    catch (Exception e){}
    public static void main(String args[]) {
    new MySQLconnnect().start();

    Hi,
    1) this is an error message. They are written into the error stream, so you can get them by Process.getErrorStream().
    2) this is a normal message from the process. You can read it w/ the InputStream from the Process as you did.
    3) the process does not write the text "Enter password:" into the stream. It displays them directly, so this output is not created by your programm.
    A tip: if you create a process from Java you should always take care of reading from both the InputStream and the ErrorStream. If you don't and the process writes out to many bytes it will wait until you read from the streams.
    Andre

  • Every time I repair my iPod with iTunes, it hangs at the end of the process (while checkin the recovery of iPod). What can I do?

    every time I repair my iPod with iTunes, it hangs at the end of the process (while checkin the recovery of iPod). What can I do?

    I chose to restore it to factory defaults, but that never succeeded.
    It hangs at the end of the process.
    printscreen:
    http://users.telenet.be/kevvanbelle/iPod/ipod.JPG
    Language is Dutch :-)
    Littery it says:
    Check of Recovery of iPod.
    Already for 40 minutes.
    I closed down iTunes.
    Now, when I turn on my iPod, there is the icon of iTunes with an usb cable towards it.
    When I attach it to my computer and turn on iTunes, the message is there that a iPod was stuck in recovery mode and I should retry it.
    And then I get the same story. Unpacking, installing, checking... blocked!

  • How do I get the Converting to Adobe PDF process to stop hanging?

    I installed Adobe Acrobat 8 Professional on a machine running Windows 7 Professional 64bit.  I have tried creating PDFs from MS Office files (using the Acrobat PDFMaker toolbar).  I have also tried printing to Adobe PDF, from within MS office but also elsewhere (e.g. IE, Notepad).  No matter the creation method, I am prompted for a file name and location and then the Acrobat PDFMaker window appears with a taskbar and message "Coverting to Adobe PDF..."  The process hangs there and a print job appears in the Adobe PDF printer with a status of "Error - Printing."  How do I get the process to stop hanging and successfully create PDFs?

    FWIW, a former colleague was also frustrated with this "Error - Printing" hang-up problem, when printing from any app to Adobe PDF, with Acrobat Pro 9.3.0 on a Win7x64 system. I recall forum threads on that issue, with no clear resolution?. What did work on every print job, though, was the two-step method: (a) Print to File with Adobe PDF, then (b) fire up Acrobat Distiller 9 to convert the intermediate .prn Postscript file. (It would seem that Acrotray wasn't functioning properly in a x64 environment?...though it did run as one of the pc startup processes)
    As that two-step method was acceptable for his workflow, he never explored the possibility of getting a fluent one-step PDF creation by upgrading to the highest available v9x version, or beyond.

  • PLEASE HELP ! While updating My Xperia Z1 , my pc hanged during the process and .

    While updating My Xperia Z1 , my pc hanged during the process ( so , installation of update was interrupted , guess it's same as getting your USB connection disconnected )and now the phone won't turn on .
    Its shows the Sony Xperia logo , then shows a black lit screen , and that's it , nothing else happens . I can only turn it off by pressing and holding the power+up volume button , but it turns on automatically if plugged in for charging or in PC only till it gets that black screen .
    I tried to flash it with a flashtool (Emma) , but it says phone locked , but since it can't even be turned on , i can't unlock it .
    It's a store bought phone and is not of any contracts with any mobile service provider or anything like that ....
    Funny you know ... my PC had to crash at the moment i was updating it .... my luck ....
    Anyways , now please can anyone tell me what i can do ? I'm sure there is a way i can fix it using my pc and other downloadable software , so please can some one help me how i can fix this problem ? I don't care if i lose all the data on it , i just want my phone back ....
    Solved!
    Go to Solution.

    Problem Solved ,Thank you  very much !! 
    For those who might face the problem and stumble upon this thread after googling  
    Read above mentioned comments 
    Now here's what I did :
    Turned the phone off by power+volume key method , then plugged it in to the pc via USB and opened sony pc companion , entered Support zone , then entered the Update device option , then I Unplugged my device , only after doing this a window pops up with  Repair my phone/tablet in blue text , then i clicked on that and followed the simple instructions ..
    It's basically what Thommo said , only i was so freaked out at that time that i failed to follow his instructions to the letter  
    So now my phone is back to normal , and , it got the latest lolipop update !
    Problem solved i guess  but Thommo , i need to disturb you again with  just one more  question ,  since at the very beginning , the update process was interrupted , and now i got lolipop after  the repair ,without needing to update again ,  so has the lollipop been installed properly on my phone or do i need to use any other flashtool to re-install lollipop ? 
    again , Thank you ... 

  • I can not upgrade the iOS on my phone, nor sync the phone because the process starts with backing up the phone which always hangs up at the backing up stage and then will not allow further progress.

    I can not upgrade the iOS on my phone, nor sync the phone because the process starts with backing up the phone which always hangs up at the backing up stage and then will not allow further progress.
    And for this I guess that it is the backing up of my Podcasts - which are free downloads that causes the hang up. These are items that I have played and synced before without issues. I am thinking this way because these are Podcasts that I used to play but sundenly would not play on my iPhone. Each time I try to play anyone of them it generates the message - this movie could not be played.
    I am scared of atempting a system restore because I guess I may lose my SMS for the past two months. Please approach the solution from this point of view.
    Thanks
    Joe

    Please refer to this thread.
    https://discussions.apple.com/thread/3417041
    It may have something to do with one of your backup files that has been corrupted before.

  • Runtime.exec("ftp") , but cann't read from Process.getInputStream()

    first, Runtime.exec("ftp")
    then I read from Process.getInputStream()
    but I get nohting. why ?
    I think I should read a prompt string "ftp>"
    and, Process.getInputStream() return a BufferedInputStream, how can I get a non-buffered InputStream from it ?

    Disregarding your actual question, I'll take a stab at the REAL issue.
    If you're going to script an FTP session, why not use ftp -s:<filename>?

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • Unable to read metadata during the process or Slow?

    I am trying to write metadata to hundreds of files at a time. I need to me able to write and read back the updated metadata in the same process.Say like add the last name to the photo title then append the first name to the title. Each piece of data is another operation that can be set to overwrite or append to a certain field.
    The problem is when I enclose the entire operation inside a withWriteAccessDo block. In this case if I overwrite that title field with the last name and thend in the next operation I try to append the first name. The problem is that it does not get the updated metadata in the title field, it returns the orginal value!
    I can fix it by putting the withWriteAccessDo block inside the operation for loop so during each operations it uses a new withWriteAccessDo block. This way the updated metadata can be read back for the append correctly. The problem with this meathod is that it takes a very long time! like hours! before in Lightroom 2 this whole operation would take place in under 30 seconds and now it takes and hour!
    So here is some pusdocode
    1 does not get old data correctly
    withWriteAccessDo
         For each operation
              if overwite
                   write data to field
              else if append
                   get current filed data
                   concat old data with data to be added
                   write new data
              end
         loop
    end withWriteAccessDo
    2 works but takes a long time
    For each operation
         withWriteAccessDo
              if overwite
                   write data to field
              else if append
                   get current filed data
                   concat old data with data to be added
                   write new data
              end
         end withWriteAccessDo
    loop
    Anything that I am doing wrong?

    Lightrooom has been extensively reworked under the hood as far as catalog writes go.
    Before: writes just wrote.
    Now: All writes are accumulated in a transaction but are not committed (and hence not accessible) until exiting the with-write gate. And,
    complete undo info is saved for every write.
    So, what I do for effiiciency is either:
    1) Make "to-do" functions
    2) Save "to-do" info.
    Then, call all these "to-do" functions, or process all this saved "to-do" info in a single write-gate, or in a succession of dependent write-gates.
    Rob

  • Process.getInputStream() and process.waitfor() block in web application

    Hi folks,
    i am really stuck with a problem which drives me mad.....
    What i want:
    I want to call the microsoft tool "handle" (see http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Handle.mspx) from within my web-application.
    Handle is used to assure that no other process accesses a file i want to read in.
    A simple test-main does the job perfectly:
    public class TestIt {
       public static void main(String[] args){
          String pathToFileHandleTool = "C:\\tmp\\Handle\\handle.exe";
          String pathToFile = "C:\\tmp\\foo.txt";
          String expectedFileHandleSuccessOutput = "(.*)No matching handles found(.*)";
          System.out.println("pathToFileHandleTool:" + pathToFileHandleTool);
          System.out.println("pathToFile: " + pathToFile);
          System.out.println("expectedFileHandleSuccessOutput: " + expectedFileHandleSuccessOutput);
          ProcessBuilder builder = null;
          // check for os
          if(System.getProperty("os.name").matches("(.*)Windows(.*)")) {
             System.out.println("we are on windows..");
          } else {
             System.out.println("we are on linux..");
          builder = new ProcessBuilder( pathToFileHandleTool, pathToFile);
          Process process = null;
          String commandOutput = "";
          String line = null;
          BufferedReader bufferedReader = null;
          try {
             process = builder.start();
             // read command output
             bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
              while((line = bufferedReader.readLine()) != null) {
                 commandOutput += line;
              System.out.println("commandoutput: " + commandOutput);
             // wait till process has finished
             process.waitFor();
          } catch (IOException e) {
             System.out.println(e.getMessage());
             e.printStackTrace();
          }  catch (InterruptedException e) {
             System.out.println(e.getMessage());
             e.printStackTrace();      }
          // check output to assure that no process uses file
          if(commandOutput.matches(expectedFileHandleSuccessOutput))
             System.out.println("no other processes accesses file!");
          else
             System.out.println("one or more other processes access file!");
    } So, as you see, a simple handle call looks like
    handle foo.txtand the output - if no other process accesses the file - is:
    Handle v3.2Copyright (C) 1997-2006 Mark RussinovichSysinternals - www.sysinternals.com
    No matching handles found.
    no other processes accesses file!(Wether the file exists or not doesnt matter to the program)
    If some processes access the file the output looks like this:
    commandoutput: Handle v3.2Copyright (C) 1997-2006 Mark RussinovichSysinternals - www.sysinternals.com
    WinSCP3.exe        pid: 1108    1AC: C:\tmp\openSUSE-10.2-GM-i386-CD3.iso.filepart
    one or more other processes access file!So far, so good.........but now ->
    The problem:
    If i know use the __exact__ same code (even the paths etc. hardcoded for debugging purposes) within my Servlet-Webapplication, it hangs here:
    while((line = bufferedReader.readLine()) != null) {if i comment that part out the application hangs at:
    process.waitFor();I am absolutely clueless what to do about this....
    Has anybody an idea what causes this behaviour and how i can circumvent it?
    Is this a windows problem?
    Any help will be greatly appreciated.....
    System information:
    - OS: Windows 2000 Server
    - Java 1.5
    - Tomcat 5.5
    More information / What i tried:
    - No exception / error is thrown, the application simply hangs. Adding
    builder.redirectErrorStream(true);had no effect on my logs.
    - Tried other readers as well, no effect.
    - replaced
    while((line = bufferedReader.readLine()) != null)with
    int iChar = 0;
                  while((iChar = bufferedReader.read()) != -1) {No difference, now the application hangs at read() instead of readline()
    - tried to call handle via
    runtime = Runtime.getRuntime();               
    Process p = runtime.exec("C:\\tmp\\Handle\\handle C:\\tmp\\foo.txt");and
    Process process = runtime.exec( "cmd", "/c","C:\\tmp\\Handle\\handle.exe C:\\tmp\\foo.txt");No difference.
    - i thought that maybe for security reasons tomcat wont execute external programs, but a "nslookup www.google.de" within the application is executed
    - The file permissions on handle.exe seem to be correct. The user under which tomcat runs is NT-AUTORIT-T/SYSTEM. If i take a look at handle.exe permission i notice that user "SYSTEM" has full access to the file
    - I dont start tomcat with the "-security" option
    - Confusingly enough, the same code works under linux with "lsof", so this does not seem to be a tomcat problem at all
    Thx for any help!

    Hi,
    thx for the links, unfortanutely nothing worked........
    What i tried:
    1. Reading input and errorstream separately via a thread class called streamgobbler(from the link):
              String pathToFileHandleTool = "C:\\tmp\\Handle\\handle.exe";
              String pathToFile = "C:\\tmp\\foo.txt";
              String expectedFileHandleSuccessOutput = "(.*)No matching handles found(.*)";
              logger.debug("pathToFileHandleTool: " + pathToFileHandleTool);
              logger.debug("pathToFile: " + pathToFile);
              logger.debug("expectedFileHandleSuccessOutput: " + expectedFileHandleSuccessOutput);
              ProcessBuilder builder = new ProcessBuilder( pathToFileHandleTool, pathToFile);
              String commandOutput = "";
              try {
                   logger.debug("trying to start builder....");
                   Process process = builder.start();
                   logger.debug("builder started!");
                   logger.debug("trying to initialize error stream gobbler....");
                   StreamGobbler errorGobbler = new StreamGobbler(process.getErrorStream(), "ERROR");
                   logger.debug("error stream gobbler initialized!");
                   logger.debug("trying to initialize output stream gobbler....");
                   StreamGobbler outputGobbler = new StreamGobbler(process.getInputStream(), "OUTPUT");
                   logger.debug("output stream gobbler initialized!");
                   logger.debug("trying to start error stream gobbler....");
                   errorGobbler.start();
                   logger.debug("error stream gobbler started!");
                   logger.debug("trying to start output stream gobbler....");
                   outputGobbler.start();
                   logger.debug("output stream gobbler started!");
                   // wait till process has finished
                   logger.debug("waiting for process to exit....");
                   int exitVal = process.waitFor();
                   logger.debug("process terminated!");
                   logger.debug("exit value: " + exitVal);
              } catch (IOException e) {
                   logger.debug(e.getMessage());
                   logger.debug(e);
              }  catch (InterruptedException e) {
                   logger.debug(e.getMessage());
                   logger.debug(e);
         class StreamGobbler extends Thread {
              InputStream is;
             String type;
             StreamGobbler(InputStream is, String type) {
                 this.is = is;
                 this.type = type;
             public void run() {
                  try {
                     InputStreamReader isr = new InputStreamReader(is);
                     BufferedReader br = new BufferedReader(isr);
                     String line=null;
                     logger.debug("trying to call readline() .....");
                     while ( (line = br.readline()) != null)
                         logger.debug(type + ">" + line);   
                 } catch (IOException ioe) {
                         ioe.printStackTrace(); 
         }Again, the application hangs at the "readline()":
    pathToFileHandleTool: C:\tmp\Handle\handle.exe
    pathToFile: C:\tmp\openSUSE-10.2-GM-i386-CD3.iso
    expectedFileHandleSuccessOutput: (.*)No matching handles found(.*)
    trying to start builder....
    builder started!
    trying to initialize error stream gobbler....
    error stream gobbler initialized!
    trying to initialize output stream gobbler....
    output stream gobbler initialized!
    trying to start error stream gobbler....
    error stream gobbler started!
    trying to start output stream gobbler....
    output stream gobbler started!
    waiting for process to exit....
    trying to call readline().....
    trying to call readline().....Then i tried read(), i.e.:
         class StreamGobbler extends Thread {
              InputStream is;
             String type;
             StreamGobbler(InputStream is, String type) {
                 this.is = is;
                 this.type = type;
             public void run() {
                  try {
                     InputStreamReader isr = new InputStreamReader(is);
                     BufferedReader br = new BufferedReader(isr);
                     logger.debug("trying to read in single chars.....");
                     int iChar = 0;
                     while ( (iChar = br.read()) != -1)
                         logger.debug(type + ">" + iChar);   
                 } catch (IOException ioe) {
                         ioe.printStackTrace(); 
         }Same result, application hangs at read()......
    Then i tried a dirty workaround, but even that didnt suceed:
    I wrote a simple batch-file:
    C:\tmp\Handle\handle.exe C:\tmp\foo.txt > C:\tmp\handle_output.txtand tried to start it within my application with a simple:
    Runtime.getRuntime().exec("C:\\tmp\\call_handle.bat");No process, no reading any streams, no whatever.....
    Result:
    A file C:\tmp\handle_output.txt exists but it is empty..........
    Any more ideas?

  • What to do when my Macbook air won't load from startup. It hangs in the middle during the black apple screen at the beginning

    my Mac book air will not start up it hangs in the middle of the status bar when I turn it on and will not move.

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    To restart an unresponsive computer, press and hold the power button for a few seconds until the power shuts off, then release, wait a few more seconds, and press it again briefly.
    Step 1
    The first step in dealing with a startup failure is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to start. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later.
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    If the startup process stops at a blank gray screen with no Apple logo or spinning "daisy wheel," then the startup volume may be full. If you had previously seen warnings of low disk space, this is almost certainly the case. You might be able to start up in safe mode even though you can't start up normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.
    Step 3
    Sometimes a startup failure can be resolved by resetting the NVRAM.
    Step 4
    If a desktop Mac hangs at a plain gray screen with a movable cursor, the keyboard may not be recognized. Press and hold the button on the side of an Apple wireless keyboard to make it discoverable. If need be, replace or recharge the batteries. If you're using a USB keyboard connected to a hub, connect it to a built-in port.
    Step 5
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 6
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to start up, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can start up now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Step 7
    If you've started from an external storage device, make sure that the internal startup volume is selected in the Startup Disk pane of System Preferences.
    Start up in safe mode. Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to start and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know the login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you start up in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, the startup volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 11. If you ever have another problem with the drive, replace it immediately.
    If you can start and log in in safe mode, empty the Trash, and then open the Finder Info window on the startup volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then restart as usual (i.e., not in safe mode.)
    If the startup process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 8
    Launch Disk Utility in Recovery mode (see Step 1.) Select the startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then restart as usual.
    Step 9
    If the startup device is an aftermarket SSD, it may need a firmware update and/or a forced "garbage collection." Instructions for doing this with a Crucial-branded SSD were posted here. Some of those instructions may apply to other brands of SSD, but you should check with the vendor's tech support.  
    Step 10
    Reinstall the OS. If the Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 11
    Do as in Step 9, but this time erase the startup volume in Disk Utility before installing. The system should automatically restart into the Setup Assistant. Follow the prompts to transfer the data from a Time Machine or other backup.
    Step 12
    This step applies only to models that have a logic-board ("PRAM") battery: all Mac Pro's and some others (not current models.) Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a startup failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 13
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • Acrobat reader hangs opening pdf created with autocad

    Hi all,
    when I try to open a pdf file created with autocad, Acrobat Reader hangs and I can't do anything else then kill the process. Now I use Acrobat Reader 9.5.5. I've insatlled also Acrobat Reader XI, but the problem persists. It seems it is very slow to process the file. If file has few graphics after some minutes I can see it and zoom in, but if file is has a lot of graphics, acrobat hangs. Any suggestions?

    Hi Robert,
    I am so sorry for the inconvenience caused & will try my best to get this issue resolved.
    I will recommend you to upgrade your Adobe reader to Adobe Acrobat Reader DC on your Samsung Note 3 mobile phone and then try to view the pdf files. You can download it for free from the Google app. store or you can refer to this link Acrobat Reader DC Learn & Support.
    Let me know if you still experience the same issue.
    Regards,
    Aadesh

  • Itunes 7 will not install; it hangs in the middle of "registering"

    I cannot install itunes 7. It hangs in the middle of "registering" and will not proceed any further. Can anyone please help me? I am so frustrated! Thank you very much.

    I spent 6 hours last weekend with this installation problem and came up with a process that seems to work - I've posted it a number of times and no one has said it failed for them. Lots of people have said it worked.
    First go to Control Panel, Add or Remove Programs and uninstall Quicktime and iTunes.
    Next go to the Microsoft web site below and download the Windows Installer Cleanup Utility. Install it, run it, then uninstall Quicktime and iTunes with it, if they appear in the list.
    http://support.microsoft.com/default.aspx?scid=kb;en-us;290301
    Go to apple.com and download the iTunes setup to your hard drive.
    It doesn't hurt to disable or pause your virus scanner before installing, just remember to enable it again when you're done.
    Try installing iTunes. You might still have problems installing iTunes because of QuickTime registry key access errors. If that happens, go to the link below, scroll about half way down and CAREFULLY follow the steps to change both Owner and Permissions on the keys that fail.
    http://discussions.apple.com/thread.jspa?threadID=688433&tstart=0
    NEVER DELETE REGISTRY KEYS MANUALLY USING REGEDIT!
    If this doesn't work, please re-post your problems. The more information we have to work with, the better we can understand the flawed installation process apple uses for iTunes and Quicktime and we can come up with solutions. It seems that the install problems are really with Quicktime rather than iTunes.

  • When closing Firefox (v:3.6.13), using the red "close" button, the firefox.exe process remaines at top of the "Windows Task Manager" window and continues to use the majority of CPU time.

    After an attempt to close the Mozilla Firefox page, on every occasion, the firefox.exe process is found at the top of the list when ordering the listed 'processes' by CPU time... even though the web page is gone.
    If an attempt is made to restart Mozilla, the system declares that the current Mozilla process should be closed.
    If the firefox.exe process is explicitly closed in the Task Manager, only then can Firefox be restarted.

    Does that also happen if you use File > Exit Firefox?
    See also "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * [[Firefox hangs]]

Maybe you are looking for

  • Why it suddently went from 30sec booting to a few minutes?

    10/29/12 9:10:51.000 AM bootlog[0]: BOOT_TIME 1351498251 0 10/29/12 9:11:57.000 AM kernel[0]: PMAP: PCID enabled 10/29/12 9:11:57.000 AM kernel[0]: Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 10/29

  • Can't remove file

    Trying to kill a file in my trash which refuses to be removed.     File name is   A9AE␀␀␀␀.␀␀␀     How can I get rid of this?  

  • Transfer info to new iMac?

    I just purchased a new 27" iMac, which I will get in January. How do I transfer over all the information from my present iMac to the new one?

  • Creating New Menus that follow the playing of a movie clip

    I was wondering if it is possible to have iDVD display a new menu after playing a movie clip off of the first menu. Then from that second menu if it would then be possible to play a new movie clip. Essentially I want to create a progressive DVD where

  • EDI 823 to iDoc FINSTA01

    I am trying to map EDI 823 file to iDoc FINSTA01. I mapped as much as I know, but I am getting following errors when I test it: - External transaction is missing for determining the posting rule - Bank statement date is incorrect: 00000000 Anyone see