Implementing the Scheduler on Solaris

We are implementing the OBIEE scheduler on Solaris 9. We followed the steps in the bookshelf and run the run-sch.sh file. The scheduler log is created as a zero byte file and the process does not come up. Has anyone implemented the scheduler on Solaris and what steps did they need to take?

For interest, what was the incorrect setting?

Similar Messages

  • What is the best way to implement a scheduled task?

    Dear kind sirs...
    let us say I have a JSF application, and it is working perfectly fine...
    I need the method like
    void DoProcessing()
    *// processing code here*
    to execute everyday at 7AM...
    so what is the best way to do it? I need this to be part of the JSF application... not in a different process... and I want the method to execute at that exact time every day.
    and what are the main steps to do that?
    best regards

    Dear Mr. Chris...
    the reason I am asking about this is because we are required to provide reports for a number of customers by email every day... each report requires retrieving values from a DB.
    I made a test few hours ago about making a thread sleeps and check the time when it wakes up, it works, no problem about that...
    I placed a thread in the servlet context and started it... and it kept working for about an hour writing in the log every 5 seconds... so I guess the idea works...
    but do you think that this way of implementing the scheduler is ok? for I have not done it before and I don't know the cons of such a method.
    thanks for any advice or comment.
    best regards

  • Dump after implementing the Note 741385 Goods receipts up to current date for scheduling agreements

    Hi,
    I implemented the sap note 741385, but while performing GR getting dump
    I unable to figure out why the EXIT_SAPLEINR_003 has been called, please find the following run time error .
    Runtime Errors    
    CALL_FUNCTION_PARM_UNKNOWN
    Except.           
    CX_SY_DYN_CALL_PARAM_NOT_FOUND
    Date and Time     
    10.04.2014 11:39:15
    Short text
    Function parameter "ISU_ENHANCEMENT" is unknown.
    What happened?
    Function module "EXIT_SAPLEINR_003" was called
    with the parameter "ISU_ENHANCEMENT".
    This parameter is not defined.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was
    not caught in
    procedure "WE_BEWERTEN" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Function module "EXIT_SAPLEINR_003" was called
    with the parameter "ISU_ENHANCEMENT".
    This parameter is not defined.
    Missing RAISING Clause in Interface
    Program                            
    SAPLEINR
    Include                            
    LEINRF25
    Row                                
    8
    Module type                        
    (FORM)
    Module Name                        
    WE_BEWERTEN
    Trigger Location of Exception
    Program                            
    SAPLEINR
    Include                            
    LEINRF25
    Row                                
    151
    Module type                        
    (FORM)
    Module Name                        
    WE_BEWERTEN
    Source Code Extract
      122  
    IMPORTING
      123    
    e_vkwrt          
    = pot-vkwrt
      124    
    e_vkwra          
    = pot-vkwra
      125  
    TABLES
      126    
    i_tkomv          
    = tkomv
      127  
    EXCEPTIONS
      128    
    OTHERS           
    = 01.
      129
    IF sy-subrc EQ 0.
      130  
    MODIFY pot.
      131
    ENDIF.
      132
    EXIT.
      133   ENDIF.
      134
      135   MOVE-CORRESPONDING pot TO ekpo.
      136
      137   DATA: p_menge LIKE ekpo-menge,                       
    "1.2 KR
      138    
    p_datum LIKE sy-datum.                         
    "1.2 KR
      139                                                        
    "1.2 KR
      140 * pot-erfmg wird in pot_aufbauen schon entsprechend vorbelegt
      141   p_datum = budat.                                     
    "1.2 KR
      142   p_menge = pot-erfmg.                                 
    "1.2 KR
      143
      144 *- Userexit um Preisfindungsdatum und -menge zu ändern ----------------*
      145 * --> kann auch bei Bestellungen genutzt werden, um das Datum zu ändern
      146 *  nicht aber die Menge (macht keinen Sinn und ist nicht programmiert)
      147   MOVE ett[] TO cett[].
      148
      149 ENHANCEMENT-POINT WE_BEWERTEN_05 SPOTS ES_SAPLEINR.
      150
    >>>>   CALL CUSTOMER-FUNCTION '003'
    152 
    EXPORTING i_ekko  = ekko
    153           
    i_ekpo  = ekpo
    154           
    i_budat = budat
    155           
    i_bldat = i_bldat
    156           
    isu_enhancement = ls_enhancement        
    "IS2ERP
    157 
    TABLES
    xeket   = cett
    158 
    CHANGING  c_datum = p_datum
    159           
    c_menge = p_menge.
    160   REFRESH cett.                                        
    "99794
    161   IF ekko-bstyp EQ bstyp-best.
    162
    p_menge = pot-erfmg.
    "damit wird die Bestellmenge verwendet
    163   ELSE.
    164
    pot-erfmg = p_menge.
    165   ENDIF.
    166
    167 *  MOVE-CORRESPONDING pot TO potkey.
    "Preisfindungsmenge merken
    168 *  READ TABLE ekp WITH KEY potkey.     
    "MWE-HPR-HW-205016
    169   READ TABLE ekp WITH KEY ebeln = pot-ebeln
    170                      
    ebelp = pot-ebelp

    Hi,
    please implement SAP note 916474 - A dump occurs when you call user exit EXIT_SAPLEINR_003
    SAP enhancement MEVME001 contains both
    EXIT_SAPLEINR_001
    EXIT_SAPLEINR_003
    Regards,
    Klaus

  • Implementing the Enterprise Support in Solution Manager

    Hi Experts,
    Can anybody tell me what are the pre requisites to implement Enterprise support in solution manager?
    Also let me know what are steps involved in implementing the enterprise support.
    Thanks in Advance
    Hari

    Hello Hari,
    In order to implement Enterprise Support your organization should registered as a Value Added Reseller(VAR) with SAP. You can get all the required documentation under https://websmp104.sap-ag.de/solutionmanager --> Information for VARs, ASPs and AHPs which is in the left hand side of the page. However, you need to have a S-user ID of the VAR.
    The following are the steps need to perform in implementing the Enterprise Support firmly known as Service Desk for VARs.
    1. SAP Solution Manager basic settings (IMG)
      a) Initial Configuration Part I
      b) Maintain Profile Parameters
      c) Maintain Logical Systems
      d) Maintain SAP Customer Numbers
      e) Initial Configuration Part II
         1) Activate BC Set
             a) Activate Service Desk BC Set
             b) Activate Issue Monitoring BC set
             c) Set-up Maintainance optimizer
             d) Change online Documentation Settings
             e) Activate Solution Manager Services
             f) Activate integration with change request Managemnt
             g) Define service desk connection in Solution Manager
       2)Get components for SAP Service Market place
            a) Get SAP Components
       3) Get Service Desk Screen Profile
           a)generate Business Partener Screen
       4)Copy By price list
           a)activate Service Desk BC Set
           b)Activate Issue Monitoring BC set
           c)Set-up Maintainance optimizer
          f) Business Add-In for RFC Connections with several SAP customers
          g) Business Add-In for RFC Connection of Several SAP Cust. no.
          h) Set-Up SAP Support Connection for Customers
          i) Assign S-user for SAP Support Portal functionality
          j) Schedule Background Jobs
          k) Set-Up System Landscape
          l) Create Key Users
          m) Create Message Processor
    2. Multiple SAP Customer Numbers
          a) Business Add-In for RFC Connections with several SAP customer numbers
          b) Set-Up SAP Support Connection for Customers
    3. Data transfer from SAP
          a) Data Transfer from SAP
    4. Create u201COrganizationu201D Business Partner
    5. Service Provider function (IMG)
          a) Business Add-In for RFC Connections with several SAP customer numbers
          b) Business Add-In for Text Authorization Check
          c) Activate BC Set for Service Provider
          d) Activate Text Types
          e) Adjust Service Desk Roles for Service Provider Menu
    6. Service Provider: Value-Added Reseller (VAR)
          a) Business Add-In to Process Actions (Post-Processing Framework)
         b) Activate BC Sets for Configuration
         c) Create Hierarchy and Product Category
         d) Set-Up Subcategories
         e) Create Business Partner as Person Automatically
         f) Set-Up Automatic Confirmation of Messages
        g) Maintain Business Partner Call Times
        h) Set-Up Incident Management Work Center
    7. Work Center (Web UI)
        a) Activate Solution Manager Services
        b) Assign Work Center Roles to Users
    Hope it helps.
    Regards,
    Satish.

  • Implementing KM scheduler in WD application

    HI All,
    Can anybody guide me on KM schedulers and how to implement the same in WD applications.
    We have a WD application where we are creating PDF forms. Now we need to schedule the process and want to run the job at a regular interval of time. Is KM scheduler the right way to do it?
    Please suggest on how to implement the same.
    Regards,
    Becky.

    Hi Ashok,
    Yes, u were correct. I didnt configured my Index at portal correctly and so was the issue.
    Now I am able to get search-results.
    Thank you.
    Now can you tell me about what all parameters I could get from these search results?
    I mean I tried Standard Search URL of portal :-
    http://serverHost:serverPort/irj/servlet/prt/portal/prteventname/HtmlbEvent/prtroot/com.sap.km.cm.basicsearch?SearchType=seealso&SeeAlsoUri=
    It shows various other details along with what we get using KM API.
    for example: search relevance percentage, seached text etc
    How do I get these parameters from API?
    Thanks and regards,
    Amey Mogare

  • BizTalk Tracking Profile Editor not tracking the data and how to implement the Orchestration as wcf service over SSL

    Hi Ashwinprabhu,
    thank you very much for your answer.
    i have one more query, I have orchestration published as wcf service in IIS and internally orchestration calling one more service , it means orchestration sending a request and getting response back from the service.
    actually we are implementing the copy of that called service through biztalk orchestration for system automatic and tracking failed messages and n/w failures.
    But tracking profiler not tracking the Data.
    And we need to develop the http service as https(Over SSL), we implemented in iis using self 
    signed certificate, it is working just browser for wsdl(in browser), we are not able to test the service in wcf test client, it is giving wsdl error, in wsdl schema reference showing with HTTP only,
    please help me how to resolve the issue.
    Teegala

    First things first, I think it's best to publish only schemas as WCF service for dependency management reasons. That said - WSDL availability is covered in the WCF adapter under the behaviors. If you're using HTTPBasic this may be hard to modify, but using
    WCFCustom allows you to add the WSDL behavior and specify that it should be available via HTTPS.
    As to the BAM, are you using TPE within the orchestration or at the port level?  I'd imagine your TPE tracks the start and end events of your orchestration using the Orchestration Schedule.  If you're fairly confident that the TPE is correct and
    yet don't see BAM data 1) make sure your SQL Agent is running healthy and all jobs look OK and 2) check the TDDS tables in both the message box and the BAMPrimaryImport databases.  These will show you if there has been some sort of sync issue. There's
    even a TDDS errors tables - so check that out.
    Kind Regards,
    -Dan
    If this answers your question, please Mark as Answer

  • How I run a shell script from the scheduler on 10.2.0.2.0 ?

    Hello Oracle People,
    I'd like to run a shell script from the Scheduler in my 10g database.
    Right now it is a simple shell script.
    Eventually it will wrap RMAN commands to back up my DB.
    I wrote a simple pl/sql script to create a job:
    -- cr_job10.sql
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'my_backup_job',
    job_type => 'EXECUTABLE',
    job_action => '/h/oracle/scripts/tst.sh',
    start_date => '06-SEP-07 5.33.00PM US/Pacific',
    repeat_interval => 'FREQ=DAILY',
    end_date => '08-SEP-07 4.00.00PM US/Pacific',
    enabled => TRUE,
    comments => 'My Backup Job');
    END;
    I see no errors when I run the above procedure.
    I checked DBA_SCHEDULER_JOBS and the job is in there.
    The scheduler, though, errors out with an error which I see in a trace file:
    /h/oracle/admin/orcl/bdump/orcl_j000_22396.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /h/oracle/product/10r2
    System name: SunOS
    Node name: sol
    Release: 5.10
    Version: Generic_118855-14
    Machine: i86pc
    Instance name: orcl
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Unix process pid: 22396, image: oracle@sol (J000)
    *** ACTION NAME:(MY_BACKUP_JOB) 2007-09-06 17:33:00.175
    *** MODULE NAME:(DBMS_SCHEDULER) 2007-09-06 17:33:00.175
    *** SERVICE NAME:(SYS$USERS) 2007-09-06 17:33:00.175
    *** CLIENT ID:() 2007-09-06 17:33:00.175
    *** SESSION ID:(140.13520) 2007-09-06 17:33:00.175
    *** 2007-09-06 17:33:00.175
    ORA-12012: error on auto execute of job 53267
    ORA-27369: job of type EXECUTABLE failed with exit code: 274662
    I googled on this:
    ORA-27369: job of type EXECUTABLE failed with exit code: 274662
    Google returned only 1 hit.
    There, I see some evidence that I need to configure something inside
    of Oracle to run shell scripts from the scheduler, but possibly just
    for machines running windows. I'm running Solaris.
    Do any of you know what I need to configure inside of Oracle to
    run shell scripts from the scheduler?
    -Owen

    Hello people,
    I should have added this bit of information:
    "The script runs fine from oracle's crontab."
    "The script runs fine from a shell owned by oracle."
    I'm getting responses telling me to check my env variables and permissions
    which would be helpful to a UNIX novice.
    I have a feeling that no one is using the scheduler to run RMAN scripts.
    Tim Hall suggested I take a close look at these files:
    $ORACLE_HOME/rdbms/admin/externaljob.ora
    $ORACLE_HOME/bin/extJob
    Currently I'm setup like this:
    bash sol root /h/oracle/product/10r2/bin 31 #
    bash sol root /h/oracle/product/10r2/bin 31 # ll $ORACLE_HOME/rdbms/admin/externaljob.ora
    -rw-r--r-- 1 root dba 52 Sep 7 15:29 /h/oracle/product/10r2/rdbms/admin/externaljob.ora
    bash sol root /h/oracle/product/10r2/bin 32 #
    bash sol root /h/oracle/product/10r2/bin 32 # cat $ORACLE_HOME/rdbms/admin/externaljob.ora
    # externaljob.ora
    run_user = rman
    run_group = rman
    bash sol root /h/oracle/product/10r2/bin 33 #
    bash sol root /h/oracle/product/10r2/bin 33 #
    bash sol root /h/oracle/product/10r2/bin 33 #
    bash sol root /h/oracle/product/10r2/bin 33 # ll $ORACLE_HOME/bin/ext*
    -rwsr-x--- 1 rman dba 30388 Sep 21 2006 /h/oracle/product/10r2/bin/extjob*
    -rwsr-x--- 1 rman dba 30392 Sep 21 2006 /h/oracle/product/10r2/bin/extjobo*
    -rwsr-x--- 1 rman dba 34468 Sep 21 2006 /h/oracle/product/10r2/bin/extproc*
    -rwxr-xr-x 1 oracle dba 300 Sep 21 2006 /h/oracle/product/10r2/bin/extusrupgrade*
    bash sol root /h/oracle/product/10r2/bin 34 #
    bash sol root /h/oracle/product/10r2/bin 34 #
    bash sol root /h/oracle/product/10r2/bin 34 #
    On my system, the user 'nobody' has no shell so I cannot use nobody.
    I created a user named rman:
    bash sol root /h/oracle/product/10r2/bin 34 #
    bash sol root /h/oracle/product/10r2/bin 34 #
    bash sol root /h/oracle/product/10r2/bin 34 # su - rman
    Sun Microsystems Inc. SunOS 5.10 Generic January 2005
    $
    $ id
    uid=220(rman) gid=220(rman)
    $
    $
    $ date
    Fri Sep 7 16:30:03 PDT 2007
    $
    $
    Jared points out that rman needs access to extproc:
    $ ls -la /h/oracle/product/10r2/bin/extproc
    -rwsr-x--- 1 rman dba 34468 Sep 21 2006 /h/oracle/product/10r2/bin/extproc
    $
    $
    Here is a demo of rman running his script:
    bash sol root /h/oracle/product/10r2/bin 35 # su - rman
    Sun Microsystems Inc. SunOS 5.10 Generic January 2005
    $
    $
    $ ls
    scripts
    $
    $
    $ scripts/tst.sh
    $
    $
    $ cat scripts/tst.sh
    #! /bin/sh
    /usr/bin/date > /tmp/tst.sh.out.txt 2>&1 &
    exit 0
    $
    $
    $ cat /tmp/tst.sh.out.txt
    Fri Sep 7 16:31:23 PDT 2007
    $
    $ rm /tmp/tst.sh.out.txt
    $
    I am focused on this error:
    ORA-27369: job of type EXECUTABLE failed with exit code: 274662
    And I am focused on this exit code: 274662
    What does 274662 mean?
    If the Scheduler gives me an error like "274662" rather than some English,
    it's obvious to me the Scheduler is a POS and I should not use it.
    And of course,
    If I cannot run RMAN from Oracle Scheduler, I'll use cron.
    -Owen

  • Purchase Order Workflow event trigered when i create the Schedule Agrrement using ME31l.

    Hi expert,
         When i create Schedule agreement using me31l it will raise the PO workflow instead of SA  Workflows. ?  where is the configuration mismatch happen ?

    HelloTithira,
    I'm very sorry to admit that I haven't entirely looked at a running system when talking about the CEKKO. You're absolutely right that the document category type is not part of it and you couldn't proceed with maintaining the classification in that way.
    I did mention the BSTYP field, as I was used to have the field available, as I usually add this at the first place when starting a project for PO-releases.
    As far as I remember, there's a MOVE-CORRESPONDING statement at one point, where the CEKKO structure is initialized, from the EKKO structure that is available. So when you name an APPEND-field of the CEKKO structure BSTYP having the same type as the EKKO, you should find that field filled, without(!) implementing the CEKKO user exit yourself.
    It this doesn't help either, please implement the CEKKO user exit to fill your BSTYP field.
    If nothing helps at that point, and you're still stuck, you can enable a "Workflow start condition" for the two events on BUS2012.ReleaseStepCreated and the same for BUS2013, where you check the EKKO-BSTYP of the BOR Business Object types against the corresponding object, i.e.
    _EventObject.PurchasingCategory = 'F'     (For the event on BUS2012)
    Do get the PurchasingCategory, you'll need to subtype and delegate systemwide and create a database field for EKKO table, choosing the field BSTYP. Do this for both the BUS2012  and  the  BUS2012  or a common super-type if you find so.
    With the very best wishes
       Florin

  • Implementing secure print in solaris 10

    Hi Team,
    We have planned to implement secure print in solaris 10 for xerox printer 5230 which will support to secure print
    And i have checked cups server there's no option like printing secure print,same we implemented secure print in windows side and its working fine.
    Refer URL for secure print in windows side : http://www.ubc.ca/okanagan/itservices/service-catalogue/computers-printers/printcopy/secureprinting.html
    Objective : Printer needs to ask password if any thing print given from solaris server or workstation.?
    is ther any way to implement secure print in solaris 10?
    Please suggest me solution with your valuable post?
    Regards
    Sreekanth   

    Thanks for your suggestion.
    I dont have clear picture about centerware and surely i will start study on this,
    Clarify me some doubts:
    is centreware having option to implement secure print now the users are giving print on normal basis & its production system?
    if i install centreware on this production any effect on the print services?

  • How to Transfer the Scheduled concurrent Programs

    Hi,
    I have Migrated the EBIZ instance from RHEL 32 bit to RHEL 64 bit with 10.2.0.4 DB & R12.0.6 Apps.
    But now i dont have the scheduled concurrent requests in the New instance since the system is migrated. Now is there any ways to bring the Scheduled concurrent req from Old server to New server.
    Or Do we have FNDLOAD scripts or Linux scripts to transfer the scheduled programs.
    Kindly suggest.
    Regards
    Karthik

    You should migrate the instance by implementing the steps in the following docs which should keep your scheduled concurrent requests (as is) in your target instance.
    Migrating Oracle E-Business Suite R12 from Linux 32-bit to Linux 64-bit (Doc ID 471566.1)
    Oracle E-Business Suite Upgrades and Platform Migration (Doc ID 1377213.1)
    If you haven't done so, then please follow the steps in the docs.
    Thanks,
    Hussein

  • Unable to Reserve and Approve the Scheduled Releases in 11.5.10.2 version

    Hi All,
    We are newly implementing the Planned PO’s for our client. Now we are successfully reserve and approve the Planned PO’s using the Position Hierarchy but when we try to reserve and the approve the scheduled releases using the same Position Hierarchy here the Approve button is frozen, but from Tools we are able to check the funds.
    EX: A, B, C are in the position Hierarchy
    1. A is forwarding the document to B
    2. B is able to open the Scheduled document from the Notifications but here when he try’s to reserve and approve the document here the Approve button is Frozen.
    Note: if B is approving the document from Notifications the document is sending to the next manager and he is able to approve the document but in action history for reserve it’s showing the ‘C’ name instead of ‘B’.
    Can any one help me on this issue ASAP?
    Regards,
    Kevin.
    Edited by: kevin329 on Jun 8, 2009 2:30 AM

    Hi,
    Performing your action plan by copying all the files from AU_TOP to my local machine and then try to open the INVIDITM.fmb but still the same problem.
    Is this the problem of forms version or some thing else?
    Because I am able to able the POXPOEPO.fmb( Purchase Order form ) in the same version and do the customization as per requirement.
    Could you please suggest any other alternative solution?
    Thanks
    Ashutosh Chowdhary

  • I need to reset the confirmed quantity in the schedule line

    Hi all,
    i have this requirement:
    with VA01 / VA02, in the schedule line, I need to reset the confirmed quantity, for that rows which have delivery date 30 days
    over today.
    Does anybody know if I can use the routine no. 101 (vofm -> Requirements -> Subsequent functions -> Reqs. availability) and give me an example to di this ?
    I also tried to implement the user exit move_fields_to_vbep in mv45afzz, but not succeed to obtain my goal.
    I thank you in advance.
    Regards.

    Settings/iTunes and App Store. Tap on the ID you see there and sign out then log in with the new ID

  • Can I implement the BADI_SD_SALES for VA01

    Can I implement the BADI_SD_SALES for VA01  I tried that, but it won't me allow for display in Classic BAdi.

    Hi,
    This badi is used for Internal purpose of SAP.So try to do your validation with some other badi's or exit.
      some of User Exits For VA01
    V45E0001 : Update the purchase order from the sales order
    V45E0002 : Data transfer in procurement elements (PRreq., assembly)
    V45A0002 : Predefine sold-to party in sales document
    V45A0003 : Collector for customer function modulpool MV45A
    V45L0001 : SD component supplier processing (customer enhancements)
    V45P0001 : SD customer function for cross-company code sales
    SDTRM001 : Reschedule schedule lines without a new ATP check
    V45A0001 : Determine alternative materials for product selection
    V45A0004 : Copy packing proposal
    V46H0001 : SD Customer functions for resource-related billing
    V60F0001 : SD Billing plan (customer enhancement) diff. to billing plan
    V45S0001 : Update sales document from configuration
    V45S0003 : MRP-relevance for incomplete configuration
    V45S0004 : Effectivity type in sales order
    V45W0001 : SD Service Management: Forward Contract Data to Item
    Thanks,
    AMS

  • How to implemented an scheduled service using ScheduledExecutorService

    Hi, everybody
    I have a case that need retrieve data periodically from server. And I used the ScheduledExecutorService and javafx.concurrent.Service to implemented this case. But the trick thing is that ScheduledExecutorService schedule method aleady need a Runnable parameter. And Service setExecutor method set the ScheduledExecutorService. But the result is the Runnable is implemented run periodically but not the Service's call method(Which is I want). The Service is not extends from Runnable or Callable, how it can be used by the ScheduledExecutorService to implemented the periodical task?
    Please see my example:
    public class ScheduledService extends Application{
         * @param args
         *            the command line arguments
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) throws Exception {
            primaryStage.setTitle("Test");
            Parent root = new Label("abc");
            Scene scene = new Scene(root, 800, 600);
            primaryStage.setScene(scene);
            primaryStage.show();
            test();
        public static void test() {
            ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(1);
            scheduledExecutorService.scheduleAtFixedRate(new Runnable() {
                @Override
                public void run() {
                    System.out.println("ScheduledServiceTest.main(...).new Runnable() {...}.run()");
            }, 0, 2, TimeUnit.SECONDS);
            CustomService service = new CustomService();
            service.setExecutor(scheduledExecutorService);
            service.start();
    class CustomService extends Service<Void> {
        @Override
        protected Task<Void> createTask() {
            return new Task<Void>() {
                @Override
                protected Void call() throws Exception {
                    System.out.println("CustomService.createTask().new Task() {...}.call()");
                    return null;
    }The result is:
    ScheduledServiceTest.main(...).new Runnable() {...}.run()
    CustomService.createTask().new Task() {...}.call()
    ScheduledServiceTest.main(...).new Runnable() {...}.run()
    ScheduledServiceTest.main(...).new Runnable() {...}.run()
    ScheduledServiceTest.main(...).new Runnable() {...}.run()
    ScheduledServiceTest.main(...).new Runnable() {...}.run()
    ScheduledServiceTest.main(...).new Runnable() {...}.run()
    {code}
    Edited by: Owen on May 20, 2012 12:05 AM
    Edited by: Owen on May 20, 2012 12:07 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    You are not allowed to call "restart" on a different thread, it must be from the JavaFX application thread. You don't see the Exception for it because it is encapsulated in the ScheduledFuture that "executor.scheduleWithFixedDelay" returns.
    Let's forget about this ScheduledExecutorService, that is not the way to do it when you want to work with a Service. Here's a fully working example that uses standard JavaFX:
    package hs.mediasystem;
    import javafx.animation.Animation;
    import javafx.animation.KeyFrame;
    import javafx.animation.Timeline;
    import javafx.application.Application;
    import javafx.concurrent.Service;
    import javafx.concurrent.Task;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    public class Test extends Application {
      public static void main(String[] args) {
        launch(args);
      public static class MyService extends Service<Void> {
        @Override
        protected Task<Void> createTask() {
          return new Task<Void>() {
            @Override
            protected Void call() throws Exception {
              System.out.println("Begin task");
              return null;
      @Override
      public void start(Stage paramStage) throws Exception {
        final MyService myService = new MyService();
        Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(5), new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            myService.restart();   // automatically on JavaFX thread, so can call restart directly
        timeline.setCycleCount(Animation.INDEFINITE);
        timeline.playFrom("end"); // can also play from start but you will have an initial 5 second delay
    }

  • I want to  implement the Window autoresize in java swing application

    Hai...
    i want implement the window autoresize functionality in my java application. Same time i want to minimize and maximize my won window. and my java application develop one more frame at time disply in single window so i want disply the thaminal view formate in all frame
    Thanx to Advance.
    ARjun...

    ????????

Maybe you are looking for

  • How many times can I download LR due to computer problems

    I have LR 5 and Elements 10. I think both  are a 2 time download. My hard drive on  my PC just crashed and had to replace it. Now my computer over heated itself and I will have to by a whole new tower. My  question, will I have to go buy these progra

  • Can't see drive in finder, but see it in disk utility

    Hi everyone! I have a SeaGate drive I've use as my project folder drive. All of a sudden I cannot see it in finder under "devices". If I go to disk utility, I can see it there. I ran a "verify" and "repair" and everything comes out fine. No issues. I

  • Download link - CS6 Traditional Chinese

    Dear Sir/Madam, I have bought Adobe CS6 - Traditional Chinese (student ver.) from the retailer. However, when I come home, I found the CD have some scratches. I can't install the software properly. I have asked the retailer to replace the CD. Since I

  • TS4006 If my ipod is out of battery will it still play the sound?

    If my ipod is out of battery will it still play the sound?

  • Mac Mini drops internet connection (ethernet)

    Hi I have a brand new mac mini w/ mac Os 10.5.2. I connect to the internet via ethernet: it works fine for some time (30 mins, 2 hours) then, apparently for no special reason, it drops the connection and I need to reboot to restore it. It is connecte