Cannot start JavaFX Task using Thread.start()

Well I am currently studying JavaFX and as a total beginner(but not in Java) I started reading the official tutorials in Java and I'm currently studying Concurrency in JavaFX. and I tried to create my first JavaFx Task Object and start it. This what I have tried so far
package concurrency;
import javafx.concurrent.Task;
public class JavaTaskClass {
      * @param args
     public static void main(String[] args) {
          //create task object
          Task<Integer> task = new Task<Integer>(){
               @Override
               protected Integer call() throws Exception{
                    System.out.println("Background task started...");
                    int iterations;
                    for(iterations = 0; iterations < 10000; iterations++){
                         if(isCancelled()){
                              break;
                         System.out.println("Iteration " + iterations);
                         Thread.sleep(3000);
                    return iterations;
          //start the background task
          Thread th = new Thread(task);
          th.setDaemon(true);
          System.out.println("Starting background task...");
          th.start();
but the task doesn't start. I don't see any messages in my console. Is there something I missed?
Edited by: 979420 on Jan 1, 2013 10:02 PM
Edited by: 979420 on Jan 1, 2013 10:02 PM
Edited by: 979420 on Jan 1, 2013 10:03 PM
Edited by: 979420 on Jan 1, 2013 10:49 PM

Tasks are meant to be run in the context of a JavaFX application, like in the example below:
import javafx.application.Application;
import javafx.concurrent.Task;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import java.io.IOException;
public class TaskApp extends Application {
  public static void main(String[] args) { launch(args); }
  @Override public void start(final Stage stage) throws IOException {
    //create task object
    Task<Integer> task = new Task<Integer>(){
      @Override
      protected Integer call() throws Exception{
        System.out.println("Background task started...");
        int iterations;
        for(iterations = 0; iterations < 10000; iterations++){
          if(isCancelled()){
            break;
          System.out.println("Iteration " + iterations);
          Thread.sleep(3000);
        return iterations;
    //start the background task
    Thread th = new Thread(task);
    th.setDaemon(true);
    System.out.println("Starting background task...");
    th.start();
    stage.setScene(new Scene(new StackPane(), 200, 100, Color.BLANCHEDALMOND));
    stage.show();
}Also your code was setting the task thread as a daemon thread. The Java Virtual Machine exits when the only threads running are all daemon threads. So once your main routine finished (which would be really quickly), the program would just exit without doing anything much. Note that, in your example, even if you made the Task thread a non-daemon thread, it still doesn't work (likely because the Task class has some reliance on the JavaFX system being initialized). For your simple background process you could skip Task and just use a Runnable or a Callable (which doesn't require JavaFX and hence would work in a non-daemon thread invoked from main), but I guess it's just an experiment.

Similar Messages

  • Start JavaFx project using a Java class

    After hours of searching, I still can't solve this problem:
    I have a pure JavaFx project but need to start it with a Java class.
    It used to work with the Interface method, but (I guess) since the javafx update to 1.3, the JavaFx code starts executing (the console outputs FX.println statements) but the stage(s) never become visible.
    Activator.java
            final Context context = FXLocal.getContext();
            final FXClassType instance = context.findClass("javafx.Launcher", this.getClass().getClassLoader());
            final ObjectValue obj = (ObjectValue) instance.newInstance();
            final LauncherInterface l = (LauncherInterface)obj.asObject();
            l.run();LauncherInterface.java
    public interface LauncherInterface {
        public void run();
    }Launcher.fx
    public class Launcher extends LauncherInterface {
        public override function run() {
    // [...] init stuff
            MainWindow.createWindow();
    }I'm using java version "1.6.0_21", javafx 1.3.0_b412, windows 7
    any ideas?
    thanks alot

    There is someting wrong in my answer that on the FX side you can keep your code but on the java side the call have to be defered to the javaFX container like that:
    com.sun.javafx.runtime.Entry.deferAction(
                    new Runnable() {
                        @Override
                        public void run() {
                              //Create javaFX Stage
                );The class is in javafxrt.jar

  • Cannot start RAC DB using srvctl start database

    Hello Fellows,
    We used to have a 10.1.0.4 RAC DB on top of CRS 10.1.0.4 on top of Sun cluster 3.1 on both Sun Solaris SPARC 64-bit 5.9 nodes.
    We :
    - Unregisted the current RAC DB from the 10.1.0.4 CRS.
    - Removed the CRS 10.1.0.4 permanently and cleanly
    - Installed a new Clusterware 10.2.0.1 and patched to 10.2.0.4 + patch 8705958.
    - CRS servcies are healthy and up :
    $ crs_status.sh
    ora.tibisdb1.LISTENER_TIBISDB1.lsnr ONLINE ....etc for all other services
    Now we are trying to upgrade the RAC DB from 10.1.0.4 to 10.2.
    When i started the DBUA it i chose the cluster mode and then DBUA tried to startup both DB instances but it failed. To reproduce this, i registed the databse TIBIS with the 2 instances to the CRS and then tried to startup the DB but it failed:
    $ crs_status.sh
    ora.TIBIS.TIBIS1.inst OFFLINE OFFLINE
    ora.TIBIS.TIBIS2.inst OFFLINE OFFLINE
    ora.TIBIS.db OFFLINE OFFLINE ...etc
    $ srvctl start database -d TIBIS
    PRKP-1001 : Error starting instance TIBIS1 on node tibisdb1
    tibisdb1:ora.TIBIS.TIBIS1.inst:
    tibisdb1:ora.TIBIS.TIBIS1.inst:
    SQL*Plus: Release 10.1.0.4.0 ...
    Connected to an idle instance.
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-27504: IPC error creating OSD context
    ORA-27300: OS system dependent operation:IPC init failed with status: 65
    ORA-27301: OS failure message: Package not installed
    ORA-27302: failure occurred at: skgxpcini
    ORA-27303: additional information:libskgxpd.so called
    tibisdb1:ora.TIBIS.TIBIS1.inst:libskgxp10.so should reference real implementation.
    tibisdb1:ora.TIBIS.TIBIS1.inst:SQL> Disconnected
    CRS-0215: Could not start resource 'ora.TIBIS.TIBIS1.inst'.
    PRKP-1001 : Error starting instance TIBIS2 on node tibisdb2
    CRS-0215: Could not start resource 'ora.TIBIS.TIBIS2.inst
    BTW, i can open the instances fine through SQLPLUS.
    I did a full SRVCTL trace for the command and got the same errors above only.
    I also followed also Note :Note : 814896.1
    1. cd $ORACLE_HOME/rdbms/lib
    2. rename the original library (if exists)
    mv libskgxp10.so libskgxp10.so.old
    3. Relink to configure UDP for IPC
    make -f ins_rdbms.mk rac_on ipc_udp ioracle
    4. Check whether the library exists
    ls -l $ORACLE_HOME/lib/libskgxp10.so
    Same result when try to SRVCTL START DATABASE -D TIBIS
    RECENT CHANGES:
    - Unregisted the current 10.1.0.4 RAC DB from the 10.1.0.4 CRS.
    - Removed the CRS 10.1.0.4 permanently and cleanly
    - Installed a new Clusterware 10.2.0.1 and patched to 10.2.0.4 + patch 8705958.
    - Try to upgrade/register the 101 RAC DB to 10.2 .
    O/S DETAILS:
    $ uname -a
    SunOS tibisdb1 5.9 Generic_122300-29 sun4u sparc SUNW,Sun-Fire-V240
    CLUSTERWARE:
    Sun Cluster 3.1
    Please advise,
    Thank you.
    Feras

    Hello,
    Thanks first for your following up and trying to help. I appreciate that.
    Here is what you suggested :
    $ srvctl start instance -d TIBIS -i TIBIS1
    PRKP-1001 : Error starting instance TIBIS1 on node tibisdb1
    tibisdb1:ora.TIBIS.TIBIS1.inst:
    tibisdb1:ora.TIBIS.TIBIS1.inst:SQL*Plus: Release 10.1.0.4.0 - Production on Tue Nov 17 08:57:50 2009
    tibisdb1:ora.TIBIS.TIBIS1.inst:
    tibisdb1:ora.TIBIS.TIBIS1.inst:Copyright (c) 1982, 2005, Oracle. All rights reserved.
    tibisdb1:ora.TIBIS.TIBIS1.inst:
    tibisdb1:ora.TIBIS.TIBIS1.inst:Enter user-name: Connected to an idle instance.
    tibisdb1:ora.TIBIS.TIBIS1.inst:
    tibisdb1:ora.TIBIS.TIBIS1.inst:SQL> ORA-00603: ORACLE server session terminated by fatal error
    tibisdb1:ora.TIBIS.TIBIS1.inst:ORA-27504: IPC error creating OSD context
    tibisdb1:ora.TIBIS.TIBIS1.inst:ORA-27300: OS system dependent operation:IPC init failed with status: 65
    tibisdb1:ora.TIBIS.TIBIS1.inst:ORA-27301: OS failure message: Package not installed
    tibisdb1:ora.TIBIS.TIBIS1.inst:ORA-27302: failure occurred at: skgxpcini
    tibisdb1:ora.TIBIS.TIBIS1.inst:ORA-27303: additional information: libskgxpd.so called
    tibisdb1:ora.TIBIS.TIBIS1.inst:libskgxp10.so should reference real implementation.
    tibisdb1:ora.TIBIS.TIBIS1.inst:SQL> Disconnected
    tibisdb1:ora.TIBIS.TIBIS1.inst:
    CRS-0215: Could not start resource 'ora.TIBIS.TIBIS1.inst'.
    $ $ORA_CRS_HOME/bin/crs_stat -p ora.TIBIS.TIBIS1.inst
    NAME=ora.TIBIS.TIBIS1.inst
    TYPE=application
    ACTION_SCRIPT=/oracle/product/10.1.0/db_1/bin/racgwrap
    ACTIVE_PLACEMENT=0
    AUTO_START=1
    CHECK_INTERVAL=600
    DESCRIPTION=CRS application for Instance
    FAILOVER_DELAY=0
    FAILURE_INTERVAL=0
    FAILURE_THRESHOLD=0
    HOSTING_MEMBERS=tibisdb1
    OPTIONAL_RESOURCES=
    PLACEMENT=restricted
    REQUIRED_RESOURCES=ora.tibisdb1.vip
    RESTART_ATTEMPTS=5
    SCRIPT_TIMEOUT=600
    START_TIMEOUT=0
    STOP_TIMEOUT=0
    UPTIME_THRESHOLD=7d
    USR_ORA_ALERT_NAME=
    USR_ORA_CHECK_TIMEOUT=0
    USR_ORA_CONNECT_STR=/ as sysdba
    USR_ORA_DEBUG=0
    USR_ORA_DISCONNECT=false
    USR_ORA_FLAGS=
    USR_ORA_IF=
    USR_ORA_INST_NOT_SHUTDOWN=
    USR_ORA_LANG=
    USR_ORA_NETMASK=
    USR_ORA_OPEN_MODE=
    USR_ORA_OPI=false
    USR_ORA_PFILE=
    USR_ORA_PRECONNECT=none
    USR_ORA_SRV=
    USR_ORA_START_TIMEOUT=0
    USR_ORA_STOP_MODE=immediate
    USR_ORA_STOP_TIMEOUT=0
    USR_ORA_VIP=
    $ CRS_HOME/bin/crs_stat -p ora.oradb.oradb1.inst | grep ACTION_SCRIPT
    /usr/bin/ksh: CRS_HOME/bin/crs_stat: not found
    $ $ORA_CRS_HOME/bin/crs_stat -p ora.TIBIS.TIBIS1.inst | grep ACTION_SCRIPT
    ACTION_SCRIPT=/oracle/product/10.1.0/db_1/bin/racgwrap
    $ ls -ltr /oracle/product/10.1.0/db_1/bin/racgwrap
    -rwxr-x--x 1 oracle dba 629 Oct 17 14:23 /oracle/product/10.1.0/db_1/bin/racgwrap
    $ more /oracle/product/10.1.0/db_1/bin/racgwrap
    #!/bin/sh
    # Wrapper script
    ORACLE_HOME=/oracle/product/10.1.0/db_1
    export ORACLE_HOME
    ORACLE_BASE=/oracle/product/10.1.0/db_1
    # export ORACLE_BASE if it is set
    if [ ! -z "$ORACLE_BASE" ]
    then
    export ORACLE_BASE
    fi
    PATH=$ORACLE_HOME/bin:/usr/bin:$PATH
    export PATH
    # environment variable need to be set for executing
    # lsnrctl, agentctl and sqlplus
    ORA_RACG_EXEC_ENV="LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH"
    export ORA_RACG_EXEC_ENV
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    #_USR_ORA_DEBUG=1
    #export USRORA_DEBUG
    $ORACLE_HOME/bin/racgmain "$@"
    status=$?
    exit $status
    $Regarding the Oracle SR, they replied yesterday and requested logs..etc. Waiting for their feedback while trying to resolve this.
    Please advise.
    Thanks,
    Feras

  • Background task using Thread? Newbie

    I have a class where in it calls two different methods. However, one method requires a process over the internet.
    public class MyServiceClass {
    private DBService dbService;
    private EmailService emailService;
    public static void main(String params[]){
    dbservice.insertdata(); //insert data to DB
    emailService.sendEmail(); //sends email
    }The process of the class takes time when running the emailService because it contacts the Internet. But the dbService is pretty quick. Do you have any idea how can I run the emailService independently that the class doesn't wait for the emailService to finish? Thanks

    bobgateaux wrote:
    To launch new thread for email is very dangerous as of the risk that the thread can escape onto the internet and appear as virus. Always play safe by keeping the email inside the only one thread of the program - this way security is much improved.
    If still worried about time taken to send email, please try to put Thread.sleep(5000) after email call - this will wait for email call to finish nicely and guarantee that program will then continue in best orderly fashion.
    Best regards,
    Bob Gateaux.Do threads escape you on a regular basis?
    How do you have so many posts here yet show you know nada? I would think even trolling for that many posts would have lead to you picking up something, anything that might be usefull.
    JSG

  • Is it possible to edit a MDT Task Sequence after starting a deployment, between Hyper-V snapshots?

    Using a Hyper-V VM, I take snapshots of my base image build between major sections (automatic updates, application installation, scripts and extras, etc.) with the intention of being able to go back to that area and look at it for troubleshooting's sake. 
    Each of these snapshots is manually taken during a pause in my MDT task sequence (using LTISuspend).  I would like to be able to roll back to these snaphots make edits to the task sequence (obviously to sections that haven't yet run), then resume and
    see the changes implemented - but I don't know where the task sequence file(s) resides on VM being imaged, or if that can be changed after kicking it off at the very start of the build. 
    Is it possible to replace the task sequence file (and any other necessary files) that are cached locally on the VM during the imaging process?  Where are those files located?  Or any other way to implement changes to my task sequence so I wouldn't
    have to start the image build completely from scratch?
    This build takes about 6 hours.  Having to make even the slightest modification causes me to lose an entire day, so this would be golden even if I have to manually edit certain files!

    Hi,
    Based on my known, you cannot edit the task sequence after starting the deployment.
    However, I suggest you ask this issue in MDT forum for more professional solution:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=mdt
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn
    from your interaction with us. Thank you for your understanding.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Exception starting server when using wlserver Ant task

    Hello All:
    When attempting to start my server using the wlserver Ant task, i receive the following error:
    [wlserver] java.lang.NoClassDefFoundError: weblogic/Server
    [wlserver] Exception in thread "main"
    [wlserver] Error in server execution
    my snippet is as follows:
    <target name="start-server">
    <wlserver beahome="C:\bea" weblogichome="c:\bea\weblogic81" host="localhost"
                        port="7001" username="weblogic" domainname="mydomain" password="weblogic"
                        servername="myserver" action="start"/>
    </target>
    It seems as if it should work fine. Anybody have any solutions? Thanks in advance.
    Ricky

    Ricky,
    You have to add the weblogic JARs to the classpath of the wlserver task.
    add something similar to the following (bold text are additions):
    <path id="classpath.weblogic">
    <fileset dir="c:/bea/weblogic81/server/lib">
    <include name="weblogic_sp.jar" />
    <include name="weblogic.jar" />
    <include name="webserviceclient.jar" />
    </fileset>
    </path>
    <target name="start-server">
    <wlserver beahome="C:\bea" weblogichome="c:\bea\weblogic81" host="localhost"
    port="7001" username="weblogic" domainname="mydomain" password="weblogic"
    servername="myserver" action="start" classpathref="classpath.weblogic"/>
    </target>
    --Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Just installed Firefox 3.6. Firefox will not start and Firefox safemode does not start either. Using Task manager I do not see if started either. If I create a new profile and start from that window, Firefox starts up. I see no error windows/messages. I d

    Just installed Firefox 3.6. Firefox will not start and Firefox safemode does not start either. Using Task manager I do not see if started either. If I create a new profile and start from that window, Firefox starts up. I see no error windows/messages. I do have it listed in my Firewall as an exception program with Permit All. What is happening?
    == This happened ==
    Every time Firefox opened
    == After removing Firefox and Reinstalling it. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8)

    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See also [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]

  • Can't install:  "this disk cannot be used to start up your computer"

    After making sure that my current startup disk for 10.5 was imaged to another hard drive, I inserted the Snow Leopard install disk and double-clicked the Install icon. Everything worked fine till I got to "Select the disk where you want to install Mac OS X." All of the disk partitions had warning triangles, including the one for my original startup disk, which has worked perfectly for the 10.5 pre-installed on my new iMac (identifier 9,1). When I click on the icon for this drive, the warning message below states "Mac OS X cannot be installed on 'iMac HD', because this disk cannot be used to start up your computer." Obviously that's not true, since that's where the OS is installed. No other programs were running except Finder.
    I used Disk Utility to check the disk and repair permissions: no change in the installation program's message. I quit the installation program and reinserted the DVD. It certainly does a lot of churning of the DVD before you ask it to do anything. With all external hard disks disconnected, it still gives the same error message.
    Where do I go from here? I thought Snow Leopard was "The world's most advanced operating system. Finely tuned." It can't even install itself and recognize a bootable internal hard drive on an iMac.

    GasMan4932 wrote:
    When I click on the icon for this drive, the warning message below states "Mac OS X cannot be installed on 'iMac HD', because this disk cannot be used to start up your computer." Obviously that's not true, since that's where the OS is installed.
    How did you partition this drive, if you did that? Does it contain start up or utility partitions for any other OS (for instance Linux)? There have been reports that the "cannot be used to start up your computer" message will appear if a third party utility was used to create a 'triple boot' system or such, apparently because SL is picky about the format GUID partition scheme table info & how partitions are allocated space on the drive by other formatting/partition methods.
    For some users with these partitions, the fix has been as simple as "tickling" (slightly changing) the partition size of some partition with Disk Utility, which apparently updates the GUID partition scheme table info so that the SL installer accepts it as safe to use with SL.( In this sense, the message may be trying to say the installer thinks the disk can't be used to reliably start up your computer with SL, not in general.)
    See the discussions topic Cannot install Snow Leopard over 10.5.8 for more about this.

  • Install error : disk cannot be used to start up your computer [or] MediaKit reports partition (Map) too small

    Greetings,
    I am aware that this problem has been discussed, but in long and vague discussions that I had to sift deeply to find an answer. Therefore I am posting a clear message, as this problem can be very troublesome for someone who just received a Mac OS installation disk and cannot install it.
    Situation : you cannot install/update your new system because the installer does not consider your volume.
    Error message : this disk cannot be used to start up your computer.
    Version française : Ce disque ne peut pas être configuré pour démarrer votre ordinateur.
    Also discussed below error: "MediaKit reports partition (Map) too small"
    Note : although this occurred with a Snow Leopard (10.6) install DVD, it can alo occur with Lion (10.7) according to discussions on Apple web site.
    IF YOUR CONDITIONS ARE AS FOLLOWS :
    - You are using an official Apple installation DVD of Mac OS 10.6 (Snow Leopard) [or 10.7 Lion] or an official download/upgrade of those systems.
    - Your main Mac partition scheme is in GUID as it should be (check with Disk Utility). That partition contains a Mac system that can start-up.
    - Your volume format is: Mac OS Extended (journaled) [the format should not be Case Sensitive.]
    - You have the hardware requirements to install Mac OS 10.6 (Intel processor; internal or external DVD drive or a linked DVD drive; 1 GB of RAM; a screen controlled by your computer graphics card; at least 5 GB space on the hard disk or 7 GB if you install all components).
    - Using Disk Utility, you of course tried the disk Repair Tool and the Repair Permissions tool.
    - Your hard disk does not have a file called Backups.backupdb (if it does, this means Time Machine has once used this hard disk for its back-ups). Anyhow, if it were the case, the installation would give a different error message (with the word TimeMachine). This file may block the installation: Apple Support suggest to place it in the garbage, *without* deleting it, and placing it back on the disk later. Mind you, if you do not use this hard disk as such to save your Time Machine back-ups, you can simply delete this file.
    HOW TO FIX :
    1. Boot with the 10.6 install DVD (Tip: you can either select Mac 10.6 as the boot DVD in your Start-up Preferences or simply press down c during the start-up).
    2. Above the install screen, you have a Utilities tab from where you can run Disk Utility. Select your hard disk and select the Partition tab. Resize the primary Mac partition (don't add a new one) by decreasing it by about 5 GB.
    It will look like this http://i.imgur.com/jHTbr.jpg
    ( That image shows only one partition, but the same principle applies even if you have two or more partitions on your disk.)
    Also see the official Apple how to: http://support.apple.com/kb/TS3926
    Version française: http://support.apple.com/kb/TS3926?viewlocale=fr_FR
    3. Commit the change by hitting "Apply"
    3.b. If you get the error "MediaKit reports partition (Map) too small", this is a rare error where the partition that follows (for example Bootcamp) is slightly overlapping your main Mac partition. You will need to reduce that other following partition. Once you have reduced the other partition, you will probably need to return to step 2 and 3 and try again.
    [ For example, in my case, I had resized my Bootcamp with CampTune software and it would seem that the file system ended-up somehow larger than the actual partition container. I simply asked CampTune to reduce the partition a bit (barely 2 GB) and that fixed it.]
    4. Reboot, again into the 10.6 install DVD.
    5. You can then install 10.6.
    6. Once 10.6 is installed, use the Disk Utility on the desktop (you can boot into the primary HD at this point) to resize the primary partition back to its original or maximum size.
    SOURCE (main fix): http://forums.macrumors.com/showthread.php?t=774410 [and] http://support.apple.com/kb/TS3926
    SOURCE (explaination for MediaKit error): some Apple discussion post.
    nb: in my case, it was on a MacBook Pro (late 2008).

    GasMan4932 wrote:
    When I click on the icon for this drive, the warning message below states "Mac OS X cannot be installed on 'iMac HD', because this disk cannot be used to start up your computer." Obviously that's not true, since that's where the OS is installed.
    How did you partition this drive, if you did that? Does it contain start up or utility partitions for any other OS (for instance Linux)? There have been reports that the "cannot be used to start up your computer" message will appear if a third party utility was used to create a 'triple boot' system or such, apparently because SL is picky about the format GUID partition scheme table info & how partitions are allocated space on the drive by other formatting/partition methods.
    For some users with these partitions, the fix has been as simple as "tickling" (slightly changing) the partition size of some partition with Disk Utility, which apparently updates the GUID partition scheme table info so that the SL installer accepts it as safe to use with SL.( In this sense, the message may be trying to say the installer thinks the disk can't be used to reliably start up your computer with SL, not in general.)
    See the discussions topic Cannot install Snow Leopard over 10.5.8 for more about this.

  • I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change

    I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change.

    http://tinyurl.com/3hs3g2u

  • Mac OS X cannot be installed on "Macintosh HD", because this disk cannot be used to start up your computer

    I have a macbook pro with snow leopard on it. I am giving it away to a family members, but would like to erase the disk before giving it away. When I put my snow leopard dvd in, and click "install", I get a screen asking me to select the hard drive to install on. When I click the only one listed: "Macintosh HD", I get the message:
    Mac OS X cannot be installed on "Macintosh HD", because this disk cannot be used to start your computer
    If I try to boot from the dvd, my mac just hangs on the gray screen that shows the apple logo. Basically I put the dvd in, shut down the computer, when I turn it on, I hold the "C" key, and it just hangs.
    How should I go about erasing everything on the computer, and re-installing the OS, I just want it to look like it did when it came from the factory. Any help would be much appreciated.
    Note: I lost my original install dvd, so I called Apple and asked for a replacement, they charged me $20 and sent the Snow Leopard disk that I am using as my replacement.
    Thanks.

    It's possible you got a disk from Apple you can't use. What you should have gotten were gray disks based on the Mac's serial number so you would get disks which were identical to the ones it came with.
    If the disk you received has a picture of a Snow Leopard on it, then they sent you a 10.6.3 retail disk, which will not have any of the bundled iLife apps on it.
    Much more important is the point release. If your Mac originally came with 10.6.4 or some later point release of Snow Leopard, then 10.6.3 will not install on that Mac. The necessary hardware drivers are not on the retail disk.

  • Use of CALL FUNCTION - STARTING NEW TASK parameter_list.

    SELECT strt_code
                 city_code
                 commu_code
                 regiogroup
          INTO TABLE gt_adrstreet1
          FROM adrstreet
          FOR ALL ENTRIES IN gt_street_district
          WHERE strt_code EQ gt_street_district-strt_code.
    To optimize the performance of teh above query I am planning to use call function CALL FUNCTION - STARTING NEW TASK .....
    by spliting the above internal table gt_street_district into two internal tables and use the value of each internal table into two different queries and these queries will be put in call function - start new task ....so that these queries are run in different workprocess and thus improve the performance of the program.
    Can you please let me know if this would be a good option and also how to implement the same.
    Thanks.....

    >To optimize the performance of teh above query I am planning to use call function CALL FUNCTION - STARTING NEW TASK .....
    nonsense! You should not try parallel processing for a non-optimized SELECT statement.
    Better add the first key field of the WHERE condition as said above and check
    + whether the driver table is empfty
    + and whether there are duplicated entries
    ... And it is also a good idea to really use the SINGLE RECORD BUFFER, therefore you must write
    field-symbol:  <fs>  type ...
    LOOP AT gt_street_district ASSIGNING <fs>
       SELECT *
                    INTO TABLE gt_adrstreet1
                    FROM adrstreet
                    WHERE counrty =
                     AND       strt_code = <fs>-strt_code.
    ENDLOOP.
    Then it will be extremely fast!

  • How can I use MS Windows 7 Task Scheduler to start Cisco Jabber?

    Hello Jabber community,
    I have a need to automatically start Cisco Jabber client on my Desktop and have it connect to a SIP address of our CTX, then followed by the running of a recording application. The problem is I don't know the Jabber CLI to use to start it up and connect to the SIP address.
    Can anyone please advise how to do this?
    cheers,
    -guy                  

    Hi Guy,
    I think you should probably open up a TAC case and get the TAC engineer to walk you through how to deploy Jabber.
    When you say "SIP url", I presume you mean the CUPS/Webex server address. This address can be added to Jabber in 3 ways:
    1. Transforming the MSI using the Orca tool.
    2. Using msi install parameters
    3. Entering the value when you run Jabber first.
    Using a bat file in conjunction with task scheduler will not work and is not a supported way of doing. The 3 other options are also much easier to implement.
    Thanks,
    - Colin

  • Question on parallel processing using the STARTING NEW TASK keyword

    I have the following code in a program on my development system:
    call function 'FUNCTION_NAME'
        starting new task ld_taskname
        performing collect_output on end of task
          exporting
            pd_param1       = ld_param1
          tables
            pt_packet       = lt_packet.
    You'll notice in the code above I left out the following part of the function call:
    DESTINATION IN GROUP group
    In my one-server development system the topmost code executes fine, but I'm getting a 'REMOTE FUNCTION CALL ERROR' when I execute this in a multi-server Q&A system. 
    My question: Is the missing 'DESTINATION' keyword required in order for this technique to work in a multi-server environment or is it optional keyword?  I made the assumption that since it worked in my development environment that without the 'DESTINATION' addition the system simply used the current logged on system to start the new processes.
    Any input appreciated.
    Thanks,
    Lee

    Hi Lee,
    Just take F1 help on CALL FUNCTION key word and go to the variant
    CALL FUNCTION func STARTING NEW TASK task
                  [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
                  parameter_list
                  [{PERFORMING subr}|{CALLING meth} ON END OF TASK].
    This gives you very clear information about this Key word.
    No one would give you better information better than this, i hope
    Cheers
    Ram

  • Return Code value using 'starting new task' and 'wait until'

    I'm having a minor issue with some return code values in my ABAP.
    This is what part of it used to look like before I modified it:
    With Code in version 1, the sy-subrc was not always zero, sometimes it would be 4.
    That was fine, and my abap would do something based on the non-zero RC.
    had a need to implement an RFC timeout, the only way I could see to do it was to use 'starting new task' etc as seen in Version 2.
    However, with my changes, sy-subrc is always zero.
    The ABAP runs fine but I know that sy-subrc should sometimes be 4, even when it returns within the allotted 60 seconds.
    Maybe I've coded it incorrectly.
    Can someone point me in the right direction?
    #>> Start of VERSION 1
      call function 'MY_FUNCTION_MODULE'
           destination RFCDEST
           tables
                orders_list          = t_orders_packet
                apo_orders_list      = t_apo_orders
                apo_resources        = t_apo_resources
           exceptions
                COMMUNICATION_FAILURE    = 1 MESSAGE MSG_TEXT
                SYSTEM_FAILURE           = 2 MESSAGE MSG_TEXT
                NO_ORDERS_SUPPLIED       = 3
                NO_PEGGED_ORDERS_FOUND   = 4
                ORDERID_CONVERSION_ERROR = 5
                OTHERS                   = 6.
    if sy-subrc is initial.
      * do some stuff as RC was 0
    else.
    * log non-zero return code etc
    endif.
    * << End of Version 1

    And now Version 2.
    I didn't put this into the 1st post as the formatting goes bonkers.
    #>> Start of VERSION 2
      call function 'MY_FUNCTION_MODULE'
           destination RFCDEST
           starting new task 'taskname'
           performing receive_result on end of task
           tables
                orders_list          = t_orders_packet
                apo_orders_list      = t_apo_orders
                apo_resources        = t_apo_resources
           exceptions
                COMMUNICATION_FAILURE    = 1 MESSAGE MSG_TEXT
                SYSTEM_FAILURE           = 2 MESSAGE MSG_TEXT
                NO_ORDERS_SUPPLIED       = 3
                NO_PEGGED_ORDERS_FOUND   = 4
                ORDERID_CONVERSION_ERROR = 5
                OTHERS                   = 6.
      WAIT UNTIL results_received = 'X' UP TO 60 SECONDS.
    if sy-subrc is initial.   << Now this is always ZERO
      * do some stuff as RC was 0
    else.
    * log non-zero return code etc
    endif.
    FORM receive_result USING iv_taskname.
      RECEIVE RESULTS FROM FUNCTION 'MY_FUNCTION_MODULE'
           tables
                orders_list          = t_orders_packet
                apo_orders_list      = t_apo_orders
                apo_resources        = t_apo_resources
           exceptions
                COMMUNICATION_FAILURE    = 1 MESSAGE MSG_TEXT
                SYSTEM_FAILURE           = 2 MESSAGE MSG_TEXT
                NO_ORDERS_SUPPLIED       = 3
                NO_PEGGED_ORDERS_FOUND   = 4
                ORDERID_CONVERSION_ERROR = 5
                OTHERS                   = 6.
      results_received = 'X'.
    endform.                    "receive_result
    * < End of Version 2

Maybe you are looking for

  • Right problem with apache and tomcat

    Bonjour; I use a user login "apache" to stop/start Apache and tomcat. Because never launching apache et tomcat as root. But I have the following problem with apache (file error.log) : [Tue May  6 17:26:22 2003] [error] Connection "warpConnection" can

  • SSRS 2008 R2 matrix layout issue

    Hi, I am working on a report where I have to report total number of tickets resolved per Resource in a week and I get the total number of tickets from a different table and issues resolved from another and most of the aggregation I do it in my datase

  • Cannot have acces to a object who extends JInternalFrame

    I have a window who extends the JInternalFrame object: public class MY_CLASS extends JInternalFrame In a menu I try to have a pointer to this window but that doesn't work. MY_CLASS               MyActiveFrame; MyActiveFrame = (JInternalFrame)MyDeskto

  • Where are the mail downloads in Lion?

    I sent some photos from my Iphone to my Mail (lion). I do not have the newest iPhoto for Photo-stream (because Ido not want all my photos on my iPhone - but I'd like only to send 1 way > iPhoto)  But I don't know where the downloaded photos are. If I

  • Making and running excel or word macros

    i would like to make a excel or word macro and run it in labview, but i don´t want to run without view the code directly in labview because i will need to modify the code in order to do differents things depending of the choose that i can make when t