Cannot Deploy JPD with Timer Event Subscription in WLI 9.2 MP1 cluster

Has anyone had any luck deploying a JPD with a timer event subscription to a 9.2 MP1 WLI cluster? I am able to deploy Synchronous Client Request JPDs without any trouble but the ones that rely on internal WLI queues for invocation will not deploy in production. I am able to deploy the problematic JPDs to a non-clustered development environment without any issues but when I try to deploy the same artifact to a 9.2 MP1 cluster I see the following error:
Throwable: java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
Stack Trace:
java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
     at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
     at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:667)
     at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1025)
     at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:946)
     at com.bea.wli.management.adminhelper.AdminHelperBean.getDispFile(AdminHelperBean.java:348)
     at com.bea.wli.management.adminhelper.AdminHelperBean.getProcessMetadata(AdminHelperBean.java:94)
     at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl.getProcessMetadata(AdminHelperSSB_wivmoo_EOImpl.java:70)
     at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:548)
     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:438)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:434)
     at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:57)
     at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:965)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
I am suprised about this error, b/c we are running out of a vanilla WLI domain created with the Configuration Wizard and the error message has to do with an internal JMS server that we have left with the default configuration. Has anyone else had success with this?
On a side note, I have to complain about the lack of 9.2 WLI documentation about deploying applications to production. The links on e-docs.bea.com actually redirect you to 8.5 documentation?!? I can't believe that this is the documentation we are left to use for 9.2 because there are so many changes between WLS 8 and 9.

Hey buddies,
I have a very similar error on WLI 9.2 MP2 on development mode with a cluster of managed servers on the same machine. I'm afraid that the automatic resource creation feature of dev mode is creating the error.
The ...processes.UnlockService is jpd called by a JMS Broker thru a channel, and I considering it as the first suspect point.
Any help is welcome.
LOG CONTENT:
<May 15, 2008 8:04:57 PM GMT-03:00> <Notice> <Stdout> <000000> <2008-05-15 20:04:57,575 [PERFO] localServer 10.10.10.10 xMDA  [iid=15899 prd=TC DATA act=INSTALL otp=I onb=00011552111 cid=12345189 mrt=]  END Designar_TCDATA OK>
<May 15, 2008 8:04:57 PM GMT-03:00> <Error> <WLI> <000000> <Exception processing com.oi.integra.provisioning.lockManager.processes.UnlockService
java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
     at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
     at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:671)
     Truncated. see log file for complete stacktrace
java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureQueue(EJBGenerator.java:442)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureWorkshopQueues(EJBGenerator.java:412)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator$3.run(EJBGenerator.java:194)
     Truncated. see log file for complete stacktrace
java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator.doesQueueExist(EJBGenerator.java:359)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator$6.run(EJBGenerator.java:449)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     Truncated. see log file for complete stacktrace
javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
     at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getProxy(MBeanHomeImpl.java:68)
     at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:88)
     at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getAdminMBean(MBeanHomeImpl.java:265)
     at com.bea.wli.knex.runtime.core.bean.WLSUtil.getWorkshopJMSServer(WLSUtil.java:713)
     at com.bea.wli.knex.runtime.core.bean.EJBGenerator$5.run(EJBGenerator.java:372)
     Truncated. see log file for complete stacktrace
>
java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)

Similar Messages

  • How to setup PCG Flow Rule Process flow with Business Event subscription

    Hi,
    How to setup PCG Flow Rule Process flow with Business Event subscription type?
    When should Business Events be used?
    The latest user guide does not provide ay information on this functionality of Flow rules.
    Thanks

    You should find it's usage noted in the new PCG user guide on page 3-26 under the heading "Configuring Workflow/Event Rules". This way you can have a Flow Rule call a business event component or a workflow. This would be kicked off within a process flow as one of the steps.
    I hope that helps.

  • Since upgrading to Mountain Lion, I cannot restore emails with time machine. In Lion TM created a folder in Mail called recovered emails(or similar) No such folder is created since ML. I am able to see the email I want to restore, but it then disappears

    Since upgrading to Mountain Lion, I cannot restore emails with time machine. In Lion TM created a folder in Mail called recovered emails(or similar) No such folder is created since ML. I am able to see the email I want to restore, but it then disappears

    I am inside Mail, waiting for the TM 'recovered mail' folder to appear - which it doen't.
    I only looked in my home folder after trying several times from within my Main app.
    Marion

  • LIssue with time events upload through RPTEUP10

    Dear experts,
    I am using the standard report RPTEUP10 for uploading time events in IT 2011. It works fine but in the log, it just indicates the number of records read, posted, placed in the error pool ...
    Can we by any chance know the PERNRs for which the upload failed? The FM HR_CC1_TIMEEVENT_INSERT directly takes table of time events as parameter.
    Will I have to put this FM inside a loop and pass a each entry for each PERNR separately, so that I could catch the failed PERNRs? or is there any standard solution to this?
    Please advice.
    Regards,
    Sumit Nene

    Hi,
    Actually we tried to upload the data manually through RPTEUP10 using txt file and also our client also want this for few locations.
    But we are unable to sort it out.
    I have gone through your document  and we adopted for automatic recording process as  my colleague confirmed it works excellent.
    But the problem is with manual uploading, the same is not showing in it 2011.
    any changes required in 2011 or 0050 before recording.
    it 0007, 1-1 is selected.
    please suggest some measure to achieve this.
    Regards,
    Sumana

  • Java SystemTray with timer event

    I have just recently began working with the java system tray feature. In my application I have took the example from http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/ for an example as to how this works.
    My application also has a timer event that goes off every two seconds and checks for new messages. However if I open up the system tray popup menu, then the rest of the application hangs and waits for the pop up window to close. Is there any way to make the system tray so that the rest of the application does not freeze waiting for the menu to go away or a choice to be selected? I wold like the timer event to go off every 2 seconds, even if I have the system tray popup menu open.
    Thanks for any help or suggestions.

    Hmm. It's not that the Timer is stopped, it's that the TrayIcon displays the popup on the EDT and blocks actionPerformed -- which also has to run on the EDT -- till the popup is closed. Swing Timer by default coalesces multiple timer events when there's a backlog.
    As the showing of the popup is handled by the native peer, it doesn't look like there'll be any solution with a Swing Timer. Your problem should be solvable with java.util.Timer and TimerTask.
    Try this code, then uncomment the setCoalesce(false) and try it again. Note the difference.import java.awt.AWTException;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.MenuItem;
    import java.awt.PopupMenu;
    import java.awt.SystemTray;
    import java.awt.TrayIcon;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    public class TrayIconTest {
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new TrayIconTest().makeUI();
       public void makeUI() {
          PopupMenu popup = new PopupMenu();
          popup.add(new MenuItem("One"));
          popup.add(new MenuItem("Two"));
          TrayIcon trayIcon = new TrayIcon(getImage(), null, popup);
          try {
             SystemTray.getSystemTray().add(trayIcon);
          } catch (AWTException ex) {
             ex.printStackTrace();
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(200, 200);
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
          javax.swing.Timer swingTimer = new javax.swing.Timer(1000, new ActionListener() {
             int count = 0;
             @Override
             public void actionPerformed(ActionEvent e) {
                System.out.println("Swing Count: " + count++);
          //swingTimer.setCoalesce(false);
          swingTimer.start();
          java.util.TimerTask timerTask = new java.util.TimerTask() {
             int count = 0;
             @Override
             public void run() {
                System.out.println("Util Count: " + count++);
          java.util.Timer utilTimer = new java.util.Timer();
          utilTimer.scheduleAtFixedRate(timerTask, 1200, 1000);
       private Image getImage() {
          BufferedImage image = new BufferedImage(16, 16,
                BufferedImage.TYPE_INT_ARGB);
          Graphics2D g2 = image.createGraphics();
          g2.setColor(Color.RED);
          g2.fillOval(1, 1, 14, 14);
          g2.setColor(Color.YELLOW);
          g2.fillOval(5, 5, 6, 6);
          return image;
    }db

  • How to validate overtime (IT2005) with time event (IT2011)

    dear gurus,
    how can i validate overtime, so only overtime that occurs within time event (IT2011) which can be paid ?
    example:
    work schedule: 08.00 - 17.00
    IT2011: 08.00 (P10 - clock in),  19.00 (P20 - clock out)
    IT2005: 17.00 - 20.00
    when run PT60, i want the system to calculate overtime from 17.00 - 19.00 (not 17.00 - 20.00).
    how can i configure the system?
    thank & regards,

    Hi
    There are multiple issues here ...
    i.Why are you maintaining both IT2005 and IT2011 at the same time.OT calculation can be done through IT2011 solely...
    ii.Anyway if you still want to write a rule yu can try as per the spec given below:
    1. Generate a custom Time Type say 9999
    2. Make a rule like OUTTPERTYP if P20 then SCOND=T IF otherwise SCOND=F IF.
    3. If SCOND=T IF then write a rule saying that HRS=PEND
    4.HRS-SWTE
    5.ADDDB9999
    6.ELSE SCOND=F IF VARSTP2005 (Entry exists if Y then check 9999..if 9999 is not ZERO then Kill the time types of P2005)
    7.Otherwise Pass On...do nothing..

  • Cannot see backups with Time Machine and Aiport Extreme

    My MacBook Pro is backing up to to an Airport Extreme with a USB drive attached to it. The backing up seems to be working. ie time machine say's it backed up my machine.. eg at 1.57.pm today.
    When I enter time machine to try and get a backup, it's not there... it has one finder window for "Now" (1st April) and then the next one in the list is 23rd of March. SO I cannot see any of today, yesterday or another other recent backups.
    BTW, I had originally made a backup directly to the USB drive. I am not sure of the date but it could have been 23rd of March.
    Any ideas?

    Hey
    I have the exact same problem. I have just switched from direct firewire-based Time Machine backup to an external drive, to said drive now connected to my Airport Extreme. I knew that it wouldn't accept the old TM backups, so I started up: Started the initial backup wirelessly, the unplugged it, and finished it via firewire. All worked fine, and the sparseimage was recognized and so on. After it was done, I attached the drive to the AE again, and it backup up as it was supposed to 3-4 times a day.
    That was 3 days ago. But when I checked my TM yesterday, there was just the "today" window, and I couldn't browse anything. Today it's the same story. What gives?
    Now, I opened the sparseimage on the TM drive to see if the incremental backups were there, and they were all there, but somehow TM doesn't read them. Can anybody who has a working TM wireless backup tell me if TM mounts the sparseimage to when launched and unmounts it afterwards?
    TM worked great before when connected directly – never had a problem before and something tells me it's a problem with the sparseimage...Nevertheless, if it can't be fixed, I am back to friewire-based TM backup ;-<
    Message was edited by: Hedemann

  • Cannot back up with Time Machine/Capsule after new drive installed in MacBook Pro

    MacBook Pro 2.53 GHz Intel Core 2 Duo running 10.8.5.
    I just had a larger hard drive installed by Tekserve. This is to be my first back up since installing the new drive. I have 2 back ups: one to my Time Capsule via WiFi, the other to an external Le Cie via USB.
    Time Machine just gives me preparing to backup but goes no further, just stuck in that mode. I suspect that it can't find my old drive, which it backed up till now. But I cannot find a way to correct this possible snafu. I do not see an option in Preferences.
    Any thoughts?
    Thanks

    Just so we are clear.. were your files all recovered from backup after the install of the disk?? Did you supply one of the backups to the company who did the installation so they could do the recovery?
    You do want to be careful not to damage the old backup.. it might really be better to start over a clean new backup.
    TM should be reset. It sounds like they did recover your settings.. Please check Pondini here.
    A4 http://pondini.org/TM/Troubleshooting.html
    Also use A1 to check what the log is saying about TM.. the old backup will need to be fully indexed and checked if you intend to keep using it.. and that will take several hours to the TC if you use wireless.. The problem people expect fast starts but that is not possible unless you are doing a new backup.
    You can also check some of the other help files there eg D1 long preparing for why that happens.

  • Isn't its possible to pass parameter with timer events

    helo every one,
    i have a array which i need to plot on the screen. the
    plotting should have some delay in between so that we can see the
    points being plotted. i tried using timer class but when the event
    occurs my loop index has always reached last element. any help...
    heres the code i used

    i have around 1000 data so the flash chrashes as i run your
    code.
    any suggestions to handel such case

  • (hr)problem with time-event upload

    hi friends, flowing codes like rpteup10 program. but we changed it. (december 2005) . but now there is problem not working . it is writing done but infotype 2011 from pa20 there is no change. maybe problem is fm HR_CC1_TIMEEVENT_INSERT. please help me.
    note sorry for my english.
    report rpteup10 no standard page heading.
    * Die Struktur der eingelesenen Saetze ist in der Feldleiste EXTREC
    * beschrieben.
    * Die Umsetzung der Saetze in die Struktur TIMEEVENT erfolgt in FORM
    * SET_EXTREC_TO_TIMEEVENT. Die Zuweisung erfolgt an die Feldleiste
    * timeevent.
    * The structure of the imported records is described in the internal
    * structure EXTREC.
    * The transport of the imported records into the structure TIMEEVENT
    * is done in FORM SET_EXTREC_TO_TIMEEVENT.
    tables: teven.
    data: begin of extrec occurs 0.
            include structure z1hrkk1teup.
    data: end of extrec.
    data: timeevent like cc1_timeevent occurs 0 with header line.
    data: last_timeevent like cc1_timeevent.
    data: skipped_timeevent like cc1_timeevent occurs 0 with header line.
    data: begin of stat occurs 1,
            ldate like teven-ldate,
            anzhl(4) type p value 1,
          end of stat.
    data: l_posted_timeevents   like sy-dbcnt,
          l_faulty_timeevents   like sy-dbcnt,
          l_locked_timeevents   like sy-dbcnt,
          l_total_timeevents    like sy-dbcnt,
          l_uploaded_timeevents like sy-dbcnt,
          l_skipped_timeevents  like sy-dbcnt.                  "P40K025970
    data: msg(100).
    * Syntax von MASKE siehe Doku FB WS_FILENAME_GET
    data: begin of maske,
            f01(30),
            '*.txt',
            f02(30),
          end of maske.
    selection-screen begin of block quelle with frame title text-src.
    * Pushbuttons for selection of source
    selection-screen begin of line.
    parameters:
      dataset like rptxxxxx-kr_feld1
        radiobutton group g001 default 'X'.
    selection-screen comment 03(30) text-010.
    parameters:
         file like rptaxxxx-rfile default '/usr/sap/up.tmp'.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:
       workstn like rptxxxxx-kr_feld1
          radiobutton group g001.
    selection-screen comment 03(30) text-011.
    parameters:
         name like rlgrap-filename default 'A:UPLOAD.TXT'.
    selection-screen end of line.
    selection-screen end of block quelle.
    selection-screen begin of block frm1 with frame title text-par.
    parameters:
         upload like rptxxxxx-kr_feld1 default 'X',
         update like cc1par-x_verb default 'X',
         protokol like rptxxxxx-kr_feld2 default 'X'.
    selection-screen end of block frm1.
    *                      AT SELECTION-SCREEN                            *
    at selection-screen.
    *            AT SELECTION-SCREEN ON VALUE-REQUEST FOR ...             *
    at selection-screen on value-request for name.
      call function 'WS_FILENAME_GET'
           exporting
    *           DEF_FILENAME     = 'hallo'
                def_path         = 'C:'
                mask             = maske
    *           MODE             = 'O'
    *           TITLE            = ' '
           importing
                filename         = name
    *           RC               =
          exceptions
                inv_winsys       = 1
                no_batch         = 2
                selection_cancel = 3
                selection_error  = 4
                others           = 5.
    * end of -------------------------------------------------- "P30K108491
    initialization.
    start-of-selection.
      perform check_parameters.
      if not workstn is initial.
        call function 'WS_UPLOAD'
               exporting
                    filename            = name
                    filetype            = 'ASC'
               tables
                    data_tab            =  extrec
             exceptions
                  conversion_error    = 1
    *         FILE_OPEN_ERROR     = 2
                  file_read_error     = 3
                  invalid_table_width = 4
                  invalid_type        = 5
                  no_batch            = 6
                  unknown_error       = 7
                  others              = 8.
        if sy-subrc eq 2.
          write: / 'Fehlerhafter Pfadname'(013).
        endif.
      elseif not dataset is initial.
        open dataset file for input message msg.
        if sy-subrc ne 0.
          write: / msg.
          stop.
        endif.
        do.
          read dataset file into extrec.
          if sy-subrc ne 0. exit. endif.
          append extrec.
        enddo.
      else.
    * Nur zum Testen
        extrec-zausw = '10005301'.
        extrec-satza = 'P10'.
        extrec-ldate = sy-datum.
        extrec-ltime = '120000'.
    *    extrec-otype = 'S '.
    *    extrec-plans = '12345678'.
    *    extrec-usrup = 'VIELZWECKFELD'.
        append extrec.
        extrec-ltime = '140000'.
        extrec-satza = 'Z10'.
        append extrec.
      endif.
      loop at extrec.
        check not extrec is initial.
        perform set_extrec_to_timeevent.
        perform append_timeevent.
        perform fill_stat.
      endloop.
    *for double entry
      CLEAR SKIPPED_TIMEEVENT. REFRESH SKIPPED_TIMEEVENT.
      LOOP AT TIMEEVENT.
      SELECT SINGLE * FROM TEVEN WHERE PERNR = TIMEEVENT-PERNR AND
                                       LDATE = TIMEEVENT-LDATE AND
                                       LTIME = TIMEEVENT-LTIME AND
                                       SATZA = TIMEEVENT-SATZA AND
                                       STOKZ = ''.
      IF SY-SUBRC EQ 0.
        MOVE-CORRESPONDING TIMEEVENT TO SKIPPED_TIMEEVENT.
        APPEND SKIPPED_TIMEEVENT.
        DELETE TIMEEVENT.
      ENDIF.
      ENDLOOP.
      if protokol eq 'X'.
        perform show_timeevent.
        perform show_skipped_timeevent.
      endif.
      if upload eq 'X'.
        describe table timeevent lines sy-tfill.
        if not timeevent[] is initial.
          perform get_numbers.
          call function 'HR_CC1_TIMEEVENT_INSERT'
               tables
                    timeevent = timeevent
               exceptions
                    others    = 1.
          commit work.
          describe table timeevent lines l_uploaded_timeevents.
        endif.
      endif.
      if update eq 'X'.
        call function 'HR_CC1_TIMEEVENT_POST'
             importing
                  posted_timeevents  = l_posted_timeevents
                  faulty_timeevents  = l_faulty_timeevents
                  locked_timeevents  = l_locked_timeevents
                  skipped_timeevents = l_skipped_timeevents     "P40K026655
             exceptions
                  others            = 0.
    *       Zeitpunkt zur Steuerung der Batchverarbeitung setzen
    *   GET TIME.
    *   start_datum = sy-datum.
    *   start_uzeit = sy-uzeit + 10.
    *       Übergabe Steuerungsparameter an Task-handler -> BATCH !
    *   CALL FUNCTION 'START_OF_BACKGROUNDTASK'
    *        EXPORTING
    *             startdate = start_datum
    *             starttime = start_uzeit
    *        EXCEPTIONS
    *             others    = 1.
        commit work.
      endif.
    * PERFORM show_stat.
      perform show_verarbeitung.
    *=====================================================================*
    *    FORM SET_EXTREC_TO_TIMEEVENT                                     *
    *       Hier ist gegebenenfalls Sondercoding erforderlich.            *
    form set_extrec_to_timeevent.
    * Nutzdaten
      move-corresponding extrec to timeevent.
    *  move: extrec-otype to timeevent-pdc_otype,
    *        extrec-plans to timeevent-pdc_plans,
    *        extrec-usrup to timeevent-pdc_usrup.
    * technische Felder
      timeevent-indeu = 'I'.
    endform.
    *       FORM APPEND_timeevent.
    form append_timeevent.
    *  IF sorted EQ 'X'.
    ** Die Sätze sind nach Ausweisnummer gruppiert,
    ** performant: nur den letzten Satz vergleichen.
    *    IF timeevent-zausw EQ last_timeevent-zausw AND
    *       timeevent-ldate EQ last_timeevent-ldate AND
    *       timeevent-ltime EQ last_timeevent-ltime AND
    *       timeevent-erdat EQ last_timeevent-erdat AND
    *       timeevent-ertim EQ last_timeevent-ertim .
    *      DESCRIBE TABLE timeevent LINES sy-tfill.
    *      MODIFY timeevent INDEX sy-tfill.
    *      skipped_timeevent = last_timeevent.
    *      APPEND skipped_timeevent.
    *    ELSE.
    *      APPEND timeevent.
    *    ENDIF.
    *    last_timeevent = timeevent.
    *  ELSE.
    * Die Sätze sind nicht sortiert,
    * immer mit allen vorhandenen Sätzen vergleichen.
        read table timeevent into last_timeevent
                          with key  zausw = timeevent-zausw
                                    ldate = timeevent-ldate
                                    ltime = timeevent-ltime
                                    erdat = timeevent-erdat
                                    ertim = timeevent-ertim
                          binary search.
        if sy-subrc eq 0.
    * Früherer Eintrag wird protokolliert und überschrieben.
          modify timeevent index sy-tabix.
          skipped_timeevent = last_timeevent.
          append skipped_timeevent.
        else.
          insert timeevent index sy-tabix.
        endif.
    *  ENDIF.
    endform.
    *       FORM CHECK_PARAMETERS                                         *
    form check_parameters.
      if file eq space.
        write: / 'Bitte Namen für seq. Datenbestand angeben'(e01).
        stop.
      endif.
    endform.
    *       FORM FILL_STAT                                                *
    form fill_stat.
      read table stat with key timeevent-ldate binary search.
      if sy-subrc eq 0.
        add 1 to stat-anzhl.
        modify stat index sy-tabix.
      else.
        move timeevent-ldate to stat-ldate.
        move 1 to stat-anzhl.
        insert stat index sy-tabix.
      endif.
    endform.
    *       FORM SHOW_STAT                                                *
    form show_stat.
      skip 1.
      summary.
      format color col_background intensified.
      write:    'Statistik                     '(s06)
                color col_background intensified off.
      write: /(23)  sy-uline.
      format color col_heading.
      write: / sy-vline no-gap.
      write:  (10) 'Datum     '(s07) no-gap.
      write:   sy-vline no-gap.
      write:   (10) 'Sätze     '(s10) no-gap.
      write:   sy-vline.
      write: /(23) sy-uline.
      loop at stat.
        write: /  sy-vline no-gap.
        format color col_key.
        write:    stat-ldate no-gap.
        write:    sy-vline no-gap.
        format color col_normal.
        write: (10) stat-anzhl no-gap.
        write:    sy-vline no-gap.
      endloop.
      write: /(23) sy-uline.
    endform.
    *       FORM SHOW_VERARBEITUNG                                        *
    form show_verarbeitung.
      l_total_timeevents = l_posted_timeevents +
                           l_faulty_timeevents +
                           l_locked_timeevents.
      skip 1.
      summary.
      format color col_background intensified.
      write:    'Verarbeitung                  '(par)
                color col_background intensified off.
      write: /(78)  sy-uline.
      format color col_heading.
      write: / sy-vline no-gap.
      write:  (65) ' ' no-gap.
      write:   sy-vline no-gap.
      write:   (10) 'Sätze     '(s10) no-gap.
      write:   sy-vline.
      write: /(78) sy-uline.
      write: /  sy-vline no-gap.
      format color col_key.
      write: (65) 'in Schnittstelle gestellt'(v01) no-gap.
      write:    sy-vline no-gap.
      format color col_normal.
      write: (10) l_uploaded_timeevents no-gap.
      write:    sy-vline no-gap.
      write: /  sy-vline no-gap.
      format color col_key.
      write: (65) 'aus Schnittstelle gelesen'(v02)  no-gap.
      write:    sy-vline no-gap.
      format color col_normal.
      write: (10) l_total_timeevents no-gap.
      write:    sy-vline no-gap.
      write: /  sy-vline no-gap.
      format color col_key.
      write: (65) 'in Zeitwirtschaft verbucht'(v03)  no-gap.
      write:    sy-vline no-gap.
      format color col_normal.
      write: (10) l_posted_timeevents no-gap.
      write:    sy-vline no-gap.
      write: /  sy-vline no-gap.
      format color col_key.
      write: (65) 'in Fehlervorrat gestellt'(v04)    no-gap.
      write:    sy-vline no-gap.
      format color col_normal.
      write: (10) l_faulty_timeevents no-gap.
      write:    sy-vline no-gap.
      write: /  sy-vline no-gap.
      format color col_key.
      write: (65)
             'in Schnittstelle belassen, da Personalnummer gesperrt'(v05)
             no-gap.
      write:    sy-vline no-gap.
      format color col_normal.
      write: (10) l_locked_timeevents no-gap.
      write:    sy-vline no-gap.
      write: /  sy-vline no-gap.                                "P40K026655
      format color col_key.                                     "P40K026655
      write: (65) 'durch Zeitwirtschaft verworfen'(v06) no-gap. "P40K026655
      write:    sy-vline no-gap.                                "P40K026655
      format color col_normal.                                  "P40K026655
      write: (10) l_skipped_timeevents no-gap.                  "P40K026655
      write:    sy-vline no-gap.                                "P40K026655
      write: /(78) sy-uline.
    endform.
    *    FORM SHOW_timeevent                                              *
    form show_timeevent.
      summary.
      format color col_background intensified.
      write:    'Protokoll                     '(s08)
                color col_background intensified off.
      write: /(78) sy-uline.
      format color col_heading.
      write: / sy-vline no-gap.
      write: (10) 'PersNr.   '(001) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Zeitausw. '(002) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Datum     '(003) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Uhrzeit   '(004) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Satzart   '(005) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Terminal  '(006) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'An/Abw    '(007) no-gap.
      write:   sy-vline no-gap.
      write: /(78) sy-uline.
      format color col_normal.
      loop at timeevent.
        write: / sy-vline no-gap.
        write: (10) timeevent-pernr no-zero no-gap,
                    sy-vline no-gap,
               (10) timeevent-zausw no-zero no-gap,
                    sy-vline no-gap,
               (10) timeevent-ldate no-gap,
                    sy-vline no-gap,
               (10) timeevent-ltime no-gap,
                    sy-vline no-gap,
               (10) timeevent-satza no-gap,
                    sy-vline no-gap,
               (10) timeevent-terid no-gap,
                    sy-vline no-gap,
               (10) timeevent-abwgr no-gap,
                    sy-vline no-gap.
      endloop.
      write: /(78) sy-uline.
    endform.
    *       FORM SHOW_SKIPPED_timeevent                                   *
    form show_skipped_timeevent.
      check not skipped_timeevent[] is initial.
      skip 1.
      summary.
      format color col_background intensified.
    * WRITE:    'Überschriebene Sätze'(s09)                     "P40K026655
      write:    'Überlesene doppelte Sätze'(s09)                "P40K026655
                color col_background intensified off.
      write: /(78) sy-uline.
      format color col_heading.
      write: / sy-vline no-gap.
      write: (10) 'PersNr.   '(001) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Zeitausw. '(002) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Datum     '(003) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Uhrzeit   '(004) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Satzart   '(005) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'Terminal  '(006) no-gap.
      write:   sy-vline no-gap.
      write: (10) 'An/Abw    '(007) no-gap.
      write:   sy-vline no-gap.
      write: /(78) sy-uline.
      format color col_normal.
      loop at skipped_timeevent into timeevent.
        write: / sy-vline no-gap.
        write: (10) timeevent-pernr no-zero no-gap,
                    sy-vline no-gap,
               (10) timeevent-zausw no-zero no-gap,
                    sy-vline no-gap,
               (10) timeevent-ldate no-gap,
                    sy-vline no-gap,
               (10) timeevent-ltime no-gap,
                    sy-vline no-gap,
               (10) timeevent-satza no-gap,
                    sy-vline no-gap,
               (10) timeevent-terid no-gap,
                    sy-vline no-gap,
               (10) timeevent-abwgr no-gap,
                    sy-vline no-gap.
      endloop.
      write: /(78) sy-uline.
    endform.
    *       FORM GET_NUMBERS                                              *
    form get_numbers.
      data: retcd  like inri-returncode,
            quantity_wanted like inri-quantity,
            number          like pdsnr-pdsnr,
            object like inri-object      value 'PD_SEQ_NR',
            range  like inri-nrrangenr   value '01',
            quantity_get    like inri-quantity .
      describe table timeevent lines quantity_wanted.
      check quantity_wanted gt 0.
      call function 'NUMBER_GET_NEXT'
           exporting
                object                  = object
                nr_range_nr             = range
                quantity                = quantity_wanted
           importing
                returncode              = retcd
                number                  = number
                quantity                = quantity_get
           exceptions
                object_not_found        = 1
                interval_not_found      = 2
                number_range_not_intern = 3.
      case sy-subrc.
        when 0.
          case retcd.
            when 1.                        "kritischer Bereich
              message w093(53) with object number.
            when 2.                        "erschöpft
              message e094(53) with object number.
            when 3.                        "erschöpft
              message e094(53) with object number.
          endcase.
        when 1.                            "Objekt nicht angelegt
          message a090(53) with object.
        when 2.                            "Intervall nicht angelegt
          message a091(53) with object number.
        when 3.                            "Intervall nicht intern
          message a092(53) with object number.
      endcase.
      loop at timeevent.
        timeevent-pdsnr = number - quantity_wanted + sy-tabix.
        modify timeevent.
      endloop.
      commit work.
    endform.
    Message was edited by:
            Fatih AYDIN

    Hi Atish,
    ok you are right. I add new function to solve problem. its HR_TMW_DB_UPDATE_TEVENT.
    i am directly insert to teven with that fm.  but I want to solve why it is not working. it was working before and now its working now just some personel. i will become insane. what is problem?
    note my name is Fatih, not Faith.

  • Event Subscription in WLI

    Process A and B are running in parallel in WLI. However Process B should finish after process A is done.
    Therefore our idea is to make process B subscribe to an event. Thus, when Process A is done, it publishes an event and B finishes its job.
    This solution would perfectly work. However I have the issue that, in case Process A publishes the event to the Message Broker before Process B is subscribed, then this event is lost.
    Is there a way to make this subscription to get the events that were already published before?

    Process A and B are running in parallel in WLI. However Process B should finish after process A is done.
    Therefore our idea is to make process B subscribe to an event. Thus, when Process A is done, it publishes an event and B finishes its job.
    This solution would perfectly work. However I have the issue that, in case Process A publishes the event to the Message Broker before Process B is subscribed, then this event is lost.
    Is there a way to make this subscription to get the events that were already published before?

  • Recording Additional Data on Time Event Types

    Our company is using the following time event types to record time data:P10 - In
    P15 - Break Start
    P02 - Lunch Start
    P25 - Lunch End
    P20 - Out
    We have only been able to associate a cost center to time event type
    P10, but have the need to associate it to P25 or identify a time event
    type not already in use that will accept a cost center to be associated
    to it. When we try to enter a cost center with time event tyep P25, the
    error message states "You can not use time event type P25 to record
    additional data."
    In our comapny, we have the need to round the in and out punches for
    each employee, but not round the other punches of the day. We can't use
    the first and last punch of the day to accomplish this because we have
    people who work split shifts. We also require a cost center to be
    associated with every punch that begins a productive time pair.
    Returning from lunch is the start of a productive time block, and is
    considered an "In" punch that shouldn't be rounded.
    I need to know if there is a way to configure the time event types to
    accept additional data or if there are any other time event types
    besides P10 that allow additional data to be recorded with them.

    Hi,
    Does the person entering the punch enters the cost center? How do you identify outside the SAP system before entering the data in SAP system what is the cost center related to the punch.
    Also Time events table or teven table cannot be enhanced.
    You could use CATS for hours recording related to a cost center.
    Regards,
    Divya

  • Using WLST: Unable to create WLI Timer Event Generator

    Hello,
    I'm trying to create a WLST script, whcih will create Timer Event Generator on WLI 9.2 MP2.
    Though to some extent script runs perfect, but it gives error when calling MBean egCfgMBean = getTarget("TimerEventGeneratorss/TimerEventGenerators")
    Here is my script:-
    import weblogic.Deployer
    import com.bea.wli.mbconnector.timer as timereggen
    import com.bea.wli.mbconnector.file as fileeggen
    import com.bea.wli.management.configuration as wlicfg #Must have wli.jar in classpath
    import java.lang.Boolean as bool
    import jarray
    import sys
    print 'Starting the Timer Event Generation Configuration script .... '
    if connected != 'true':
    print 'Connecting to weblogic server .... '
    connect(userName,passWord,URL)
    else:
    print 'Connected'
    try:
    print "Creating Timer EG ", timerEgName
    timereggen.TimerConnGenerator.main(["-inName", timerEgName,"-outfile", domaindir + "/" + "WLITimerEG_" + timerEgName + ".jar"])
    #timereggen.TimerConnGenerator.main(["-inName", timerEgName,"-outfile", domaindir,"-destJNDIName",jndiName])
    #timereggen.TimerConnGenerator.main(["-inName", timerEgName,"-outfile", domaindir])
    #wlst.config()
    custom()
    #egCfgMBean = wlst.getTarget("TimerEventGenerators/TimerEventGenerators")
    egCfgMBean = getTarget("TimerEventGeneratorss/TimerEventGenerators")
    egMBean = egCfgMBean.newTimerEventGenConfigurationMBean(timerEgName)
    #egMBean = cmo.getTimerEventGenConfigurationMBeans()
    cData = jarray.zeros(1, wlicfg.TimerEventGenChannelConfiguration)
    print 'pass one'
    cData[0] = wlicfg.TimerEventGenChannelConfiguration()
    cData[0].setChannel(channel)
    cData[0].setEffective(effectiveTime)
    #cData[0].setExpiry(expiryTime)
    cData[0].setFrequency(frequency)
    cData[0].setMessageContent(message)
    cData[0].setCalendarName(calendar)
    cData[0].setPublishAsUser(publishAsUser)
    egMBean.setChannels(cData);
    appName = "WLITimerEG_" + timerEgName
    deploy( appName, domaindir + "/" + appName + ".jar", adminServerName, "nostage" )
    cd("Applications/" + appName)
    set("LoadOrder", 1500)
    cd("../..")
    print "script returns SUCCESS"
    except:
    print "ERROR: configuration"
    #dumpStack()
    # Finished
    print 'Disconnecting from server...'
    disconnect('y')
    print 'Finished.'
    exit()
    I really need some help to fix this issue.
    Thanks
    dig

    Hi,
    RDBMS Event Generator Channel Rule Definition
    When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
    You should always use the navigation links provided and create a new channel rule definition.
    http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
    http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
    http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
    This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
    Regards,
    Kal

  • Any issues using FreeAgent Desk with Time Machine?

    I have a Free Agent Desk product #9ZC2AG-501, 1 TB.
    I reformatted it for HFS+ and use it on USB (this model only has a USB interface) with a hub and my Mac Book Pro running Lion (10.7.2).
    Although I have observed this "problem" with previous O/S versions I think it is happening more often now.
    Time Machine will make the initlial backup fine (takes 6-8 hours), then it will make incremental backups fine for several weeks, maybe 2 months.
    Then I will get a TM error.  And next reboot, I will usually get a "OSX Can't fix this drive.." error message - I can see a disk repair task runs first, I assume the O/S does a check before it mounts the drive.  Sometimes if I run Disk Utility and ask it to verify or repair the drive or volume it completes and the drive works again.
    More often latelty, it will tell me it can't fix the drive and I should save what I can and start over.
    Since its a backup anyway, I just erase or re-partition it and TM starts up again.
    And the scenario repeats.
    The drive errors varry.  Usually very drastic-looking things like "scrambled index" or "corrupted index" or "invalid structure".
    I don't see how or why an external drive would care what O/S is being used with it.  But I would like to know if there is some deep technical reason this model cannot be used with Time Machine?  So I can either fix it or know to give up.
    The USB info for the hub and drive is:
    Hub:
      Product ID:          0xf103
      Vendor ID:          0x2001  (D-Link Corporation)
      Version:          1.00
      Speed:          Up to 480 Mb/sec
      Location ID:          0xfa400000 / 2
      Current Available (mA):          500
      Current Required (mA):          0
    FreeAgent       :
      Capacity:          1 TB (1,000,204,884,992 bytes)
      Removable Media:          Yes
      Detachable Drive:          Yes
      BSD Name:          disk1
      Product ID:          0x3008
      Vendor ID:          0x0bc2  (Seagate LLC)
      Version:          1.38
      Serial Number:          2HC015KJ
      Speed:          Up to 480 Mb/sec
      Manufacturer:          Seagate
      Location ID:          0xfa430000 / 5
      Current Available (mA):          500
      Current Required (mA):          2
      Partition Map Type:          GPT (GUID Partition Table)
      S.M.A.R.T. status:          Not Supported
      Volumes:
    disk1s1:
      Capacity:          209.7 MB (209,715,200 bytes)
      BSD Name:          disk1s1
      Content:          EFI
    RcookeBU:
      Capacity:          999.86 GB (999,860,912,128 bytes)
      Available:          644.05 GB (644,050,997,248 bytes)
      Writable:          Yes
      File System:          Journaled HFS+
      BSD Name:          disk1s2
      Mount Point:          /Volumes/RcookeBU
      Content:          Apple_HFS

    I have this same drive. It's a USB drive intended for PCs not Macs. At the time, Seagate offered Free Agent drives specifically for Macs. They weren't just pre-formatted to HFS+. They also came with different energy-saving settings in the firmware. The Free Agent Desk for PC that you and I have has additional energy-saving features designed for Windows-only. When used with a Mac, the drive will "sleep" or spin-down at the wrong time, even during Time Machine backups, resulting in file system corruption on the Seagate drive.
    Seagate support recommended disabling the drive's sleep features using a Windows utility, but that didn't actually solve the problem. In fact, there is no way to completely eliminate the problem, but you can reduce it greatly by disabling sleep and hard disk sleep on your Mac (via System Preferences).
    For me, disabling sleep completely allows me to use Time Machine on the disk, but clones will still fail periodically.
    You can try to live with it or put it on Craigslist and sell it to someone with a PC.

  • Iphoto from back-up with Time Machine

    Am using an external drive with automatic backup every hour but,I cannot open iphoto with Time Machine (can open all other applications) and for some reason can't follow some of the suggested solutions - my need is to recover just a few photos from a recently deleted folder. I am reasonably confident that I am not too old to understand my Mac.
    Thanks in advance for a solution.
    Ernest.

    You need to restore the Library from Time Machine.
    In brief: TM is an incremental back up application. The first time it runs it copies the whole Library, thereafter it just copies the changes. So, the actual library on TM is a colection of bits: Original+changes = Current Library. So you can't open iPhoto with Time Machine or open an iPhoto Library that's in a Time Machine back up.
    Restoring is the process where TM gathers up all the bits and puts them back together for you.
    And this is how you do it:
    http://support.apple.com/kb/HT4927

Maybe you are looking for

  • Error while integrating BEx Query with Cognos

    Hi all, we have made 999 rows and 150 columns.. but we r unable  to integrate it with cognos if we remove free characteristics.... and it thows me the following error 1.BAP-ERR-0002 a BAPI error has occured in the function module RFC_READ_TABLE. NOT_

  • Reverse Transfer??? i can't get it to work

    okay so i got a new comp and i wanted to reverse transfer all my music from my ipod (4th gen) to my itunes... i followed the instructions given at this link: http://discussions.apple.com/message.jspa?messageID=797432#797432 but when i try to copy the

  • Nokia PC Suite and Nokia 909/1020

    I'm a fan of using the PC Suite for messaging particularly. I just downloaded the new version in order to go with my new Nokia909/1020. First of all it tells me that I need to cancel the File transfer Mode in order to connect via USB. which I would l

  • Can't publish an OAM anymore

    Hi there, when I want to publish an OAM I always get this message: "an error occurred. Please save your work and restart Edge Animate." I  tried simple animations in a fresh project just with text, to sort out problems with footage. The publishing ac

  • Travel Request Form in SharePoint 2010

    I want to make Travel Request related site on SharePoint 2010. I have some basic plan in my mind how it will. Its like User will fill form (Travel Form) then it will go to his/Her Manager then after approval, it will go to HR department. From here on