Problem with Apex_application.f01(i),Apex_application.f02(i),

Hi,
I have written Apex_item.check box,apex_item.text in SQL query,so i got check box and text item to each row in a report..
here my requirement is that i should pass text item value which has enable the check box so in Process i have written code like..
FOR i IN 1 .. APEX_Application.g_f01.COUNT
LOOP
apps.napp_start_ir_pkg.generate_report_data(APEX_Application.g_f01(i)
,APEX_Application.g_f02(i)
END LOOP;
COMMIT;
Here the issue is I have enabled 5 check boxes randomly i.e row 1,5,6,8,9 and entered values in a text item respectively after that i click submit button.so here APEX_Application.g_f02(i) are passing null values to the procedure..
How can i pass text values to procedure?
I have been facing this problem for a 10 days..can you please guide me how to write code in process for passing the text values also..
Thanks in advance...
Regards
Narender B

Bob37 wrote:
I can't imagine how that would work. I can only repeat what I said above in the reply Posted: Nov 11, 2011 3:26 PM Your solution should work, however not in all cases; certainly not without restricting the tabular form (specifically, removing the ability for the user to re-order fields)
You should have values in g_f02 after submit, but you can't access G_f02 using "g_f02(i)"
'i' will be equal to 1,2,3,4,5 and you need (1,5,6,8,9) which are the row numbers of the checked checkboxes.
Absolutely right
To resolve that bit, your code should be
FOR i IN 1 .. APEX_Application.g_f01.COUNT
LOOP
apps.napp_start_ir_pkg.generate_report_data(APEX_Application.g_f01(i)
,APEX_Application.g_f02(Apex_application.g_f01(i))
END LOOP;
COMMIT;Note the G_f02 array access difference using g_f02(Apex_application.g_f01(i)) instead of g_f02(i)
In other words, and in your example,
Apex_application.g_f01(1) = 1
Apex_application.g_f01(2) = 5
Apex_application.g_f01(3) = 6
Apex_application.g_f01(4) = 8
Apex_application.g_f01(5) = 9
This is not entirely correct, specifically it would only be correct if the checkbox field f01 maps onto the relative row number (i.e. the row number in the form itself, rather than the query). The OP does not indicate exactly which value he has mapped to f01 - if he's using the SQL pseudocolumn rownum AND he's allowing the form to be re-ordered, he's going to be in for a nasty shock when rows start being updated randomly (the absolute rownum from the query is retained, thus when you re-order, this value jumps all over the place).
It looks like he's mapped some sort of unique ID field onto f01, which I believe will not work either (because he still has the same problem - namely that the index for the array f02 won't necessarily match that of f01...
Bearing in mind, I'm still using 3.x, there might be an apex-specific row number which retains the relative row number value - typically, I map my checkbox field to a unique ID and use that to make updates, although I've not really implemented many forms that reference multiple page items in the way the OP wishes to.

Similar Messages

  • Problem with apex_application.g_fxx.count

    Okay, I am at my wits end on this one.
    I'm running Apex 4, and on one of my screens I have a manually created tabular report. For one of the master records, this tabular report returns 12 rows, yet apex_application.g_fxx.count consistently returns 24 as the count. For other master records, this is working correctly however, returning the same number as what is showed on screen.
    I've tried to duplicate it on apex.oracle.com, but it works correctly there as well.
    I've checked the data table, and there are only twelve rows there, same as what the tabular report shows. I've added in TONS of code to report back what is happening and everything looks fine in the code and processing, but the data that gets saved is out out sync, since it appears that for some reason the xxx.count (for only this one master record) is somehow doubling the count, so the data that gets saved is off. For example, say someone makes a change to the third sub-record, the 'count' suddenly becomes 6, so it saves the changes for the sixth sub-record.
    Has anybody else ever seen this phenomenon and knows what causes it? I've spent three fruitless days trying to track this down so far.
    Thanks,
    Bill Ferguson
    A bit of further information.
    In my app, users must list all commodities present at a site first (different screen). They may then go to my Resources screen and input the tonnage and grades of the various commodities present. This ensures that users cannot add tonnage and grade information for a commodity that is not listed as being present at the site.
    So, when they get to the Resources screen, the bottom is all filled out with all of the commodities listed, and they simply have to type in the grade. The users also wnated the ones with information in the grade fields to appear at the top, so I had to add an order by to the query, as follows:
    SELECT a_rec,
           c_code,
           import,
           item,
           grade,
           grade_units,
           child_key,
           count_order
      FROM (SELECT rec a_rec,
                   c.commod || ' - (' || code || ')' c_code,
                   c.import,
                   item,
                   grd grade,
                   grd_units grade_units,
                   child_key,
                   rec count_order
              FROM    RESOURCE_DETAIL rd
                   RIGHT OUTER JOIN
                      commodity c
                   USING (dep_id, code)
             WHERE (CHILD_KEY = 1028244420100003)  -- actually using a variable here instead of hard-coded values
            UNION
            SELECT c.line a_rec,
                   c.commod || ' - (' || code || ')' c_code,
                   import,
                   NULL item,
                   NULL grade,
                   NULL grade_units,
                   NULL child_key,
                   c.line + 200 count_order
              FROM commodity c
             WHERE dep_id = 10282444 -- actually using a variable here instead of hard-coded values
                   AND code NOT IN
                          (SELECT code
                             FROM resource_detail
                            WHERE dep_id = 10282444 AND yr = 2010 AND line = 3)) -- actually using variables here instead of hard-coded values
    ORDER BY import, count_orderNow, on the screen the commodities are listed as:
    Copper
    Gold
    Molybdenum
    Silver
    Gemstone
    Lead
    Zinc
    Uranium
    Gypsum
    REE
    Talc
    Garnet
    But, the code I've added to see what is happening is instead saying the records being processed are in this order:
    Copper
    Garnet
    Gemstone
    Gold
    Gypsum
    Lead
    Molybdenum
    REE
    Silver
    Talc
    Uranium
    Zinc
    I do not have any sort criteria specied in the Report attributes. So, why is the order of processing (for i in 1 .. apex_application.g_f03.count) processing in a different order than what is shown on screen?

    Hi Arie,
    This was a strange one to track down. I wound up adding all kinds of logging statements in my code, writing things out to a table while processing, counts, which record, etc., and suddenly it dawne don me that everything was being processed in alphabetical order by commodity name, even though the screen display was by two other fields. I played around with different 'order by' settings, but the processing somehow was always by the commodity name. I have no idea where it was getting that 'directive', but nothing I could figure out changed it.
    So to recap, in case I didn't explain it well enough above, this is a manually created tabular form, with a 'regular' form above it (master-datail). I use the apex_item.text, etc. constructs to create the tabular form, and then in my 'proceses' I'm using the normal apex_application.g_fxx array to perform the processing. While the screen display from the tabular report shows everything with an order by of two columns, the processing always was done ordered by a diffierent, no-specified column.
    Changing my report definition to use the same 'order by' as the processing seemed to be working fixed the problem, though I have no idea where it was getting the 'order by' from to overwrite what was being on screen. I'm not sure if this is a bug or not, I vaguely remember Scott Spadafore commenting about this behaviour a long, long time back, but I can't find the post. It was probably back in the 2.x days.
    I also have no idea what is causing the array to somehow double for some records and not on others. In this particular case, the record I had on screen only had 7 commodities, but when I printed the result of apex_application.g_fxx.count, it always showed 14, even though on apex.oracle.com, when I tried to re-create the problem, it worked correctly and only reported 7. Most records in my database that I tested this on worked correctly, reporting the correct number of commodities, but occasionally I'd run across one where the number was doubled. I don't know if there is some internal table Apex uses that I could truncate (like possibly wwv_flow_collection_members?) where possisbly this type of information be kept. The only thing I can think of is that somewhere these counts are stored in a collection and it is populated with data from a real old incarnation, and during processing it stumbles across these old records and uses the old values. It doesn't seem like a realistic possibility, but it about the only explanation I can think of.
    Bill Ferguson

  • (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.

  • APEX - Problem with column attributes - Simple Checkbox

    Hi,
    I've a problem with one of my report.
    select * from (
    SELECT
    APEX_ITEM.CHECKBOX(2,audsid,'UNCHECKED') KILL,
    INST_ID,
    AUDSID,
    SID,
    I changed the attributes one of the column in report to Simple Checkbox. Display is working fine and I see correctly checkbox inside the column, but when I trying to trigger process which is based on that column, I'm getting below error:
    wwv_flow.accept: SIGNATURE (parameter names) MISMATCH
    VARIABLES IN FORM NOT IN PROCEDURE: F01_NOSUBMIT
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
    Process code looks like below:
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F02.count
    LOOP
    rec_audsid := APEX_APPLICATION.G_F02(i);
    stmt...
    stmt...
    Could you pls help me with this? How I can submit correctly data to my process from that Simple Checkbox item?
    Thank in advance for help.
    Regards
    Mariusz
    Edited by: user8763881 on 17-Aug-2010 08:12
    Edited by: user8763881 on 17-Aug-2010 08:12
    Edited by: user8763881 on 17-Aug-2010 08:12

    Hi Marc,
    I am trying to use this simple check box to update records in a tabular form that is created through tabular form wizard.
    Now as what you said I included one more column in the tabular form sql query for my check box column.
    Lets say, if my table column name is sent_msg_ind then I have this included as below
    select sent_msg_ind, --hidden
             sent_msg_ind as sent_msg_ind_no_submit --simple check box
    from table_x;Now how to propogate the value of simple check box(1 - checked and 0 - unchecked) value into hidden field.
    I am using this tabular form to just update the records based on what is being fetched using the primary key from the previous page.
    Any example or demo would be highly appreciated here.
    Thanks,
    Teku
    Edited by: Teku on May 19, 2011 10:05 AM

  • Problems with Java DOM Mapping

    Hi Experts,
    as part of my diploma-thesis I have to write a java DOM-Mapping, which mapps the following incoming message:
    <mt_MappingOUT>
    <set>
    <set_Element_01>...</set_Element_01>
    <set_Element_02>... </set_Element_02>
    <set_Element_03>... </set_Element_02>
    <set_Element_10>  </set_Element_10>
    </set>
    </mt_MappingOUT>
    to the following outgoinig message:
    <mt_MappingIN>
    <TABLE>
    <item>
    <item_FIELD_01>  </item_FIELD_01>
    <item_FIELD_10>  <item_FIELD_10>
    <i/tem>
    </TABLE>
    </mt_MappingIN>
    I am not a very experienced Java-Developer. You can see my code down there, which I tried to implement according to some bloggs; unfortunately the result is not what I want to have
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Text;
    import org.xml.sax.SAXException;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class DOMMAPPING implements StreamTransformation{
         public static void main(String[] args) throws Exception
              try
                   FileInputStream fin =
                        new FileInputStream("C:/mt_MappingOut.xml");
                   FileOutputStream fout =
                        new FileOutputStream("C:/target.xml");
                   DOMMAPPING mapping = new DOMMAPPING();
                   mapping.execute(fin, fout);
              catch (Exception e)          {
                   e.printStackTrace();
    public void setParameter (Map param) {}
    public void execute (InputStream in, OutputStream out)
         throws com.sap.aii.mapping.api.StreamTransformationException {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              Document documentIn = null;
              DocumentBuilder builder = null;
              try {
                        builder = factory.newDocumentBuilder();
                   } catch (ParserConfigurationException e1) {
                        e1.printStackTrace();
              try {
                   Element itemNode = null;
                   NodeList[] list_f=new NodeList[10];
                   Element[] field=new Element[10];
                   documentIn = builder.parse(in);
                   Document documentOut = builder.newDocument();
                   Element rootNode = documentOut.createElementNS("urn:agrp:xi:geissseb","ns0:mt_MappingIn");
                   documentOut.appendChild(rootNode);
                   Element tableNode = documentOut.createElement("TABLE");
                   rootNode.appendChild(tableNode);
                   NodeList list_Set=documentIn.getElementsByTagName("set");
                   System.out.println(list_Set.getLength());
                   for(int j=1;j<10;j++){
                        list_f[j-1]=documentIn.getElementsByTagName("set_ELEMENT_01"+j);
                list_f[9]=documentIn.getElementsByTagName("set_ELEMENT_10");
                   //NodeList list_f01=documentIn.getElementsByTagName("f01");
                   for (int i=0;i<list_Set.getLength();i++)
                        itemNode=documentOut.createElement("item");
                        tableNode.appendChild(itemNode);
                        for(int k=0; k<10;k++){
                             Node f=list_f[k].item(i);
                             f=f.getFirstChild();
                             String str_f=f.getNodeValue();
                             Text text_f=documentOut.createTextNode(str_f);
                             field[k]=documentOut.createElement("item_FIELD_"(k1));
                             field[k].appendChild(text_f);
                             itemNode.appendChild(field[k]);
                   TransformerFactory tf = TransformerFactory.newInstance();
                   Transformer transform = tf.newTransformer();
                   transform.transform(new DOMSource(documentOut), new StreamResult(out));
                   } catch (SAXException e2) {
                        e2.printStackTrace();
                   } catch (IOException e2) {
                        e2.printStackTrace();
                   }catch (Throwable t) { throw new StreamTransformationException("error", t); }
    Unfortunately there seems to be at least one error in there because the result I get is just the following:
      <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    - <ns0:mt_MappingIn xmlns:ns0="urn:agrp:xi:geissseb">
      <TABLE />
      </ns0:mt_MappingIn>
    Below you will find my source message:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <xsd:schema targetNamespace="urn:agrp:xi:geissseb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:agrp:xi:geissseb">
      <xsd:element name="mt_MappingOut" type="dt_MappingOut" />
    - <xsd:complexType name="dt_MappingOut">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">a7a28830bebf11dc81aa001a4b0af224</xsd:appinfo>
      </xsd:annotation>
    - <xsd:sequence>
    - <xsd:element name="Set">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366510aeda11dcb3bb00174205b856</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="f01" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366511aeda11dcaf2600174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_02" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366512aeda11dc84d400174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_03" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366513aeda11dcbcab00174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_04" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366514aeda11dc96a300174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_05" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366515aeda11dca77700174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_06" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366516aeda11dc8f7d00174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_07" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366517aeda11dcc24b00174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_08" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366518aeda11dc92cd00174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_09" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b366519aeda11dcc9b100174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="set_ELEMENT_10" type="xsd:string">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">0b36651aaeda11dcc5a700174205b856</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>
    When I had problems withe Java SAX Mapping, I got great hints in the forum. So I hope you can help me out again...
    Cheers Sebastian

    Here you go.
    Code
    package com.sap.test;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.apache.crimson.tree.TextNode;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Text;
    import org.xml.sax.SAXException;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class DomTest {
         Document documentOut = null;
         public static void main(String[] args) throws Exception
         try
         FileInputStream fin =      new FileInputStream("test.xml");
         FileOutputStream fout = new FileOutputStream("test_out.xml");
         DomTest mapping = new DomTest();
         mapping.execute(fin, fout);
         catch (Exception e) {
         e.printStackTrace();
         public void setParameter (Map param) {}
         public void execute (InputStream in, OutputStream out)
         throws com.sap.aii.mapping.api.StreamTransformationException {
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         Document documentIn = null;
         DocumentBuilder builder = null;
         try {
         builder = factory.newDocumentBuilder();
         } catch (ParserConfigurationException e1) {
         e1.printStackTrace();
         try {
         Element itemNode = null;
         //NodeList[] list_f=new NodeList10;
         //Element[] field=new Element10;
         documentIn = builder.parse(in);
         documentOut = builder.newDocument();
         Element rootNode = documentOut.createElementNS("urn:agrp:xi:geissseb","ns0:mt_MappingIn");
         rootNode.setAttribute("xmlns:ns0", "urn:agrp:xi:geissseb");
         documentOut.appendChild(rootNode);
         Element tableNode = documentOut.createElement("TABLE");
         rootNode.appendChild(tableNode);
         NodeList list_Set = documentIn.getElementsByTagName("set");
         System.out.println(list_Set.getLength());
         for(int j = 0 ; j < list_Set.getLength() ;j++){
              Element setNode = (Element)list_Set.item(j);
              NodeList children = setNode.getChildNodes();
              for(int index = 0; index < children.getLength(); index++)
                   Node child = children.item(index);
                   if (child instanceof Element) {
                        Element element = (Element) child;
                        if(element.getNodeName().startsWith("set_ELEMENT"))
                             createItemFeildNode(tableNode,element);
         //list_f[9]=documentIn.getElementsByTagName("set_ELEMENT_10");
    //     NodeList list_f01=documentIn.getElementsByTagName("f01");
         /*for (int i=0;i<list_Set.getLength();i++)
         itemNode=documentOut.createElement("item");
         tableNode.appendChild(itemNode);
         for(int k=0; k<10;k++){
         Node f=list_f[k].item(i);
         f=f.getFirstChild();
         String str_f=f.getNodeValue();
         Text text_f=documentOut.createTextNode(str_f);
         field[k]=documentOut.createElement("item_FIELD_"(k1));
         field[k].appendChild(text_f);
         itemNode.appendChild(field[k]);
         TransformerFactory tf = TransformerFactory.newInstance();
         Transformer transform = tf.newTransformer();
         transform.transform(new DOMSource(documentOut), new StreamResult(out));
         transform.transform(new DOMSource(documentOut), new StreamResult(System.out));
         } catch (SAXException e2) {
         e2.printStackTrace();
         } catch (IOException e2) {
         e2.printStackTrace();
         }catch (Throwable t) { throw new StreamTransformationException("error", t); }
         private void createItemFeildNode(Element root, Element element) {
              String inName = element.getNodeName();
              int temp = inName.lastIndexOf('_');
              if (temp == -1)
                   return;
              String index = inName.substring(temp+1);
              String nodeName = "Item_FIELD_" + index;
              String nodeVal = element.getFirstChild().getNodeValue();
              Element newElement = documentOut.createElement(nodeName);
              Text txtNode = documentOut.createTextNode(nodeVal);
              newElement.appendChild(txtNode);
              root.appendChild(newElement);          
    Input
    <?xml version="1.0" encoding="UTF-8" ?>
    <mt_MappingOut xmlns="urn:agrp:xi:geissseb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:agrp:xi:geissseb file:/D:/Eclipse/workspace/SDN/test.xsd">
    <set xmlns="">
      <set_ELEMENT_01>E1</set_ELEMENT_01>
      <set_ELEMENT_02>E2</set_ELEMENT_02>
      <set_ELEMENT_03>E3</set_ELEMENT_03>
      <set_ELEMENT_04>E4</set_ELEMENT_04>
      <set_ELEMENT_05>E5</set_ELEMENT_05>
      <set_ELEMENT_06>E6</set_ELEMENT_06>
      <set_ELEMENT_07>E7</set_ELEMENT_07>
      <set_ELEMENT_08>E8</set_ELEMENT_08>
      <set_ELEMENT_09>E9</set_ELEMENT_09>
      <set_ELEMENT_10>E10</set_ELEMENT_10>
      </set>
      </mt_MappingOut>
    Output
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:mt_MappingIn xmlns:ns0="urn:agrp:xi:geissseb">
    <TABLE>
      <Item_FIELD_01>E1</Item_FIELD_01>
      <Item_FIELD_02>E2</Item_FIELD_02>
      <Item_FIELD_03>E3</Item_FIELD_03>
      <Item_FIELD_04>E4</Item_FIELD_04>
      <Item_FIELD_05>E5</Item_FIELD_05>
      <Item_FIELD_06>E6</Item_FIELD_06>
      <Item_FIELD_07>E7</Item_FIELD_07>
      <Item_FIELD_08>E8</Item_FIELD_08>
      <Item_FIELD_09>E9</Item_FIELD_09>
      <Item_FIELD_10>E10</Item_FIELD_10>
      </TABLE>
      </ns0:mt_MappingIn>

  • DVI-problem with old card (GF fx5600)

    My old AGP-card fried, so I got a used FX5600-VTDR128 from a friend (who never had any problems with it) and plugged it in. It seems to run fine on analog D-sub, but when I try to use the DVI-port the dark parts of the screen is filled with green flickering vertical lines (sort of, hard to describe), and the whole screen occasionly flickers, as if updating resolution. This happens as soon as the boot screen appears when the computer is turned on, so I guess it's not a driver problem. sometimes it dissapears if I fiddle with the resolution for a bit, but it returns the next time whenever i turn the screen off and back on again.
    I know the card is old, but it would be nice if I got it to work anyway. Any suggestions?
    Operating System   Microsoft Windows XP Professional
    OS Service Pack   Service Pack 2
    DirectX   4.09.00.0904 (DirectX 9.0c)
    Motherboard   
    CPU Type   Intel Pentium 4, 2679 MHz (20 x 134)
    Motherboard Name   MSI 648 Max-L HT Ready (MS-6585)  (6 PCI, 1 AGP, 3 DDR DIMM, Audio, LAN)
    Motherboard Chipset   SiS 648
    System Memory   1024 MB  (PC2700 DDR SDRAM)
    BIOS Type   AMI (02/11/03)
    Communication Port   Kommunikationsport (COM1)
    Communication Port   Kommunikationsport (COM2)
    Communication Port   ECP-skrivarport (LPT1)
    Display   
    Video Adapter   NVIDIA GeForce FX 5600  (128 MB)
    3D Accelerator   nVIDIA GeForce FX 5600
    Monitor   ImageQuest Q17 (Digital)  [17" LCD]  (132420030611)

    Here's the best I could manage:
    and
    (The desktop wallpaper is supposed to be completely black.)
    ...And here's a system summary from everest. Hope it's enough:
    --------[ EVEREST Home Edition (c) 2003-2005 Lavalys, Inc. ]------------------------------------------------------------
        Version                                           EVEREST v2.20.405
        Homepage                                          http://www.lavalys.com/
        Report Type                                       Report Wizard
        Computer                                          AYANAMI
         Operating System                                  Microsoft Windows XP Professional 5.1.2600 (WinXP Retail)
        Date                                              2007-01-17
        Time                                              09:37
    --------[ Summary ]-----------------------------------------------------------------------------------------------------
        Computer:
          Operating System                                  Microsoft Windows XP Professional
          OS Service Pack                                   Service Pack 2
          DirectX                                           4.09.00.0904 (DirectX 9.0c)
          Computer Name                                     AYANAMI
        Motherboard:
          CPU Type                                          Intel Pentium 4, 2679 MHz (20 x 134)
          Motherboard Name                                  MSI 648 Max-L HT Ready (MS-6585)  (6 PCI, 1 AGP, 3 DDR DIMM, Audio, LAN)
          Motherboard Chipset                               SiS 648
          System Memory                                     1024 MB  (PC2700 DDR SDRAM)
          BIOS Type                                         AMI (02/11/03)
          Communication Port                                Kommunikationsport (COM1)
          Communication Port                                Kommunikationsport (COM2)
          Communication Port                                ECP-skrivarport (LPT1)
        Display:
          Video Adapter                                     NVIDIA GeForce FX 5600  (128 MB)
          3D Accelerator                                    nVIDIA GeForce FX 5600
          Monitor                                           ImageQuest Q17 (Digital)  [17" LCD]  (132420030611)
        Multimedia:
          Audio Adapter                                     SiS 7012 Audio Device
        Storage:
          IDE Controller                                    SiS PCI IDE Controller
          SCSI/RAID Controller                              SCSI-/RAID-värdstyrenhet
          Floppy Drive                                      Diskettenhet
          Disk Drive                                        Maxtor 6Y200P0  (200 GB, 7200 RPM, Ultra-ATA/133)
          Disk Drive                                        IC35L120AVV207-1  (120 GB, 7200 RPM, Ultra-ATA/100)
          Optical Drive                                     FN1342H JNO064G SCSI CdRom Device
          Optical Drive                                     JLMS XJ-HD165H  (16x/48x DVD-ROM)
          Optical Drive                                     LITE-ON LTR-52327S  (52x/32x/52x CD-RW)
          SMART Hard Disks Status                           OK
        Partitions:
          C: (NTFS)                                         58894 MB (40229 MB free)
          D: (NTFS)                                         58894 MB (13436 MB free)
          E: (NTFS)                                         97237 MB (24750 MB free)
          F: (NTFS)                                         97229 MB (31767 MB free)
          Total Size                                        304.9 GB (107.6 GB free)
        Input:
          Keyboard                                          Standard 101/102-Key or Microsoft Natural PS/2 Keyboard
          Mouse                                             Microsoft USB IntelliMouse Explorer 3.0
        Network:
          Network Adapter                                   Broadcom 440x 10/100 Integrated Controller  (83.226.129.47)
          Network Adapter                                   Microsoft TV/Video-anslutning  (0.1.0.4)
        Peripherals:
          USB1 Controller                                   SiS 7001 PCI-USB Open Host Controller
          USB1 Controller                                   SiS 7001 PCI-USB Open Host Controller
          USB2 Controller                                   SiS 7002 USB 2.0 Enhanced Host Controller
          USB Device                                        Logitech Mic (IM/Connect)
          USB Device                                        Logitech QuickCam IM/Connect #2
          USB Device                                        Logitech USB Camera (IM/Connect)
          USB Device                                        Microsoft USB IntelliMouse Explorer 3.0
    --------[ Debug - PCI ]-------------------------------------------------------------------------------------------------
        B00 D00 F00:  SiS 648 Chipset - Host-PCI Bridge
          Offset 00:  39 10 48 06  07 00 10 32  03 00 00 06  00 20 80 00
          Offset 10:  00 00 00 E0  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 30:  00 00 00 00  C0 00 00 00  00 00 00 00  00 00 00 00
          Offset 40:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 50:  CF 09 01 03  43 43 0C 01  01 25 08 00  12 D5 00 04
          Offset 60:  6B 40 4F 40  05 20 1E 80  01 08 E0 00  6F 00 80 00
          Offset 70:  0F 9F 00 0C  00 00 18 80  00 00 00 00  02 06 08 44
          Offset 80:  22 27 30 00  81 00 80 2B  20 0C 00 01  00 00 00 40
          Offset 90:  00 50 04 00  53 03 00 04  41 1A 94 02  22 20 00 10
          Offset A0:  55 EC 33 30  03 03 01 77  00 50 00 00  44 01 00 04
          Offset B0:  00 00 00 80  80 01 00 00  26 24 30 33  00 00 30 00
          Offset C0:  02 00 30 00  1B 4E 00 1F  12 03 00 00  00 00 00 00
          Offset D0:  22 02 31 02  09 FF FF 01  60 60 AA 12  01 00 00 23
          Offset E0:  23 08 08 82  00 00 00 00  55 55 55 05  00 00 00 00
          Offset F0:  10 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D01 F00:  SiS 86C202 AGP Controller
          Offset 00:  39 10 02 00  07 01 00 00  00 00 04 06  00 40 01 00
          Offset 10:  00 00 00 00  00 00 00 00  00 01 02 00  F0 00 00 20
          Offset 20:  D0 DD E0 DF  A0 BD B0 DD  00 00 00 00  00 00 00 00
          Offset 30:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 0A 00
          Offset 40:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 50:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 60:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D02 F00:  SiS 963 MuTIOL Media I/O Bridge
          Offset 00:  39 10 08 00  0F 00 00 02  25 00 01 06  00 00 80 00
          Offset 10:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 30:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 40:  92 8B 80 8A  80 00 3D 89  10 00 00 00  11 30 04 01
          Offset 50:  11 38 02 01  20 0B 20 0A  FF FF 12 00  05 05 00 00
          Offset 60:  85 8B 80 85  FF C1 0C 12  09 80 00 46  B7 00 02 11
          Offset 70:  00 00 FF FF  00 08 00 08  00 00 20 80  06 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  FF 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 01 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  40 00 00 D8  7C 00 44 00  19 74 00 00  00 00 00 00
          Offset F0:  0A 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D02 F01:  SiS SMBus Controller
          Offset 00:  39 10 16 00  01 00 80 02  00 00 05 0C  00 00 00 00
          Offset 10:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  01 0C 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 30:  00 00 00 00  00 00 00 00  00 00 00 00  00 02 00 00
          Offset 40:  01 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 50:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 60:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D02 F05:  SiS 85C513 IDE Controller
          Offset 00:  39 10 13 55  05 00 00 02  00 80 01 01  00 80 00 00
          Offset 10:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  01 FF 00 00  00 00 00 00  00 00 00 00  62 14 50 58
          Offset 30:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 40:  00 00 00 00  00 00 00 00  00 00 06 00  00 00 00 00
          Offset 50:  F2 00 F2 00  2A 96 D5 C0  00 00 00 00  00 00 00 00
          Offset 60:  FB AA FB AA  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  16 21 06 04  1E 32 09 05  56 23 06 04  56 23 06 04
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D02 F07:  SiS 7012 Audio Device
          Offset 00:  39 10 12 70  05 01 90 02  A0 00 01 04  00 40 00 00
          Offset 10:  01 DC 00 00  01 D8 00 00  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  62 14 50 58
          Offset 30:  00 00 00 00  48 00 00 00  00 00 00 00  12 03 34 0B
          Offset 40:  04 00 00 00  00 00 00 00  01 00 42 C6  00 00 00 00
          Offset 50:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 60:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  02 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D03 F00:  SiS 7001 PCI-USB Open Host Controller
          Offset 00:  39 10 01 70  17 01 80 82  0F 10 03 0C  08 40 80 00
          Offset 10:  00 D0 FF DF  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  62 14 50 58
          Offset 30:  00 00 00 00  00 00 00 00  00 00 00 00  14 01 00 50
          Offset 40:  00 00 00 00  5C AC 01 00  7F 02 00 00  00 00 00 00
          Offset 50:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 60:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  01 00 C2 C9
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D03 F01:  SiS 7001 PCI-USB Open Host Controller
          Offset 00:  39 10 01 70  17 01 80 82  0F 10 03 0C  08 40 00 00
          Offset 10:  00 E0 FF DF  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  62 14 50 58
          Offset 30:  00 00 00 00  00 00 00 00  00 00 00 00  15 02 00 50
          Offset 40:  00 00 00 00  5C AC 01 00  7F 02 00 00  00 00 00 00
          Offset 50:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 60:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  01 00 C2 C9
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D03 F03:  SiS 7002 USB 2.0 Enhanced Host Controller
          Offset 00:  39 10 02 70  06 01 90 02  00 20 03 0C  08 40 00 00
          Offset 10:  00 F0 FF DF  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  62 14 70 54
          Offset 30:  00 00 00 00  50 00 00 00  00 00 00 00  17 04 00 50
          Offset 40:  00 00 00 08  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 50:  01 00 C2 C9  00 00 00 00  0A 00 00 21  00 00 00 00
          Offset 60:  20 20 7F 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  01 00 00 00  00 E0 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B00 D0F F00:  Broadcom NetXtreme BCM4401-A1 Integrated Fast Ethernet Controller
          Offset 00:  E4 14 01 44  06 01 10 08  01 00 00 02  00 40 00 00
          Offset 10:  00 A0 FF DF  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  E4 14 01 44
          Offset 30:  00 00 FC DF  40 00 00 00  00 00 00 00  12 01 00 00
          Offset 40:  01 00 C2 FF  00 40 00 00  00 00 00 00  00 00 00 00
          Offset 50:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 60:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 18  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 10 00 00  01 20 00 FF  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
        B01 D00 F00:  MSI FX5600 (MS-8912) Video Adapter
          Offset 00:  DE 10 12 03  07 00 B0 02  A1 00 00 03  00 F8 00 00
          Offset 10:  00 00 00 DE  08 00 00 C0  00 00 00 00  00 00 00 00
          Offset 20:  00 00 00 00  00 00 00 00  00 00 00 00  62 14 23 91
          Offset 30:  00 00 00 00  60 00 00 00  00 00 00 00  10 01 05 01
          Offset 40:  62 14 23 91  02 00 30 00  1B 0E 00 1F  12 43 00 1F
          Offset 50:  01 00 00 00  01 00 00 00  CE D6 23 00  0F 00 00 00
          Offset 60:  01 44 02 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 70:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 80:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset 90:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset A0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset B0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset C0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset D0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset E0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
          Offset F0:  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
    --------[ Debug - Video BIOS ]------------------------------------------------------------------------------------------
        C000:0000  U.|.K7400.L.w.VIDEO ....8.*...IBM VGA Compatible......l.05/16/03
        C000:0040  ....................b.#._@@`..@.........".........PMIDl.o.......
        C000:0080  .....3...........NV..'..x@ 1.................P.P..N..l>.>.F.E.E
        C000:00C0  ..3..o.........d...`...0W...p.q.q.q.q.q.qd.p.........*.+...t....
        C000:0100  ...b.y.........................o....... r....(#..end bmp.PCIR....
        C000:0140  ........|.......GeForce FX 5600 BIOS..MSIN8912MS.102............
        C000:0180  .................................Versio n 4.31.20.40.00 ...Copyri
        C000:01C0  ght (C) 1996-2003 NVIDIA Corp...................................
        C000:0200  ................NV31 Board - p141nz  ..............Chip Rev   ..
        C000:0240  ..................1.......C.......M...I .r.L.....a......me.P.....
        C000:0280  ..........n.....q...J.t.....5.x...E./.f`....p................u..
        C000:02C0  fa.'u....f`3....fa....C.*....R.......u.........8...t......2.....
        C000:0300  t..Q.........Y.f..7.....ff.#....f........u..9f.f..7...f........u
        C000:0340  ..#f.f..7...f+.........u.S.ou[..k.f`f...h..^xf.....f3.f..f......
        C000:0380  .ef.....f.q.....efa.........".C...C..u............C..u..........
        C000:03C0  f......C...."'C..'C..u...B.J..f............f......C..'C..u..f...
    Thanks.

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • Problem with threads and camera.

    Hi everybody!
    I've a problem with taking snapshot.
    I would like to display a loading screen after it take snapshot ( sometimes i
    have to wait few seconds after i took snapshot. Propably photo is being taken in time where i have to wait).
    I was trying to use threads but i didn't succeed.
    I made this code:
    display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while((!performing.isShown()) && (backgroundCamera.isShown())){
                        Thread.yield();
                    notifyAll();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        this.wait();                   
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();This code is sometimes showing performing screen but sometimes no.
    I don't know why. In my opinion performing.isShown() method isn't working correctly.
    Does anyone have some idea how to use threads here?

    Hi,
    I've finally managed to work this fine.
    The code:
           Object o = new Object();
           display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while(!performing.isShown()){
                        Thread.yield();
                   synchronized(o) {
                      o.notify();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        synchronized(o) {
                           o.wait(1);
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();

  • Problem with threads hanging

    We have a problem where our application stops responding after a few days of usage. Things will for fine for a day or two, and then pretty quickly threads will start getting hung up, usually in places where they are allocating memory
    We are running WebLogic 8.1 SP2 on Sun JDK 1.4.2_04 on Solaris 8 using the alternate threading model and the -server hotspot vm. We are running pretty much the same code that we had no problems with under WebLogic 6.1 SP4 and Sun JDK 1.3.1.
    A thread dump usually shows that some or all of our execute threads are in the state "waiting for monitor entry" even though they are not currently waiting on any java locks. Here is a sample thread from the thread dump (we have ~120 threads so I don't want to post the full dump).
    =============================================================================================
    "ExecuteThread: '8' for queue: 'itgCrmWarExecutionQueue'" daemon prio=5 tid=0x005941d0 nid=0x2c waiting for monitor entry [c807f000..c807fc28]
    at java.lang.String.substring(String.java:1446)
    at java.lang.String.substring(String.java:1411)
    at weblogic.servlet.internal.ServletRequestImpl.getRelativeUri(ServletRequestImpl.java:1872)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3492)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    =============================================================================================
    String.java line 1446 for this jdk allocates a new String object, and all the other threads in this state also are creating new objects or arrays, etc.
    We've done a pstack on this process when it's in this state, and the threads that are in the "waiting for monitor entry" that look like they're allocating memory are all waiting on the same lwp_mutex_lock with some allocation method that's calling into the native TwoGenerationCollectorPolicy.mem_allocate_work (see pstack output below for the same thread as in the thread dump above)
    =============================================================================================
    ----------------- lwp# 44 / thread# 44 --------------------
    ff31f364 lwp_mutex_lock (e3d70)
    fee92384 __1cNObjectMonitorGenter26MpnGThread__v_ (5000, 525c, 5000, 50dc, 4800, 4af0) + 2d8
    fee324d4 __1cSObjectSynchronizerKfast_enter6FnGHandle_pnJBasicLock_pnGThread__v_ (c807f65c, c807f7d4, 5941d0, 0, 35d654, fee328ec) + 68
    fee32954 __1cQinstanceRefKlassZacquire_pending_list_lock6FpnJBasicLock__v_ (c807f7d4, ff170000, d4680000, 4491d4, fee1bc2c,
    0) + 78
    fee3167c __1cPVM_GC_OperationNdoit_prologue6M_i_ (c807f7bc, 4400, ff170000, 2d2b8, 4a6268, c807fa18) + 38
    fee2e0b0 __1cIVMThreadHexecute6FpnMVM_Operation__v_ (c807f7bc, 963a8, 0, 0, 1, 0) + 90
    fed2c2a4 __1cbCTwoGenerationCollectorPolicyRmem_allocate_work6MIii_pnIHeapWord__ (962c0, ff1c29ec, ff1c297c, ff131a26, 4800, 4998) + 160
    fed22940 __1cNinstanceKlassRallocate_instance6MpnGThread__pnPinstanceOopDesc__ (ee009020, 5941d0, 15ca581, 3647f0, 4a6268, c807f8c8) + 180
    fed34928 __1cLOptoRuntimeFnew_C6FpnMklassOopDesc_pnKJavaThread__v_ (ee009018, 5941d0, 0, 0, 0, 0) + 28
    fa435a58 ???????? (ee009018, e86de, 15ca4de, 50dc, 5941d0, c807f9c8)
    fb36f9a4 ???????? (0, d412ccd8, ee046c28, ff170000, 0, 0)
    fad8b278 ???????? (ee046c28, d6000c90, ee046530, 8, db8e8450, c807f9e8)
    fad62abc ???????? (d412ccd8, ee046530, d6000c90, ee3bfa38, 8, c807fa18)
    fa4b3c38 ???????? (c807fb9c, 0, f2134700, fa415e50, 8, c807faa8)
    fa40010c ???????? (c807fc28, c807fe90, a, ee9e1e20, 4, c807fb40)
    fed5d48c __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_ (c807fe88, c807fcf0, c807fda8, 5941d0, 5941d0, c807fd00) + 27c
    fee4b784 __1cJJavaCallsMcall_virtual6FpnJJavaValue_nLKlassHandle_nMsymbolHandle_4pnRJavaCallArguments_pnGThread__v_ (ff170000, 594778, c807fd9c, c807fd98, c807fda8, 5941d0) + 164
    fee5e8dc __1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_5pnGThread__v_ (c807fe88, c807fe84, c807fe7c, c807fe74, c807fe6c, 5941d0) + 6c
    fee6fc74 __1cMthread_entry6FpnKJavaThread_pnGThread__v_ (5941d0, 5941d0, 838588, 594778, 306d10, fee69254) + 128
    fee6927c __1cKJavaThreadDrun6M_v_ (5941d0, 2c, 40, 0, 40, 0) + 284
    fee6575c _start   (5941d0, fa1a1600, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Also when it's having this problem, the "VM Thread" is always using a lot of processor time. We did a couple of pstacks today while it was having this problem, and this thread was stuck in the ONMethodSweeper.sweep for over 15 minutes when we finally killed the server.
    From the thread dump:
    "VM Thread" prio=5 tid=0x000e2d20 nid=0x2 runnable
    From the first pstack:
    =============================================================================================
    ----------------- lwp# 2 / thread# 2 --------------------
    fed40c04 __1cXvirtual_call_RelocationIparse_ic6FrpnICodeBlob_rpC5rppnHoopDesc_pi_nNRelocIterator__ (42a2f4, fa5fa46d, ffffffff, fc4ffcb8, 42a2f4, 42a324) + 124
    fed46318 __1cKCompiledIC2t5B6MpnKRelocation__v_ (42a2f0, fc4ffd24, fc4ffd4c, e802, 0, 6) + 38
    fed90c38 __1cHnmethodVcleanup_inline_caches6M_v_ (fa5f7f88, fa608940, 1, 0, fa400000, 6) + 1ac
    fede18b4 __1cONMethodSweeperFsweep6F_v_ (2cf38, 0, ffffffff, ff1cf1fc, ff1c66e8, fede1d44) + 1b0
    fede1e6c __1cUSafepointSynchronizeFbegin6F_v_ (2cf38, ff1ba138, 5000, 50dc, 5000, 525c) + 248
    feef1fd4 __1cIVMThreadEloop6M_v_ (4400, 4000, 4324, 4000, 42b0, 3800) + 3d4
    feef1ae4 __1cIVMThreadDrun6M_v_ (e2d20, 2, 40, 0, 40, 0) + 8c
    fee6575c _start   (e2d20, ff270200, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Second pstack
    =============================================================================================
    ----------------- lwp# 2 / thread# 2 --------------------
    fed41180 __1cXvirtual_call_RelocationIparse_ic6FrpnICodeBlob_rpC5rppnHoopDesc_pi_nNRelocIterator__ (0, ff1b9664, ffffffff, fc4ffcb8, a6f2cc, fc4ffbd0) + 6a0
    fed46318 __1cKCompiledIC2t5B6MpnKRelocation__v_ (a6f2c8, fc4ffd24, fc4ffd4c, e802, 0, 6) + 38
    fed90c38 __1cHnmethodVcleanup_inline_caches6M_v_ (faded4c8, fadf2c80, 1, 0, fa400000, 6) + 1ac
    fede18b4 __1cONMethodSweeperFsweep6F_v_ (2cf38, 0, ffffffff, ff1cf1fc, ff1c66e8, fede1d44) + 1b0
    fede1e6c __1cUSafepointSynchronizeFbegin6F_v_ (2cf38, ff1ba138, 5000, 50dc, 5000, 525c) + 248
    feef1fd4 __1cIVMThreadEloop6M_v_ (4400, 4000, 4324, 4000, 42b0, 3800) + 3d4
    feef1ae4 __1cIVMThreadDrun6M_v_ (e2d20, 2, 40, 0, 40, 0) + 8c
    fee6575c _start   (e2d20, ff270200, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Has anyone ever seen anything like this? I'm trying to figure out if this is caused by something we're doing, or something relating to our environment and jvm options. Any ideas?

    Thanks for the reply - I'm testing our app with the +UseConcMarkSweepGC now in our test environment to make sure it doesn't cause any problems there.  Unfortunately the only place we've had this problem is on the production server, so it's extra difficult debugging this. 
    We're using the following memory options:
    -ms512m -mx512m -XX:NewSize=128m -XX:PermSize=192m -XX:MaxNewSize=128m -XX:MaxPermSize=192m -XX:SurvivorRatio=8and the following debugging options, as we've also been seeing OutOfMemoryErrors ( see http://forum.java.sun.com/thread.jsp?forum=37&thread=522354&tstart=45&trange=15 )
    -verbosegc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGCBTW, which c++filt version and options are you using? Our Solaris boxes only seem to have the GNU version installed. I was trying to run that on some of the other stack traces and wasn't getting anywhere, and didn't know if because it was GNU version wouldn't work on something compiled with the Sun compiler.
    Thanks!
    --Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem with threads and ProgressMonitor

    Dear Friends:
    I have a little problem with a thread and a ProgressMonitor. I have a long time process that runs in a thread (the thread is in an separate class). The thread has a ProgressMonitor that works fine and shows the tasks progress.
    But I need deactivate the main class(the main class is the user interface) until the thread ends.
    I use something like this:
    LongTask myTask=new LongTask();
    myTask.start();
    myTask.join();
    Now, the main class waits for the task to end, but the progress monitor don`t works fine: it shows only the dialog but not the progress bar.
    What's wrong?

    Is the dialog a modal dialog? This can block other UI updates.
    In general, you should make sure that it isn't modal, and that your workThread has a fairly low priority so that the UI can do its updating

  • Problem with threads and/or memory

    I'm developing an application where there are 3 threads. One of them sends a request to the other, and if the 2nd can't answer it, it sends it to the 3rd (similar to CPU -> CACHE -> MEMORY). When i run the program with 1000-10.000 requests, no problem occurs. When i run it with 300.000-1.000.000 requests, it sometimes hangs. Is this a problem with the garbage collector, or should it be related to the threads mecanism.
    (note: eache thread is in execution using a finite state machine)

    i had been running the program inside Netbeans.
    Running the jar using the command line outside
    Netbeans i have no more problems... Does Netbeans use
    it's own JVM?Depends how you set it up, but look under the options. There are settings for the compiler and jvm that it uses.

  • Installation problem with NW'04 SR1: database connection failed

    Hi all,
    while installing NW '04 SR1 on Windows Server 2003 SP1 and MS SQL Server 2000 SP4 I ran into an error related to the database connection. While performing the step "Load Java Database content" SAPinst crashes with the message
    com.sap.sql.log.OpenSQLException: Could not load class com.ddtek.jdbc.sqlserver.SQLServerDriver.
    The connection to the SLQ Server with e.g. the Query Analyzer is OK. I had a problem with this installation setup before (have a look at the corresponding <a href="https://forums.sdn.sap.com/thread.jspa?threadID=338638&tstart=0">thread</a> ), the JDBC drivers where missing on the installation master but after copying them in the right direction the installation went on with no problem up to this point...
    Has anybody an idea what could have happened here? Is this maybe a problem connected to the one I recently had
    Below I attached the sapinst.log and jload.log with more detailed messages.
    sapinst.log ###########
    INFO 2007-03-12 22:06:24
    Working directory changed to C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_~1\ONE_HOST.
    INFO 2007-03-12 22:06:24
    Output of D:\Java/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\base.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\util.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\sqlserver.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\spy.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jce_export.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jsse.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_smime.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_ssl.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key' '-dataDir' 'S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP' '-job' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML' '-log' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log' is written to the logfile C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_~1\ONE_HOST/jload.java.log.
    WARNING 2007-03-12 22:06:26
    Execution of the command "D:\Java/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\base.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\util.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\sqlserver.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\spy.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jce_export.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jsse.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_smime.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_ssl.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key' '-dataDir' 'S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP' '-job' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML' '-log' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log'" finished with return code 1. Output:
    java version "1.4.2_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
    12.03.2007 22:06:25 com.sap.inst.jload.Jload main
    INFO: Jload -sec WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key -dataDir S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP -job C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML -log C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log
    12.03.2007 22:06:26 com.sap.inst.jload.Jload main
    SCHWERWIEGEND: couldn't connect to DB
    com.sap.sql.log.OpenSQLException: Could not load class com.ddtek.jdbc.sqlserver.SQLServerDriver.
    ERROR 2007-03-12 22:06:26
    CJS-20065  Execution of JLoad tool 'D:\Java/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\base.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\util.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\sqlserver.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\spy.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jce_export.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jsse.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_smime.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_ssl.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key' '-dataDir' 'S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP' '-job' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML' '-log' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log'' aborts with returncode 1. Check 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log' and 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.java.log' for more information.
    jload.log ###########
    12.03.07 22:06 com.sap.inst.jload.Jload main
    INFO: Jload -sec WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key -dataDir S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP -job C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML -log C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log
    12.03.07 22:06 com.sap.inst.jload.Jload main
    SEVERE: couldn't connect to DB
    com.sap.sql.log.OpenSQLException: Could not load class com.ddtek.jdbc.sqlserver.SQLServerDriver.
    Best regards,
    Bernd

    Hello Kairat,
    Please follow the below mentioned guide to install it.
    Check all the parameters to set and run pre requisite checker before starting installation.
    Keep in mind that before starting any SAP installation you should always run prerequisite checker.
    https://websmp205.sap-ag.de/instguides --> SAP Netweaver -->SAP Netweaver 7.0 -- > Installations --> EHP2
    Regards,
    Amit Barnawal

  • My app store wont let me download apps, says the card is expired and theres a problem with previous purchase can someone help me pls?

    My app store wont let me download apps, asks me to update my payment details then says theres a problem with previous purchase and card is expired which is untrue someone help me pls

    This is a User to User Forum...
    See Here for
    Mac Apps Store Customer Service
    http://www.apple.com/support/mac/app-store/contact.html?form=account
    iTunes Customer Service Contact
    http://www.apple.com/support/itunes/contact.html

Maybe you are looking for

  • Corrupted files upon mounting to install.

    While I had 10.5 installed before on this powerbook, due to some inexplicable freezes I decided to erase-install and ended up having to downgrade to 10.3.9, because each attempt resulted in error and a failure to install properly. Freezes on 10.5 wer

  • Suggestion For An External Scratch Disc needed

    I have recently learned that I had my scratch disc set up incorrectly to the same internal SSD in the Mac Book Pro. I assume that to keep the maximum transfer speed I need and external HDD or SSD with FireWire 800 instead of USB. I have found a few o

  • Itunes needs to be updated to sync but ipad is disabled

    My son tried the passcode too many times & disabled my daughters IPad. I plug it in to sync with ITunes it tells me iPad can not be used because it requires iTunes 11.1 or greater. Is there other way to get iTunes to recognize it so we dont have to r

  • How to Starting and Stopping OC4J Server using Ant

    How to Starting and Stopping OC4J Server using Ant In the ant task definitions for ant-oracle-classes.jar (see antlib.xml) there are two tasks called      name="restartServer" classname="oracle.ant.taskdefs.deploy.JSR88StartServer"      name="shutdow

  • Parent - child - hierarchy - display in report output?

    <b>CHILD          PARENT       LEVEL       HIERARCHY</b> 140339991000     901589991000     1     /901589991000 140349990000     901589991000     1     /901589991000 140359999000     901589991000     1     /901589991000 991539998000     906349995000