My program delay on exit! Why?

I don't know why some program such as Gimp, Deadbeef or Sublime-Text take about 1.5 or 2 seconds to close. I have tried to run it in terminal, there is not other error ouput except missing GTK theme "adwaita". My Arch is up to date and it work perfect except this problem! Could any one please tell me how to solve this problem?

That could be absolutely normal. It's common for programs that they need to do some work before they close (e.g. some cleanup of temporary files, persisting the current session or configuration etc.). For me Gimp takes a second or two to close on every platform I've run it on so far. Sublime closes instantly for me most of the times, though. But I know that it persists it's current state on close, that could be the reason. Firefox also is known to take some time to completely shutdown (I think it hides the Window pretty fast, but it sometimes runs a few seconds in the background before it is finished).

Similar Messages

  • SAP on V6R1 - ABAP Import:Program 'Migration Monitor' exits with error code

    Hello,
    We are doing an installation of SAP NW 7.01 SR1 on V6R1.
    <br>
    We were getting error in SAPAPPL2.TSK.bck we merged the files with following command:R3load --merge_only <TSK file> and refering sap note:Note 455195 - R3load: Use of TSK files.
    <br>
    We are again getting error in following steps:
    <br>
    sapinst.log
    <br>
    <br>WARNING 2009-09-30 23:25:28.477
    Execution of the command "Y:\QOpenSys\QIBM\ProdData\JavaVM\jdk14\64bit\bin\java -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 103. Output:
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
    IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 OS400 ppc64-64 j9ap64142sr13-20090310 (JIT enabled)
    J9VM - 20090309_31291_BHdSMr
    JIT  - 20090210_1447ifx1_r8
    GC   - 200902_24)
    I<br>mport Monitor jobs: running 1, waiting 27, completed 0, failed 0, total 28.
    <br>Loading of 'SAPNTAB' import package: OK
    <br>Import Monitor jobs: running 0, waiting 27, completed 1, failed 0, total 28.
    Import Monitor jobs: running 1, waiting 26, completed 1, failed 0, total 28.<br>
    Import Monitor jobs: running 2, waiting 25, completed 1, failed 0, total 28.<br>
    Import Monitor jobs: running 3, waiting 24, completed 1, failed 0, total 28.<br>
    Loading of 'DOKCLU' import package: OK
    Import Monitor jobs: running 2, waiting 24, completed 2, failed 0, total 28.<br>
    Import Monitor jobs: running 3, waiting 23, completed 2, failed 0, total 28.<br>
    Loading of 'SAPAPPL1' import package: OK
    Import Monitor jobs: running 2, waiting 23, completed 3, failed 0, total 28.<br>
    Import Monitor jobs: running 3, waiting 22, completed 3, failed 0, total 28.<br>
    Loading of 'SAPAPPL2' import package: ERROR
    Import Monitor jobs: running 2, waiting 22, completed 3, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 21, completed 3, failed 1, total 28.<br>
    Loading of 'DD03L' import package: OK
    Import Monitor jobs: running 2, waiting 21, completed 4, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 20, completed 4, failed 1, total 28.<br>
    Loading of 'SCPRSVALS' import package: OK
    Import Monitor jobs: running 2, waiting 20, completed 5, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 19, completed 5, failed 1, total 28.<br>
    Loading of 'SAPSDIC' import package: OK
    Import Monitor jobs: running 2, waiting 19, completed 6, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 18, completed 6, failed 1, total 28.<br>
    Loading of 'SCPRVALS' import package: OK
    Import Monitor jobs: running 2, waiting 18, completed 7, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 17, completed 7, failed 1, total 28.<br>
    Loading of 'SAPSSRC' import package: OK
    Import Monitor jobs: running 2, waiting 17, completed 8, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 16, completed 8, failed 1, total 28.<br>
    Loading of 'FUPARAREF' import package: OK
    Import Monitor jobs: running 2, waiting 16, completed 9, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 15, completed 9, failed 1, total 28.<br>
    Loading of 'TODIR' import package: OK
    Import Monitor jobs: running 2, waiting 15, completed 10, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 14, completed 10, failed 1, total 28.<br>
    Loading of 'SEOSUBCODF' import package: OK
    Import Monitor jobs: running 2, waiting 14, completed 11, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 13, completed 11, failed 1, total 28.<br>
    Loading of 'E071K' import package: OK
    Import Monitor jobs: running 2, waiting 13, completed 12, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 12, completed 12, failed 1, total 28.<br>
    Loading of 'SAPPOOL' import package: OK
    Import Monitor jobs: running 2, waiting 12, completed 13, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 11, completed 13, failed 1, total 28.<br>
    Loading of 'SAPSPROT' import package: OK
    Import Monitor jobs: running 2, waiting 11, completed 14, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 10, completed 14, failed 1, total 28.<br>
    Loading of 'SAPSDOCU' import package: OK
    Import Monitor jobs: running 2, waiting 10, completed 15, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 9, completed 15, failed 1, total 28.<br>
    Loading of 'SAPCLUST' import package: OK
    Import Monitor jobs: running 2, waiting 9, completed 16, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 8, completed 16, failed 1, total 28.<br>
    Loading of 'SAPSLOAD' import package: OK
    Import Monitor jobs: running 2, waiting 8, completed 17, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 7, completed 17, failed 1, total 28.<br>
    Loading of 'SAPSLEXC' import package: OK
    Import Monitor jobs: running 2, waiting 7, completed 18, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 6, completed 18, failed 1, total 28.<br>
    Loading of 'SAPUSER' import package: OK
    Import Monitor jobs: running 2, waiting 6, completed 19, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 5, completed 19, failed 1, total 28.<br>
    Loading of 'SAPDDIM' import package: OK
    Import Monitor jobs: running 2, waiting 5, completed 20, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 4, completed 20, failed 1, total 28.<br>
    Loading of 'SAPDFACT' import package: OK
    Import Monitor jobs: running 2, waiting 4, completed 21, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 3, completed 21, failed 1, total 28.<br>
    Loading of 'SAPDODS' import package: OK
    Import Monitor jobs: running 2, waiting 3, completed 22, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 2, completed 22, failed 1, total 28.<br>
    Loading of 'SAPUSER1' import package: OK
    Import Monitor jobs: running 2, waiting 2, completed 23, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 1, completed 23, failed 1, total 28.<br>
    Loading of 'SAP0000' import package: OK
    Import Monitor jobs: running 2, waiting 1, completed 24, failed 1, total 28.<br>
    Loading of 'SAPAPPL0' import package: OK
    Import Monitor jobs: running 1, waiting 1, completed 25, failed 1, total 28.<br>
    Loading of 'SAPSSEXC' import package: OK
    Import Monitor jobs: running 0, waiting 1, completed 26, failed 1, total 28.<br>
    <br>
    WARNING[E] 2009-09-30 23:25:28.524
    CJS-30022  Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log,
    <br>
    ERROR 2009-09-30 23:25:28.914
    FCO-00011  The step runMigrationMonitor with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
    <br>
    <br>import_monitor.log.
    <br>****************************************************************************************************************************************************
    <br>INFO: 2009-09-30 23:26:33 com.sap.inst.migmon.LoadTask run
    Loading of 'SAP0000' import package is successfully completed.
    <br>
    INFO: 2009-09-30 23:30:31 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPAPPL0' import package is successfully completed.
    <br>
    INFO: 2009-09-30 23:31:16 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPSSEXC' import package is successfully completed.
    <br>
    WARNING: 2009-09-30 23:31:31
    Cannot start import of packages with views because not all import packages with tables are loaded successfully.
    WARNING: 2009-09-30 23:31:31
    1 error(s) during processing of packages.
    INFO: 2009-09-30 23:31:31
    Import Monitor is stopped.
    <br>*************************************************************************************************************************************************
    <br>SAPAPPL02.LOG
    <br>**************************************************************************************************************************************************
    <br>TVV1 in *LIBL type *FILE not found. MSGID= Job=015908/SAPINST/QJVAEXEC
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) INFO: TVV1 created #20091001110304
    <br>
    (DB) INFO: TVV1 deleted/truncated #20091001110304
    <br>
    (IMP) INFO: import of TVV1 completed (0 rows) #20091001110304
    <br>
    (DB) ERROR: DDL statement failed<br>
    (ALTER TABLE "TVV1" DROP PRIMARY KEY )<br>
    DbSlExecute: rc = 99<br>
      (SQL error -539)<br>
      error message returned by DbSl:
    Table TVV1 in R3E04DATA does not have a primary or unique key. MSGID= Job=015908/SAPINST/QJVAEXEC
    Your inputs will help a lot.
    Regards,
    Prasad

    Hello,
    We are doing an installation of SAP NW 7.01 SR1 on V6R1.
    <br>
    We were getting error in SAPAPPL2.TSK.bck we merged the files with following command:R3load --merge_only <TSK file> and refering sap note:Note 455195 - R3load: Use of TSK files.
    <br>
    We are again getting error in following steps:
    <br>
    sapinst.log
    <br>
    <br>WARNING 2009-09-30 23:25:28.477
    Execution of the command "Y:\QOpenSys\QIBM\ProdData\JavaVM\jdk14\64bit\bin\java -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 103. Output:
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
    IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 OS400 ppc64-64 j9ap64142sr13-20090310 (JIT enabled)
    J9VM - 20090309_31291_BHdSMr
    JIT  - 20090210_1447ifx1_r8
    GC   - 200902_24)
    I<br>mport Monitor jobs: running 1, waiting 27, completed 0, failed 0, total 28.
    <br>Loading of 'SAPNTAB' import package: OK
    <br>Import Monitor jobs: running 0, waiting 27, completed 1, failed 0, total 28.
    Import Monitor jobs: running 1, waiting 26, completed 1, failed 0, total 28.<br>
    Import Monitor jobs: running 2, waiting 25, completed 1, failed 0, total 28.<br>
    Import Monitor jobs: running 3, waiting 24, completed 1, failed 0, total 28.<br>
    Loading of 'DOKCLU' import package: OK
    Import Monitor jobs: running 2, waiting 24, completed 2, failed 0, total 28.<br>
    Import Monitor jobs: running 3, waiting 23, completed 2, failed 0, total 28.<br>
    Loading of 'SAPAPPL1' import package: OK
    Import Monitor jobs: running 2, waiting 23, completed 3, failed 0, total 28.<br>
    Import Monitor jobs: running 3, waiting 22, completed 3, failed 0, total 28.<br>
    Loading of 'SAPAPPL2' import package: ERROR
    Import Monitor jobs: running 2, waiting 22, completed 3, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 21, completed 3, failed 1, total 28.<br>
    Loading of 'DD03L' import package: OK
    Import Monitor jobs: running 2, waiting 21, completed 4, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 20, completed 4, failed 1, total 28.<br>
    Loading of 'SCPRSVALS' import package: OK
    Import Monitor jobs: running 2, waiting 20, completed 5, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 19, completed 5, failed 1, total 28.<br>
    Loading of 'SAPSDIC' import package: OK
    Import Monitor jobs: running 2, waiting 19, completed 6, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 18, completed 6, failed 1, total 28.<br>
    Loading of 'SCPRVALS' import package: OK
    Import Monitor jobs: running 2, waiting 18, completed 7, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 17, completed 7, failed 1, total 28.<br>
    Loading of 'SAPSSRC' import package: OK
    Import Monitor jobs: running 2, waiting 17, completed 8, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 16, completed 8, failed 1, total 28.<br>
    Loading of 'FUPARAREF' import package: OK
    Import Monitor jobs: running 2, waiting 16, completed 9, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 15, completed 9, failed 1, total 28.<br>
    Loading of 'TODIR' import package: OK
    Import Monitor jobs: running 2, waiting 15, completed 10, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 14, completed 10, failed 1, total 28.<br>
    Loading of 'SEOSUBCODF' import package: OK
    Import Monitor jobs: running 2, waiting 14, completed 11, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 13, completed 11, failed 1, total 28.<br>
    Loading of 'E071K' import package: OK
    Import Monitor jobs: running 2, waiting 13, completed 12, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 12, completed 12, failed 1, total 28.<br>
    Loading of 'SAPPOOL' import package: OK
    Import Monitor jobs: running 2, waiting 12, completed 13, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 11, completed 13, failed 1, total 28.<br>
    Loading of 'SAPSPROT' import package: OK
    Import Monitor jobs: running 2, waiting 11, completed 14, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 10, completed 14, failed 1, total 28.<br>
    Loading of 'SAPSDOCU' import package: OK
    Import Monitor jobs: running 2, waiting 10, completed 15, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 9, completed 15, failed 1, total 28.<br>
    Loading of 'SAPCLUST' import package: OK
    Import Monitor jobs: running 2, waiting 9, completed 16, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 8, completed 16, failed 1, total 28.<br>
    Loading of 'SAPSLOAD' import package: OK
    Import Monitor jobs: running 2, waiting 8, completed 17, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 7, completed 17, failed 1, total 28.<br>
    Loading of 'SAPSLEXC' import package: OK
    Import Monitor jobs: running 2, waiting 7, completed 18, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 6, completed 18, failed 1, total 28.<br>
    Loading of 'SAPUSER' import package: OK
    Import Monitor jobs: running 2, waiting 6, completed 19, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 5, completed 19, failed 1, total 28.<br>
    Loading of 'SAPDDIM' import package: OK
    Import Monitor jobs: running 2, waiting 5, completed 20, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 4, completed 20, failed 1, total 28.<br>
    Loading of 'SAPDFACT' import package: OK
    Import Monitor jobs: running 2, waiting 4, completed 21, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 3, completed 21, failed 1, total 28.<br>
    Loading of 'SAPDODS' import package: OK
    Import Monitor jobs: running 2, waiting 3, completed 22, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 2, completed 22, failed 1, total 28.<br>
    Loading of 'SAPUSER1' import package: OK
    Import Monitor jobs: running 2, waiting 2, completed 23, failed 1, total 28.<br>
    Import Monitor jobs: running 3, waiting 1, completed 23, failed 1, total 28.<br>
    Loading of 'SAP0000' import package: OK
    Import Monitor jobs: running 2, waiting 1, completed 24, failed 1, total 28.<br>
    Loading of 'SAPAPPL0' import package: OK
    Import Monitor jobs: running 1, waiting 1, completed 25, failed 1, total 28.<br>
    Loading of 'SAPSSEXC' import package: OK
    Import Monitor jobs: running 0, waiting 1, completed 26, failed 1, total 28.<br>
    <br>
    WARNING[E] 2009-09-30 23:25:28.524
    CJS-30022  Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log,
    <br>
    ERROR 2009-09-30 23:25:28.914
    FCO-00011  The step runMigrationMonitor with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
    <br>
    <br>import_monitor.log.
    <br>****************************************************************************************************************************************************
    <br>INFO: 2009-09-30 23:26:33 com.sap.inst.migmon.LoadTask run
    Loading of 'SAP0000' import package is successfully completed.
    <br>
    INFO: 2009-09-30 23:30:31 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPAPPL0' import package is successfully completed.
    <br>
    INFO: 2009-09-30 23:31:16 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPSSEXC' import package is successfully completed.
    <br>
    WARNING: 2009-09-30 23:31:31
    Cannot start import of packages with views because not all import packages with tables are loaded successfully.
    WARNING: 2009-09-30 23:31:31
    1 error(s) during processing of packages.
    INFO: 2009-09-30 23:31:31
    Import Monitor is stopped.
    <br>*************************************************************************************************************************************************
    <br>SAPAPPL02.LOG
    <br>**************************************************************************************************************************************************
    <br>TVV1 in *LIBL type *FILE not found. MSGID= Job=015908/SAPINST/QJVAEXEC
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    (DB) INFO: TVV1 created #20091001110304
    <br>
    (DB) INFO: TVV1 deleted/truncated #20091001110304
    <br>
    (IMP) INFO: import of TVV1 completed (0 rows) #20091001110304
    <br>
    (DB) ERROR: DDL statement failed<br>
    (ALTER TABLE "TVV1" DROP PRIMARY KEY )<br>
    DbSlExecute: rc = 99<br>
      (SQL error -539)<br>
      error message returned by DbSl:
    Table TVV1 in R3E04DATA does not have a primary or unique key. MSGID= Job=015908/SAPINST/QJVAEXEC
    Your inputs will help a lot.
    Regards,
    Prasad

  • Could not find main class. Program will now exit. *SIGH*.....

    At first I thought it was just my own programs that I created with netbeans that had this problem; however, even the demo programs under the sdk folder give me this problem when i try to run them. Virtual Machine Loader will just come up with pop up saying "Could not find the main class. Program will not exit"
    I am a fairly competent programmer, not new to java. But I am new to guis in java, and using netbeans to create them. The program I am creating gives me this error with javaw and with java it will tell me NoClassDef for grouplayout. I checked the manifest file it looks alright:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.0
    Created-By: 10.0-b19 (Sun Microsystems Inc.)
    Main-Class: desktopapplication2.DesktopApplication2
    Class-Path: lib/appframework-1.0.3.jar lib/swing-worker-1.1.jar lib/swing-layout-1.0.1.jar lib/ant-swing.jar lib/SwingSet2.jar lib/swing-layout-1.0.3.jar
    X-COMMENT: Main-Class will be added automatically by build
    }(brackets not included)
    I am sort of lost.... Do I need to install ant separately?
    I feel like there may be some classpath issues?
    I have java 1.6 update 4 and netbeans 6.0
    I am completely lost I have been working on fixing this for the past 2 or 3 days now, and reading up all the information.
    Note: This is just a standard desktop application.
    Also I just thought of something. If I have install the development kit do I also need to install the framework or whatever for 6.0 separately? Meaning installing the latest version of jvm. Sorry if this isn't clear i forgot what it is called.
    Sorry if this sounds like a beginner question or something, but I am going crazy. If i am having this much trouble running my own program i really hope distributing files won't be this much of a nightmare....

    Please become familar with resources at the NetBeans site. There are tutorials and FAQs that cover usage of NB, and how to do things like you're asking.
    See my reply in this thread for more information
    http://forum.java.sun.com/thread.jspa?threadID=5270931&tstart=0

  • Regarding how to find out a program is User Exit/executable

    Hi,
    Can anybody tell me how can we find wether a particular program is used in executable program (or) user exit program?
    One thing we can find out is wether the program type is 'I' or 'R' etc..
    Thanks in advance.
    Thanks,
    Deep.

    Hi...
    See the following links..
    it helps you a lot..
    how can we C the USER_EXITS in Z programs
    how can we find the list of user exits for a transaction
    How to find the active user exits in my client
    How to find user exits for a transaction
    Hope it helps you...
    Let me know if u have any more doubt...
    Reward points if useful......
    Suresh.......

  • Java is pure object oriented programing language or not why?

    please clear
    java is pure object oriented programing language or not why?

    And there is some concepts of object orientation that
    Java not implements like: Operator
    Overloading and Multiple Heritage. But, i think
    that we can live without those features.
    And the sucess of Java is a proof of this.I don't believe that operator overloading and multiple inheritance are required aspects of object programming.

  • Program won't exit when reading in gif?!?

    Hi,
    I have written a class (see code below) that has a single method to read in two gifs, superimpose them, add text and then write the result to a jpeg file.
    I test this in a simple main method (again see below). javac test.java, java test
    The problem is that the program will not terminate. The final System.out.println() command is displayed in the terminal. It has to be halted with ctrl+c.
    I have traced the problem to the image being read in! If I comment out the images being read in - in the MapMaker constructor (also commenting out where the images are used) - the program terminates correctly.
    There are no exceptions flying around either!
    Any ideas? I guess some system resource isn't being cleared, but don't know how to do this!
    I can't use System.exit() because this class will be used in a .jsp page that will use the jpeg created!
    Thanks in advance
    Matt
    MapMaker.java:
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.image.codec.jpeg.*;
    import java.awt.image.BufferedImage;
    import java.awt.image.DataBuffer;
    import java.awt.geom.AffineTransform;
    import java.io.*;
    import javax.swing.*;
    import java.awt.MediaTracker;
    import java.awt.Canvas;
    public class MapMaker extends Canvas implements java.io.Serializable{
    private Image arrow;
    // Read in the 2 .gif files of the arrow and the map
    public MapMaker() {
    // When commenting out these lines, the program works fine
    arrow = Toolkit.getDefaultToolkit().getImage ("arrow2.gif");
    try {
    MediaTracker tracker = new MediaTracker(this);
    tracker.addImage(arrow, 0);
    tracker.waitForID(0);
    } catch (InterruptedException e) {
    System.out.println("Interrupted exception caught ");
    e.printStackTrace();
    // createMap generates a .jpg file fo the map with an
    // arrow and wind direction
    public void createMap() {
    // Create a new Buffered image and associated Graphics 2D object
    // Draw to the Graphics 2D object
    BufferedImage bi = new BufferedImage(200,200,BufferedImage.TYPE_INT_RGB);
    Graphics2D big = bi.createGraphics();
    // Set the rendering hints
    big.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    big.setRenderingHint(RenderingHints.KEY_RENDERING,
    RenderingHints.VALUE_RENDER_QUALITY);
    big.setBackground(Color.white);
    big.clearRect(0, 0, 200, 200);
    // Here I would add the images to big
    // Add text
    big.setFont(new Font("Dialog", Font.BOLD, 12));
    big.setColor(Color.green);
    big.drawString("12", 138, 128);
    try {
    // write the buffered image to a jpg file
    File file = new File("test.jpg");
    FileOutputStream out = new FileOutputStream(file);
         // encodes bi as a JPEG data stream
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
    param.setQuality(1.0f, false);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(bi);
    out.close();
    } catch (Exception ex) {
    System.out.println("Failure to write JPEG file");
    return;
    } // createMap
    // This tests the above class
    import MapMaker;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.math.BigDecimal;
    public class test {
    public static final void main( String args[] ) {
    try{
    System.out.println("Making new MapMaker object");
    MapMaker mapMaker = new MapMaker();
    System.out.println("Making new map");
    mapMaker.createMap();
    System.out.println("Finished making the new map");
    catch (Exception e){
    System.out.println("Top level exceptions\n");
    e.printStackTrace();
    System.out.println("All the way");
    return;
    }

    If anyones interested. It turns out that this is a feature!
    When windows resources (i.e. reading in an image) are used. Java programs won't exit automatically.
    They have to be closed with System.exit()

  • FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2

    HI,
    I am using the below Function Module
    gv_ap = '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox'
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'                 
          EXPORTING                                       
               commandname                   = 'Z_LS'     
               additional_parameters         = gv_ap      
          TABLES                                          
               exec_protocol                 = t_fich     
          EXCEPTIONS                                      
               no_permission                 = 1          
               command_not_found             = 2          
               parameters_too_long           = 3          
               security_risk                 = 4          
               wrong_check_call_interface    = 5          
               program_start_error           = 6          
               program_termination_error     = 7          
               x_error                       = 8          
               parameter_expected            = 9          
               too_many_parameters           = 10         
               illegal_command               = 11         
               wrong_asynchronous_parameters = 12         
               cant_enq_tbtco_entry          = 13         
               jobcount_generation_error     = 14         
               OTHERS                        = 15.        
    with this folder '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox' return the error:
    /nfs/ficheiros/FicheiroExtraccaoSIF/outbox not found and
    External program terminated with exit code 2
    but if i map other directory the function return the files and folders that directory have.
    Anyone could help me.
    Thanks and Regards.
    Eduardo Paiva

    Hi,
    Yes i have read access to this directory and the command 'Z_LS' exists.
    Best Regards,
    Eduardo Paiva

  • Error Message: External program terminated with exit code 2

    Hi ALL
    We are doing REORG tablespace in DB13 and i am getting below error message. Please help us to resolve the issue.
    20100430     113234     DB6PM     000     Reorg_Tbspc:Command DB6CLP failed on server
    20100430 103959 DB6PM 000 Reorg_Tbspc:Exitcode:Error
    20100430 103959 DB6PM 000 Reorg_Tbspc:ERRORMESSAGE: An SQL error occured. Will print output of the command
    20100430 103959 DB6PM 000 Reorg_Tbspc:External program terminated with exit code 2
    20100430 103959 DB6PM 000 REASON=C call failed
    Regards
    K.Gunasekar
    Edited by: KGUNASEKAR on Apr 30, 2010 6:55 AM

    Exitcode 2, if returned from the OS, means "No such file or directory". Note that as of SAP kernel release 7, you usually do not have DB6CLP any more. Can you check if the executable is available in the SAP exe directory ?
    If running SAÜ kernel 700 or higher, I suggest to apply a recent SP level.
    Malte

  • Can I use onboard variables for load program delay?

    I try to use the onboard function "load program delay" together with onboard variables. The program works and I could confirm with "read variable.flx" that the value has changed.
    Versions: lv6x, flexmotion 5x

    I am not sure I understand what the problem is. An onboard probgram using variables should work without any issues if you set a delay within it using the load program delay function.

  • Tcode or program in which exit EXIT_SAPLCK21_002 is used

    Hi all,
    Can anyone please tell the Tcode or Program in which exit
    EXIT_SAPLCK21_002 ( enhancement COPCP005) is being used.
    Regards,
    sudha

    Hi,
    Check CO01, CO02, COR1, COR2
    Please see the documentation below,
    Develop Enhancements for Material Costing
    The following SAP enhancements are available for the area Cost Estimate with Quantity Structure:
    Costing Reports (SAPLXCKA)
    Costing Production Resources and Tools (COPCP003)
    Material Valuation with Cross-Company Costing (COPCP001)
    Costing Bulk Materials (COPCP004)
    Valuation Price for Materials from User Exit (COPCP005)
    1. Costing Reports: SAPLXCKA
    Here you can create your own reports for displaying cost estimates with quantity structure or activate the example reports in the standard system.
    This enhancement contains the following components:
    EXIT_SAPLCKAZ_001 Display/print itemization
    This enhancement contains example program code from SAP that you can modify and use for your own enhancement, or activate directly as a report for the itemization.
    EXIT_SAPLCKAZ_002 Display/print cost components
    This enhancement contains example program code from SAP that you can either modify and use for your own enhancement, or activate as a report for the cost components.
    EXIT_SAPLCKAZ_003 Display/print cost components and itemization
    This enhancement does not contain example program code.
    In the cost estimate with quantity structure you access the reports with Costs -> Display user exit. The report refers to the first cost component view listed. If you want to see the costs with reference to another cost component view, choose Settings -> Cost display and choose the desired report under Select view.
    You can display your own reports in the information system by adding them to the report list for product costing.
    See also:
    Check report list for material cost estimate
    2. Costing production resources/tools: COPCP003
    This enhancement contains the component EXIT_SAPLCK01_001.
    The costs for production resources and tools are calculated as a flat rate within production overhead.
    This enhancement enables you to plan the costs for production resources in costing with quantity structure in different ways. Here you can specify how the production resources are to be costed.
    In the cost component structure, the production resources can be shown in separate cost components.
    This enhancement contains example program code from SAP that you can modify or use as is.
    3. Material valuation with cross-company costing:
    COPCP001
    This enhancement contains the component EXIT_SAPLCK21_001.
    Here you can enter the prices for valuation of a material that is transferred between company codes.
    You have the following options for the valuation of materials that are transferred between company codes:
    You are using the standard system without cross-company costing. In this case the system uses a price in the material master record in accordance with the valuation strategy. The material is treated as if it were externally procured.
    You activate cross-company costing. In this case the material is recosted in the other company code or transferred according to the transfer control ID.
    If you have not activated cross-company costing, you can use this enhancement to define alternative prices for valuation of a material that is transferred between company codes. That is, this enhancement allows you to specify which price should be used instead of the price from the material master record.
    In include LXCKAF)) you can find an example program code. However, this code example can not be directly copied and used
    4. Costing Bulk Materials: COPCP004
    This enhancement contains the component EXIT_SAPLKKEX_001.
    You can use this enhancement to plan the costs for bulk materials and show in the cost element itemization.
    If the indicator Bulk material is set in the material master, the indicator Relevant to costing in in the BOM does not accept input for the item. The enhancement allows you to determine the costing relevancy. The items with the bulk materials indicator at item level of BOM are also included as relevant to costing.
    This enhancement contains example program code from SAP that you can modify or use as is.
    5. Valuation Price with Valuation Strategy U: COPCP005
    This enhancement contains the component EXIT_SAPLCK21_002.
    You can use this enhancement to specify prices for valuation of materials if you want to use valuation strategy U (valuation with USER EXIT) for material valuation to find a price for the materials.
    This enhancement does not contain any example program code from SAP.
    Activities
    To activate the SAP example reports (the procedure is similar forthe other enhancements):
    1. Create a new project or use an existing one.
    2. Set the indicator SAP enhancements and choose Change.
    3. Enter SAPLXCKA as the SAP enhancement and choose Save.
    4. Set the indicator Enhancement components and choose Change.
    5. Position the cursor on the enhancement component EXIT_SAPLCKAZ_001 and choose Edit -> Use SAP source code.
    6. The system asks whether you want to create ZXCKAU01. Answer Yes.
    7. Maintain the attributes.
    8. Save the program and choose Back.
    9. Position the cursor on the enhancement component EXIT_SAPLCKAZ_002 and choose Edit -> Use SAP source code.
    10. The system asks whether you want to create ZXCKAU02. Answer Yes.
    11. Maintain the attributes.
    12. Save the program and choose Back.
    13. Activate the project.
    14. To display the reports, you must perform costing again.
    Further notes
    Unlike modifications, enhancements are always upgrade-compatible because they are implemented in a name range reserved for the customer rather than in the SAP original.
    The general procedures for creating enhancements can be found in the enhancement transaction CMOD under Goto -> Online Manual. This takes you to the SAP library where you can find detailed information on customer exits.
    For more information on the above enhancements, see the associated function module documentation.
    Edited by: krishna reddygari on Mar 6, 2008 9:24 AM

  • I am having trouble watching videos and movies. I have updated Adobe Flash Player and Microsoft Silverlight but each time I try to watch something I get the message that I have to install or update these programs... Why is that happening? Can it be fixed?

    I have updated Adobe Flash Player and Microsoft Silverlight but each time I try to watch something I get the message that I have to install or update these programs... Why is that happening? Can it be fixed? How do I fix it? PLEASE HELP!

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • Program terminated with exit code 84

    Hi All,
    We are facing a issue in Production.
    The scheduled jobs for today did not start today
    Using export execution command we have exported the jobs and on completion of the first job we call the second one using the below command in script      
    //Example
    exec('E:
    Program Files
    Business Objects
    BusinessObjects Data Services
    log
    JOB_STAGING_TO_ODS.bat','',1);
    As the schedule did not start the first job today we manually executed the first job , while calling the next job is sequence using the above command we received an error message as stated below
    Program terminated with exit code <84>.
    We have gone live with these jobs for few weeks now.
    It was running fine until today.
    we dont see a problem with the script.
    If this the problem with access revoked to execute a batch file or something of that sort?
    Request all your help in this regard.
    Thanks in advance

    Was this issue resolved for you?
    We are also facing a similar kind of issue..
    Job not executing when scheduled and not able to execute the job using exec command..
    When used print command on the exec, we received the same error message "not able to execute the job" with the same exit code 84..
    Can you please advice us on the same?
    Thanks in Advance!

  • What does "Program ended with exit code: 0" mean in Xcode?

    Hello,
    I am fairly new to programming and I have received the error "Program ended with exit code: 0" in the last few programs I have created. It shows in the output windows after I have ran the program. What does this mean?

    an exit code of 0 indicates no  error. If a program wants to indicate there was something wrong when it exited it will exit with a non-zero value.
    What types of programs are you writing? Normally you see this for command line type programs.

  • Program delay issue

    1. Once or twice a week but not necessarily every week I will turn on my TV and the box will stuck playing a program from an hour before. I will try pushing the Fios TV button to go to live programming and it will flash the correct program info but will then change the info to the earlier program and stay showing the earlier program. Turning the box on and off will do nothing and I will have to unplug and reboot the box to see current programming. I have a Motorola QIP6416-2 hd-dvr. I figure I'm probably going to have to get a new box.
    2. However, I had a newer box when I first had my fios hooked up and had all kinds of issues with it.
    So, I guess I have two questions,
    1. Any suggestions on the program delay issue?
    And
    2. Have they fixed the problems with the sound/etc on the new boxes?
    "If your problem has been solved, please mark it as such. Don't forget to hand out your Kudos!"

    Thank you. I have not tried a 2 channel move, only 1. Hopfully they get the newer boxes fixed. The ability to record 2 programs and watch a third using the buffer is very useful.
    "If your problem has been solved, please mark it as such. Don't forget to hand out your Kudos!"

  • Recent unrequested auto-download of adobe 11 updates included mcafee program download...why??

    Recent unrequested auto-download of adobe 11 updates included mcafee program download...why??

    No idea why, but it's in this routine that it crashes...
    /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewor k/Versions/Current/Plugins/PrintCocoaUI.bundle/Contents/MacOS/PrintCocoaUI
    I've fixed this problem several times by downloading older versions of Safari, but EVERY time my computer updates, I have to manually download and install an old version and it's getting really tedious.
    I only use Software Update to see what is needed, then get them for real via...
    http://www.apple.com/support/downloads/
    That way I can wait a week or so, check the forums for potential problems, and get Permissions & such in order before installing.

Maybe you are looking for