OBIU Extract Multithread problem.

We have come across a problem in our ETL. Some batch programs when multi-threaded, such as C1-RECTD, produce duplicate files. Does anyone know which of base batch programs have this problem ? Thank you.

We have come across a problem in our ETL. Some batch programs when multi-threaded, such as C1-RECTD, produce duplicate files. Does anyone know which of base batch programs have this problem ? Thank you.

Similar Messages

  • Extraction Pack Problem in Integration of DataStage 7.5.1 with BI 7.0

    Hi,
    I am facing problem in loading data using DataStage Extraction Pack. I am using DataStage version 7.5.1A and BW pack 4.2.1. The Load Pack is working fine.
    In Extraction Pack properties, The InfoSpoke "xxxxxxxx" is appearing in the search, while trying to select the InfoSpoke the system is showing 'The InfoSpoke "xxxxxxxx" was not found'.
    Can you please help me in over coming the issue. Any input is much appreciated.
    Thanks in advance,
    Kindest Regards
    Surya.

    Hello,
    But the problem is that when I close the terminal all connection are lost and given error "The requested URL could not be retrieved" That's not very surprising, as APEX Listener is running in Standalone Mode in your current scenario. If you close the terminal session that the JVM is running in you kill the JVM and hence APEX Listener.
    You could use a tool like "nohup" to detach the process you start from your terminal session. But using the Standalone Mode for a (long running) production scenario is not recommended anyway, and...
    I want to configure listener with EBS .When I start instance automatic start apex listener... obviously not your actual aim.
    So, EBS shall be your target. Shoudn't be a huge problem, as EBS comes with an OC4J Container and OC4J is one of the Containers officially supported by APEX Listener. I'm not sure if your EBS already ships with the JDK version needed, but as soon as it runs at least 1.6.0_20 it should work.
    As I've already replied to your question in {thread:id=1118604} there is a working approach described in {message:id=10069317}.
    Did you try that one? If so and it didn't work out, could you please describe the problems you've encountered?
    Thanks,
    Udo

  • Extract Audio Problems

    I am having a frustrating problem with iMovie. I am trying to make a video with sound playing over still images, bu every time i try to extract audio from the video i have, it will not work. It loads, taking 7-12 minutes, and then when i substitute the video clip for the photo, the sound does not show up. Why is this happening? The video footage, by the way, was shot with the built in iSight.

    I'm not quite certain, from your description, of exactly what you're trying to do..
    If you want to insert still photos in place of some of your video, first do what Bengt suggests, in order to extract all the audio from your video, which will put the audio in the Audio Track underneath the video.
    Then, if you want to insert a photo which is in your 'Clips Pane' within the "media" section on the right-hand side, do the following:
    (a) Choose the photo from your Library, and you can choose whether to tick the 'Ken Burns' box or not (..ticking it will apply a "zoom" effect to your photo..) then click the 'Apply' button. That generally adds your photo to the end of your movie.
    (b) With the photo still Selected (..i.e; it has a blue highlight over it..) hold down the Apple key and press 'C' to Copy the photo.
    (c) Position your Playhead where you want the photo to be inserted, and on the top-line menu choose 'Advanced' and 'Paste Over at Playhead' ..or just hold down the Shift and Apple keys and jab 'V' to Insert.
    The photo will now be inserted to replace the same duration of the original material in your video track, and the original, extracted, audio will be preserved.
    If - on the other hand - you're trying to insert some video to replace a photo, just do the same steps, but Copy, position the Playhead, and then 'Paste Over' the video clip to replace the previous photo.
    Using those steps, the amount of original material which is cut out, to be replaced by the new material, is automatically calculated by iMovie, and you don't have to worry about making sure that you've chopped out exactly the right amount to match whatever you're replacing it with.
    The audio, benath in the Audio Track, should be entirely unaffected.
    NOTE, though ..that if you then apply any transitions [except 'Overlap'] between the original material and the newly-inserted shots - this applies to adding transitions in any circumstances - then the entire video track will be shortened by the same duration as the duration of the transition(s), so if you're trying to keep the picture synchronised to the audio, then, er, sorry, but it'll drift out of sync!

  • BW GENERIC EXTRACTION DELTA PROBLEM

    I have a problem for extracting delta from R/3 to BW.
    Init data is loaded from R/3 to BW system for ZST_ORDER datasource.
    Repair full request and selection parameter is created on date August 1st 2007 to August15th 2007.
    During the delta extraction - A lot of records around 500,000 records are getting extracting from R/3 to BW.
    R/3 side - There is only 5 entries available in AUFK table.
    It should extract delta only less than 35 entries.
    ZST_ORDER is generic datasource . Delta captured field is DATUM -New status changed record value 2.
    Advance Thx for your help. The code looks like
    FUNCTION ZST_ORDER.
    ""Local Interface:
    *" IMPORTING
    *" REFERENCE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
    *" REFERENCE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *" REFERENCE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE DEFAULT 1000
    *" REFERENCE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *" REFERENCE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *" TABLES
    *" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *" E_T_DATA STRUCTURE ZST_ORDEROPTIONAL
    *" EXCEPTIONS
    *" NO_MORE_DATA
    *" ERROR_PASSED_TO_MESS_HANDLER
    TABLES: AUFK, "Order master data
    TJ02T, "System status texts
    TJ30T, "Texts for user status
    JSTO. "Status object information
    DATA DECLARATION
    DATA: L_DATE TYPE DATS,
    L_STATUS TYPE J_STATUS,
    L_LINES TYPE SY-TABIX,
    L_CHANGED(1) TYPE C.
    Auxiliary Selection criteria structure
    DATA: L_S_SELECT TYPE SRSC_S_SELECT.
    Another data objects
    Service Order Data
    DATA: BEGIN OF LT_AUFK OCCURS 0,
    AUFNR LIKE AUFK-AUFNR,
    AUART LIKE AUFK-AUART,
    ERDAT LIKE AUFK-ERDAT,
    AEDAT LIKE AUFK-AEDAT,
    STDAT LIKE AUFK-STDAT,
    AEZEIT LIKE AUFK-AEZEIT,
    ERFZEIT LIKE AUFK-ERFZEIT,
    IDAT1 LIKE AUFK-IDAT1,
    IDAT2 LIKE AUFK-IDAT2,
    IDAT3 LIKE AUFK-IDAT3,
    LOEKZ LIKE AUFK-LOEKZ,
    OBJNR LIKE AUFK-OBJNR,
    END OF LT_AUFK.
    Individual Object Status
    DATA: BEGIN OF LT_JEST OCCURS 0,
    OBJNR LIKE JEST-OBJNR,
    STAT LIKE JEST-STAT,
    INACT LIKE JEST-INACT,
    CHGNR LIKE JEST-CHGNR,
    END OF LT_JEST.
    ***Change Documents for System/User Statuses (Table JEST)
    DATA: BEGIN OF LT_JCDS OCCURS 0,
    OBJNR LIKE JCDS-OBJNR,
    STAT LIKE JCDS-STAT,
    CHGNR LIKE JCDS-CHGNR,
    USNAM LIKE JCDS-USNAM,
    UDATE LIKE JCDS-UDATE,
    UTIME LIKE JCDS-UTIME,
    INACT LIKE JCDS-INACT,
    CHIND LIKE JCDS-CHIND,
    END OF LT_JCDS.
    DATA: BEGIN OF LT_JSTO OCCURS 0,
    OBJNR LIKE JSTO-OBJNR,
    STSMA LIKE JSTO-STSMA,
    END OF LT_JSTO.
    STATIC FIELDS
    STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    counter
    S_COUNTER_DATAPAKID LIKE SY-TABIX,
    cursor
    S_CURSOR TYPE CURSOR.
    User-defined Ranges
    RANGES: L_R_AUFNR FOR AUFK-AUFNR ,
    L_R_ERDAT FOR AUFK-ERDAT.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
    IF I_INITFLAG = SBIWA_C_FLAG_ON.
    Check DataSource validity
    CASE I_DSOURCE.
    WHEN 'ZST_ORDER '.
    WHEN OTHERS.
    RAISE ERROR_PASSED_TO_MESS_HANDLER.
    ENDCASE.
    Copy selection criteria for future extractor calls (fetch-calls)
    APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    Fill parameter buffer for data extraction calls
    S_S_IF-REQUNR = I_REQUNR.
    S_S_IF-DSOURCE = I_DSOURCE.
    S_S_IF-MAXSIZE = I_MAXSIZE.
    S_S_IF-INITFLAG = I_INITFLAG.
    APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
    ELSE.
    First data package -> OPEN CURSOR
    IF S_COUNTER_DATAPAKID = 0.
    LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT
    WHERE FIELDNM = 'AUFNR'.
    MOVE-CORRESPONDING L_S_SELECT TO L_R_AUFNR.
    APPEND L_R_AUFNR.
    ENDLOOP.
    LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT
    WHERE FIELDNM = 'ERDAT'.
    MOVE-CORRESPONDING L_S_SELECT TO L_R_ERDAT.
    APPEND L_R_ERDAT.
    ENDLOOP.
    LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT
    WHERE FIELDNM = 'DATUM'.
    L_DATE = L_S_SELECT-LOW.
    ENDLOOP.
    OPEN CURSOR WITH HOLD S_CURSOR FOR
    SELECT AUFNR AUART ERDAT
    AEDAT OBJNR AEZEIT
    STDAT ERFZEIT IDAT1
    IDAT2 IDAT3 LOEKZ
    FROM AUFK
    WHERE AUFNR IN L_R_AUFNR AND
    ERDAT IN L_R_ERDAT.
    ENDIF.
    Fetch records into interface table LT_AUFK
    FETCH NEXT CURSOR S_CURSOR
    APPENDING CORRESPONDING FIELDS OF TABLE LT_AUFK
    PACKAGE SIZE S_S_IF-MAXSIZE.
    IF SY-SUBRC <> 0.
    CLOSE CURSOR S_CURSOR.
    RAISE NO_MORE_DATA.
    ENDIF.
    Determining the number of lines of the table LT_AUFK .
    L_LINES = LINES( LT_AUFK ).
    IF L_LINES IS NOT INITIAL.
    Sort the internal table LT_AUFK
    SORT LT_AUFK BY OBJNR ASCENDING.
    Selecting the records from JCDS depending upon the entries in LT_AUFK.
    SELECT OBJNR STAT CHGNR USNAM
    UDATE UTIME INACT CHIND
    INTO TABLE LT_JCDS
    FROM JCDS
    FOR ALL ENTRIES IN LT_AUFK
    WHERE OBJNR EQ LT_AUFK-OBJNR
    AND ( CHGNR EQ '001'
    OR UDATE >= L_DATE ).
    Sort the internal table lt_jcds.
    SORT LT_JCDS BY OBJNR STAT CHGNR ASCENDING.
    Select records from table JEST depending upon the entries in LT_AUFK.
    SELECT OBJNR STAT INACT CHGNR
    INTO TABLE LT_JEST
    FROM JEST
    FOR ALL ENTRIES IN LT_AUFK
    WHERE OBJNR = LT_AUFK-OBJNR.
    SELECT OBJNR STSMA
    INTO TABLE LT_JSTO
    FROM JSTO
    FOR ALL ENTRIES IN LT_AUFK
    WHERE OBJNR = LT_AUFK-OBJNR.
    SORT LT_JSTO BY OBJNR.
    ENDIF.
    LOOP AT LT_JEST.
    CLEAR: LT_AUFK,
    l_changed.
    CLEAR L_CHANGED.
    CLEAR LT_JSTO.
    READ TABLE LT_JSTO WITH KEY OBJNR = LT_JEST-OBJNR BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    E_T_DATA-STSMA = LT_JSTO-STSMA.
    ENDIF.
    *End**
    Read the data from LT_AUFK.
    READ TABLE LT_AUFK WITH KEY OBJNR = LT_JEST-OBJNR BINARY SEARCH.
    E_T_DATA-AUFNR = LT_AUFK-AUFNR.
    E_T_DATA-AUART = LT_AUFK-AUART.
    E_T_DATA-ERDAT = LT_AUFK-ERDAT.
    E_T_DATA-AEDAT = LT_AUFK-AEDAT.
    E_T_DATA-AEZEIT = LT_AUFK-AEZEIT.
    E_T_DATA-ERFZEIT = LT_AUFK-ERFZEIT.
    E_T_DATA-IDAT1 = LT_AUFK-IDAT1.
    E_T_DATA-IDAT2 = LT_AUFK-IDAT2.
    E_T_DATA-IDAT3 = LT_AUFK-IDAT3.
    E_T_DATA-LOEKZ = LT_AUFK-LOEKZ.
    E_T_DATA-INACT = LT_JEST-INACT.
    E_T_DATA-CHGNR = LT_JCDS-CHGNR.
    e_t_data-datum = lt_aufk-erdat.
    READ TABLE LT_JCDS WITH KEY OBJNR = LT_JEST-OBJNR
    STAT = LT_JEST-STAT
    CHGNR = '001'
    BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    E_T_DATA-UDATE = LT_JCDS-UDATE.
    E_T_DATA-AEDAT = LT_JCDS-UDATE.
    E_T_DATA-UTIME = LT_JCDS-UTIME.
    E_T_DATA-AEZEIT = LT_JCDS-UTIME.
    E_T_DATA-CHIND = LT_JCDS-CHIND.
    E_T_DATA-USNAM = LT_JCDS-USNAM.
    e_t_data-chgnr = lt_jcds-chgnr.
    IF LT_JCDS-UDATE GE L_DATE
    AND L_DATE IS NOT INITIAL.
    L_CHANGED = 'X'.
    ENDIF.
    IF LT_JEST-CHGNR NE '001'.
    CLEAR LT_JCDS.
    READ TABLE LT_JCDS WITH KEY OBJNR = LT_JEST-OBJNR
    STAT = LT_JEST-STAT
    CHGNR = LT_JEST-CHGNR
    BINARY SEARCH.
    IF SY-SUBRC EQ 0.
    L_CHANGED = 'X'.
    E_T_DATA-AEDAT = LT_JCDS-UDATE.
    E_T_DATA-AEZEIT = LT_JCDS-UTIME.
    E_T_DATA-CHIND = LT_JCDS-CHIND.
    E_T_DATA-USNAM = LT_JCDS-USNAM.
    e_t_data-chgnr = lt_jcds-chgnr.
    ENDIF.
    ENDIF.
    IF LT_JEST-STAT(1) EQ 'I'.
    E_T_DATA-ISTAT = LT_JEST-STAT.
    ELSEIF LT_JEST-STAT(1) EQ 'E'.
    E_T_DATA-ESTAT = LT_JEST-STAT.
    ENDIF.
    IF L_CHANGED EQ 'X'
    AND L_DATE IS NOT INITIAL.
    APPEND E_T_DATA.
    ELSEIF L_DATE IS INITIAL.
    APPEND E_T_DATA.
    ENDIF.
    ENDIF.
    CLEAR: LT_AUFK,
    E_T_DATA.
    ENDLOOP.
    CLEAR LT_JEST.
    REFRESH LT_JEST.
    next data package
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    ENDIF. "Initialization mode or data extraction ?
    ENDFUNCTION.

    hi,
    for that quantity SALK3 is referring a different table in the reference field for your table fields. check that field and refer the correct table for that field in table view.
    table join has a problem in that. i think your joined some other table with that field. replace the field assignment or create a new view.
    hope this help you
    regards
    harikrishna N

  • Trying to create multithreading problems when opening file dialog

    Warning: Newbie to Labview...
    I have a problem in a rather complicated VI where bringing up the open file dialog halts some background operations.
    I would really like to reproduce this behaviour for various reasons, but am unable to. I've created a simple VI with a for-loop where the index feeds a sine converter which in turn feeds a tank indicator. This produces an oscillating behaviour. To this VI I've added a file dialog control.
    Regardless of the multithreading setup, I'm unable to get the oscillating of the tank indicator to stop when the dialog is open. Is there something I can do to get this behaviour? I realize it's unusual to try to break things, but it is rather important for me.
    Tha
    nk you,
    Nigel

    Hi,
    The for loop (all loops by the way) is halted until everything in it is
    finished.
    Try this:
    + Make a while loop
    + wire TRUE to the stop criterium.
    + Put an indicator on the 'I'.
    + Put a MS Wait in it (e.g. 80 ms), to prevent 100% processor time.
    Run it, and the indicator will increase fast.
    Now put any dialog in the while loop. E.g. a message box.
    The indicator will increase everytime you press 'OK'.
    Note: stop by pressing CTRL+. and clicking 'OK' several times.
    Regards,
    Wiebe.
    "N Cook" wrote in message
    news:[email protected]..
    > Warning: Newbie to Labview...
    >
    > I have a problem in a rather complicated VI where bringing up the open
    > file dialog halts some background operations.
    >
    > I would real
    ly like to reproduce this behaviour for various reasons,
    > but am unable to. I've created a simple VI with a for-loop where the
    > index feeds a sine converter which in turn feeds a tank indicator.
    > This produces an oscillating behaviour. To this VI I've added a file
    > dialog control.
    >
    > Regardless of the multithreading setup, I'm unable to get the
    > oscillating of the tank indicator to stop when the dialog is open. Is
    > there something I can do to get this behaviour? I realize it's unusual
    > to try to break things, but it is rather important for me.
    >
    > Thank you,
    > Nigel

  • Slo-Mo Extracted Audio Problem

    Hey all. Thanx for reading. My problem is such - I'm running a forty minute flick in iMovie 4.0.1. The other laptop I'm working on is a 1.33 GHz PowerPC G4 (10.2.7). Now, a few of the clips I have I've put in slow motion. Because the movie is so long, I have to extract the audio from the whole thing or else the sound immediatly lags when I burn to a DVD. However, wherever the clip is slowed down, the audio sounds like those parts in The Matrix when they are getting sucked through the telephone - all choppy and digitized. I'm out of ideas. I tried saving the audio clip and slowing it down - nothing. I've tried extracting the audio before I slow it down - can't slow it down by itself. Even when I put it on this laptop and my sister's "dome" mac, (don't know the proper name,lol) it does the same thing. Please, anyone, help. TIA! Matt.

    Well, the back and forth using the camera worked - but it was a lot of labor. First I erased the two hundred or so other clips other than the five I wanted to work with. UN-extracted the audio, with the clips still in Slow Motion, and exported to the camera (which functioned, luckily). Quit iMovie, did not save the changes, and opened her back up, and re-imported the clips. Worked like a charm. Just like you said, it tricked iMovie into thinking the slow motion clip was just how the regular clip played. Stupid computer, haha.
    Lastly, just to clear it up. I was attempting to slow the clip AND the audio down the same, so, for instance, like when someone yells "Noooooo," it makes the voice deeper and longer. It's funny. But when I would extract the audio from the clip, it would go all Matrix and funky on me. No big deal anymore.
    And what the heck are you doing up at 4:45 in the morning? lol. Anyway, thanx for your input and time - I really appreciate it. All seems well. Thanks again, Matt.

  • Extracted Audio Problem

    Hello, I'm having a problem with my current project in iMovieHD. I learned through bitter experience that it was a good idea to extract/lock my audio back when I was using iMovie 4. Since using iMovieHD I have continued this practice, even though people tell me the shifting audio problem is no longer an issue. Anyway, today I extracted & locked the audio before I burned the DVD, and I find that the audio has been corrupted. It just makes random popping noises. When I put it in "View Waveform" mode, I can clearly see that the audio is still there. It just won't play now. Any suggestions as to what I can do to fix this problem. I can't go back to unextracting the audio now - too late for that. HELP!

    Well, the back and forth using the camera worked - but it was a lot of labor. First I erased the two hundred or so other clips other than the five I wanted to work with. UN-extracted the audio, with the clips still in Slow Motion, and exported to the camera (which functioned, luckily). Quit iMovie, did not save the changes, and opened her back up, and re-imported the clips. Worked like a charm. Just like you said, it tricked iMovie into thinking the slow motion clip was just how the regular clip played. Stupid computer, haha.
    Lastly, just to clear it up. I was attempting to slow the clip AND the audio down the same, so, for instance, like when someone yells "Noooooo," it makes the voice deeper and longer. It's funny. But when I would extract the audio from the clip, it would go all Matrix and funky on me. No big deal anymore.
    And what the heck are you doing up at 4:45 in the morning? lol. Anyway, thanx for your input and time - I really appreciate it. All seems well. Thanks again, Matt.

  • Helping , Observable's multithread problem, thread is losting ?

    i am practicing an example of Observable and Observer pattern. But one problem were occured as following:
    the programe will print out a 10*10 grid , and using observer pattern to change every grid 's color.
    The fill rule is that : 1. randomly to choose a beging grid,
    2. notify the four grid (left ,right , upper, below of the choosed grid) to change their's grid color.
    The problem is when using multithread to notify grid , not all of the grid will be changed color, but if using single thread to notify grid, then all of the grid will be notified, and color changed.
    the switch of the multithread and single thread is the P.java 's 62-66 line, and 67-71 line, the source is following, anyone can help to analysing the source, and found exactly where is reason of not all of the grids could be notified , very thanks.
    the starup class is the Guess10.java.
    the source :
    package guess10:
    package guess10;
    import java.util.*;
    import guess10.gui.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class P
        implements Observer {
      public P() {
      public P(int x, int y) {
        this.x = x;
        this.y = y;
      public static void main(String[] args) {
        P p1 = new P();
      int x;
      int y;
      public void open() {
    //    System.out.println("open " + this);
      public void update() {
    //    System.out.println("update " + this);
    //    System.out.println("[" + x + "," + y+"]");
        F.instance.getGrid(x, y).action();
      public void open(Observable ob) {
        open();
    //    System.out.println(this);
        ob.deleteObserver(this);
      public void update(final Observable ob) {
        update();
        ( (PObservable) ob).change();
    //    ob.notifyObservers(new Point[]{new Point(x+1,y)});
    //    ob.notifyObservers(new Point[]{new Point(x,y+1)});
    //    ob.notifyObservers(new Point[]{new Point(x+1,y+1)});
    //    ob.notifyObservers(new Point[]{new Point(x-1,y-1),new Point(x+1,y-1),
    //    new Point(x+1,y+1),new Point(x-1,y+1)});
          final Point[] p = new Point[] {
              new Point(x - 1, y), new Point(x, y - 1),
              new Point(x + 1, y), new Point(x, y + 1)
         new Thread(new java.lang.Runnable() {
            public void run() {
                ob.notifyObservers(p);
          },"" + x +"," + y ).start();
    //      new java.lang.Runnable() {
    //        public void run() {
    //          ob.notifyObservers(p);
    //      }.run();
      public void update(Observable observable, Object object) {
    //    System.out.println(this+" " +Thread.currentThread().getName());
        Point[] p = (Point[]) object;
        for (int i = 0; i < p.length; i++) {
            if (this.x == p.x && this.y == p[i].y) {
    if ( ( (PObservable) observable).exist(this)) {
    open(observable);
    update(observable);
    public static int count = 0;
    public String toString() {
    return "x = " + x + " y = " + y;
    // now not used
    private Object lock = new Object();
    package guess10;
    import java.util.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class PLayout {
    private BitSet xb = new BitSet();
    private BitSet yb = new BitSet();
    PObservable o = new PObservable();
    public PLayout() {
    public static void main(String[] args) {
    PLayout PLayout1 = new PLayout();
    * create 100 p object, and store into Observable object
    public void init() {
    for (int i = 0; i < 10; i++) {
    for (int j = 0; j < 10; j++) {
    P p = new P(i, j);
    o.addObserver(p);
    // todo : need to subclass for the Observable ??
    // otherwise , how to set changed to true ?
    public void start(int x, int y) {
    o.change();
    o.notifyObservers(new Point[] {new Point(x, y)});
    package guess10;
    import java.util.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class PObservable
    extends Observable {
    public PObservable() {
    super();
    public static void main(String[] args) {
    PObservable PObservable1 = new PObservable();
    public synchronized void change() {
    this.setChanged();
    public synchronized boolean exist(P p) {
    return v.contains(p);
    private Vector v = new Vector();
    public synchronized void addObserver(Observer o) {
    super.addObserver(o);
    v.add(o);
    public synchronized void deleteObserver(Observer o) {
    super.deleteObserver(o);
    v.remove(o);
    package guess10;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class Point {
    public Point() {
    public Point(int x, int y) {
    this.x = x;
    this.y = y;
    public static void main(String[] args) {
    Point point1 = new Point();
    int x;
    int y;
    package guess10;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class Guess10 {
    public Guess10() {
    public static void main(String[] args) {
    Guess10 guess101 = new Guess10();
    guess101.start();
    public void start() {
    PLayout pl = new PLayout();
    pl.init();
    int x = 0;
    int y = 0;
    java.util.Random random = new java.util.Random(System.currentTimeMillis());
    x = random.nextInt(10);
    y = random.nextInt(10);
    pl.start(x, y);
    // try {
    // x = System.in.read();
    // y = System.in.read();
    // catch (IOException ex) {
    // ex.printStackTrace();
    // if(!isDigit(x) | !isDigit(y)) {
    // System.out.println("Not correct number! " + x + " " + y);
    // System.exit(1);
    // pl.start(x-'0',y-'0');
    static boolean isDigit(int ch) {
    return ( (ch - '0') | ('9' - ch)) >= 0;
    package guess10;
    import java.io.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class Out {
    public Out() {
    public static void main(String[] args) {
    Out out1 = new Out();
    public static final PrintStream out = System.out;
    public static void print(PLayout playout) {
    the package guess10.gui
    package guess10.gui;
    import java.awt.*;
    import javax.swing.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class F
    extends JFrame {
    public static F instance = new F();
    public F() {
    super("O G");
    init();
    setVisible(true);
    private Grid[] ps = new Grid[100];
    public Grid getGrid(int x, int y) {
    return ps[x * 10 + y];
    public void init() {
    Container con = this.getContentPane();
    con.setLayout(new java.awt.GridLayout(10, 10));
    for (int i = 0; i < 10; i++) {
    for (int j = 0; j < 10; j++) {
    con.add(ps[i * 10 + j] = new Grid());
    setSize(400, 400);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    public static void main(String[] args) {
    F f1 = new F();
    f1.getGrid(4, 3).setBackground(Color.yellow);
    package guess10.gui;
    import java.awt.*;
    import javax.swing.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class Grid
    extends JPanel {
    public Grid() {
    super();
    this.setBorder(BorderFactory.createEtchedBorder());
    // this.add(new javax.swing.JTextField("777"));
    public static void main(String[] args) {
    Grid grid1 = new Grid();
    public void action() {
    try {
    Thread.currentThread().sleep(100);
    catch (InterruptedException ex) {
    // this.setBackground(Color.yellow);
    this.setBackground(new Color(r--, g--, b++));
    // add(new javax.swing.JLabel(Thread.currentThread().getName()+" "+count++));
    // this.validate();
    private static int r = 255;
    private static int g = 230;
    private static int b = 128;
    private static int count = 0;

    copy the java file into notepad, and save to .java file,
    then javac guess10\*.java file to compile, and java guess.Guess10 to run , then can see the gui's output,
    Only you see the gui's output, you can understand what i describe.
    Only seeing the source will not found the reason of the problem, it's need to run indeedly.
    is there anyone to try that ?

  • Delta  reocrds are not getting extracted . Problem with delta Quaue

    Hello friends .
    Could you please help me in this scenario ?
    It’s related to delta load from application 12 ,  - 2LIS_12_VCITM.
    Some how data is not getting transferred from LBWQ to RSA7 . There are more than 200000 entries in LBWQ , but the job is not able to transfer any entries to RSA7.
    For rest other application , data is going correctly .
    The job status showing is correct , like XXXXX LUW are transferred … there is no error in Job log , it technically correct .
    I have found one notes , in SAP service market place , but still it doesn’t match with my job status . My job status is NOTESID  ..where as per the notes it should WKEDPI*** ( something like this ) .
    I have taken below steps to solve this problem but still it doesn’t work .
    1.     Removed job from schedule ( the job for LBWQ to RSA7 ) and Executed the job manually .
    2.     Executed Program RMSBW12.
    3.     Deleted the Delta Q from RSA for application 12 and regenerated the same once again by running the infopackage , early delta initialization with out data transfer , . Once Delta Q is generated , run the job once again .
    I hope , I tried with all correct way ..but still I could not able to transfer the data .
    But with all above steps , still data is not transferred . Daily infopackage is running as per the schedule , and bringing only 0 record . If it still doesn’t work then I have to do Re-initilization .  and this is big cost for us . as we have to lock the sys for users and so on .
    Could you please give me some tips , that how can I transferr the data from LBWQ to delta Q ( RSA7) . If it works then definitely , I will save my lot of time .
    Please suggest me , how can I proceed . Please save me from this situation.
    Many many thanks in advance.
    Regards,

    Hi Akshay,
    Go to SMQ1 and check MCEX12 Queue. If your delta records are piling up in SMQ1 and not being transfered to RSA7, you need to check your back gound job control option once again.
    The back ground collector job will collect the recrords from SMQ1 and push to RSA7.
    Try to execute RMBWV312 program in SE38 and manully push all the recrods to RSA7. Once all the records are available in RSA7 you will find the MCEX12 queue will be cleared in SMQ1.
    Cheers
    Praveen

  • LO Extraction 2LIS_02_ITM Problem

    Hi guys,
    Me again. I tried using V3 updating to extract data for business content cube 0PUR_C01. I also installed only one of the 4 update rules (the one that uses 2LIS_02_ITM as its datasource) for this cube.
    Everything went fine, up to the point wherein i was supposed to perform the [Delete set-up tables / perform extraction] part of the process.
    This is what the procedure i used (please tell me if i did something wrong):
    1. Maintained extract structure for 2LIS_02_ITM (LBWE)
    2. transfered datasource 2LIS_02_ITM using tcode RSA5
    3. Checked transfer in RSA6
    4. Maintained datasource 2LIS_02_ITM in LBWE
    5. replicated datasource in BW
    6. installed business content cube 0PUR_C01 with all dependent InfoObjects but with only 1 update rule (the one that uses 2LIS_02_ITM as its datasource).
    7. Assigned infosource 2LIS_02_ITM to datasource 2LIS_02_ITM
    8. chacked activated business content cube 0PUR_C01 and update rules. (although not all key figures where activated, some of them, those without attached routines from the business content, did not have assigned key figures.
    9. Activated datasource in LBWE
    10. set parameters for job control in LBWE
    11. Chose V3 serialized update as the update mode in LBWE
    12. Created an infopackage for datasource and infosource 2LIS_02_ITM.
    13. Started scheduling.
    An error in the monitoring came up. It said that:
    No data available
    Diagnosis
    The data request was a full update.
    In this case, the corresponding table in the source system does not
    contain any data.
    System response
    Info IDoc received with status 8.
    Therefor, no data could be seen in the infocube. Please do help me! I don't know what i did wrong.
    In need of help,
    Peter

    Roberto Negro,
    While filling setup table by using T-code OLI3BW (Purchasing) it is taking very long time.
    Please let me is there any way to rerduce this time.
    We are at BW 7.3 version.
    Regards,

  • Extracting dates problem

    customer table
    ===========
    customer_id varchar2(6)
    st_dt date
    ed_dt date
    dop varchar2(7)
    data
    ===
    customer_id st_dt ed_dt dop
    429100 2005/02/23 2006/03/20 0000007
    customer1 table
    ============
    customer_id varchar2(6)
    st_dt date
    ed_dt date
    dop varchar2(7)
    dt date
    insert into customer1(customer_id, st_dt, ed_dt, dop, dt)
    select a.customer_id, a.st_dt, a.ed_dt, a.dop, a.st_dt+b.tita
    from customer a, (select rownum-1 tita from user_objects) b
    where a.st_dt+b.tita <= a.ed_dt
    and instr(a.dop, decode(to_char(a.st_dt+b.tita, 'd')-1,0,7,to_char(
    a.st_dt+b.tita,'d')-1))>0
    order by a.customer_id,a.st_dt+b.tita
    The purpose of thie query is to extract all the dates in the customer table st_dt to ed_dt fields based on the field dop, 0000007 indicates Sunday, if the value is 1004007, it indicates monday, thursday and sunday. The results will insert into customer1 table, however the results are different if I execute the same query on different machine, they both run on oracle 10g database.
    If i change st_dt to 2005/02/23 and ed_dt to 2005/03/20, it returns the right result, it seems that the ed_dt doesn't work if I change the year to 2006.
    what's wrong with this query ? or is there something to do with the date settings in my database ?
    thanks.

    (select rownum-1 tita from user_objects) bInteresting way of creating a counter :)
    Anyways, I guess you should not pick a date range that span more days than you have objects in your schema. You can possibly extend the range by selecting from all_objects instead :-)))))

  • Extracting Audio Problem

    I have a video in .mpg format that I want to extract the audio from to listen to on my iPod.
    However, the option to extract the audio isn't available for this file, so I tried converting it to a different video file first.
    But when I convert it to a different video file, the audio goes missing.
    Any help?
    I have the newest version of QT, v7.1.5

    QT will not export the sound from mpegs, as this Apple article details:
    QT Mpeg Limitations
    There is a freeware that will export both sound and video from mpg to various Quicktime formats:
    Mpeg StreamClip</A

  • Socket and multithreading problem (flow control)

    This code is heavily influenced by the KKMultiServerThread. I am having problems controlling the thread flow.
                 login = new MultiServerThreadLogin(serverSocket.accept(), serverSocket);
            login.start();     
              while(true){
                 System.out.println(login.getAuthen());
                 while(login.getAuthen()){
                      System.out.println("doing hello");
                      hello = new KKMultiServerThread(serverSocket.accept(), serverSocket);
                      hello.start();
                      if(hello.getFlag())
                      break;
              }here, you can see that i am trying to start a thread to login the user and then recieve files from the cilent. When my GUI runs, there is no problem whatsoever that is for the 1st time, however when i try running the 2nd time, the code as u can see, doesnt allow that... so is there anyway to break away from the inner loop?

    hey thanks for replying... i'm sorry but in a rush here...
    this snippet resides in the server. There are 2 classes, namely MultiServerLoginThread and KKMultiServerThread, both extends Thread.
    The function of the MultiServerLoginThread is to read in bytes of Secretkey, username(encrypted) and password(encrypted). This should only take place once.
    The function of theother thread, KKMultiServerThread is to read in the file name to be transferred and the contents. This is based on the KKMultiServerThread which can be found somewhere in this forum... i hope...
    The KKMultiServerThread is started over and over because the client is sending multiple files. Hence the while loop. However after sending the last file, it should go to the MultiServerLoginThread....
    One thing i don't really get it is that if i were to do this(put the creation of the login thread within the while loop):
    while(true){
                 System.out.println(login.getAuthen());
                 login = new MultiServerThreadLogin(serverSocket.accept(), serverSocket);
            login.start();
                 while(login.getAuthen()){
                      System.out.println("doing hello");
                      hello = new KKMultiServerThread(serverSocket.accept(), serverSocket);
                      hello.start();
                      if(hello.getFlag())
                      break;
              }The GUI totally hangs.
    More explanation...
    hello.getFlag() returns the flag when the client has finished sending all the files
    login.getAuthen() returns whether the user has successfully logged in with correct creditials

  • Multithreaded problem in read and write thread

    This is a producer consumer problem in a multi-threaded environment.
    Assume that i have multiple consumer (Multiple read threads) and a
    single producer(write thread).
    I have a common data structure (say an int variable), being read and written into.
    The write to the data sturcture happens occasionally (say at every 2 secs) but read happens contineously.
    Since the read operation is contineous and done by multiple threads, making the read method synchronized will add
    overhead(i.e read operation by one thread should not block the other read threads). But when ever write happens by
    the write thread, that time the read operations should not be allowed.
    Any ideas how to achive this ??

    If all you're doing is reading an int, then just use regular Java synchronization. You'll actually get a performance hit if you're doing simple read operations, as stated in the ReadWriteLock documentation:
    Whether or not a read-write lock will improve performance over the use of a mutual exclusion lock depends on the frequency that the data is read compared to being modified, the duration of the read and write operations, and the contention for the data - that is, the number of threads that will try to read or write the data at the same time. For example, a collection that is initially populated with data and thereafter infrequently modified, while being frequently searched (such as a directory of some kind) is an ideal candidate for the use of a read-write lock. However, if updates become frequent then the data spends most of its time being exclusively locked and there is little, if any increase in concurrency. Further, if the read operations are too short the overhead of the read-write lock implementation (which is inherently more complex than a mutual exclusion lock) can dominate the execution cost, particularly as many read-write lock implementations still serialize all threads through a small section of code. Ultimately, only profiling and measurement will establish whether the use of a read-write lock is suitable for your application.

  • GUI Multithreading problems

    I'm making a chat client and I'm having problems with the threading around the GUI. It works when I don't use the GUI (and ActionListeners aren't at fault). I basically have two threads, a send thread and a receive thread, which are both subclasses that extend Thread. When I start them through the GUI, on an ActionListener, they don't work... but when I start them in a program that is GUI-less, they do work. Just for clarification, it's not the ActionListeners at fault, I tried doing a System.out on the same ActionListener and it worked.
    A peculiarity is that when I make a new instance of the same frame [another frame.setVisible(true)] in my Receive thread, it starts receiving on the new window. I get the messages from the server, but I can't send stuff. I used to view this as a half-success, but now I think I'm going about it all wrong.
    So, here's my questions:
    1.Do I need to make more threads? I thought that everything outside the Receive and Send threads were naturally in a thread themselves, but it seems that they are not. Should I put the TextArea in my GUI that receives messages in a different Thread?
    2.Or is the problem that I have to somehow refresh the frame without causing it to make new frames?

    It's hard to tell what's going on without seeing your code. What do you mean when you say "When I start them through the GUI, on an ActionListener, they don't work"? Does that mean the threads don't start, or you don't see anything happening in GUI, or everything freezes, or... etc, etc.? Please post code or describe the sequence of events in detail so we can help.
    As a guess, it sounds like you're starting your threads when you press send, which doesn't sound right. In a chat, both threads should be running from the beginning, and when you have stuff to send you put it in a queue, then let the send thread pick it up. The receive thread just receives and puts messagese in the GUI. - see http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html

Maybe you are looking for