Formatting log output for unambiguous parsing

DMR cautions us to assume that any program's output may be used as another program's input.
Unfortunately, many Unix tools ignore this advice. Logging commands are particularly egregious
offenders, given that the enormous size of log files all but requires mechanical interpretation.
Log formats which may be perfectly suitable for human interpretation can cause real problems for
parsing scripts. Let's assume, for instance, that you want to log all open(2) calls, including the full
path names of the files being opened. How do you write the file names such that all possible byte
sequences can be encoded (and later, parsed) without error?
With the possible exception of nulls, no character is off-limits. Unix file names may include spaces,
tabs, quote marks, newlines, and what have you. This defeats any attempt to "quote" the names.
Other strategies include (a) specially encoding certain characters (e.g., "<" in HTML and XML use),
(b) encoding all characters (e.g., BinHex format), and use of counted strings.
Looking at the SDTG, I see no way to do any of these. The %x and %X formats do not seem to be
defined for string values, so I can't just print the string as a sequence of hex digit pairs. Nor can I loop
over the string, printing the characters one at a time. Is there something (e.g., a translator or some
other form of conversion function) that I can use to resolve this problem?

We should be able to get this implemented in thenear future.
Great! I'm unfamiliar, however, with Sun's patch and
upgrade mechanisms these days (I moved from
SunOS to FreeBSD, later adding Mac OS X). Could you
give me an idea of what to expect, both in
this pre-release period and after Solaris 10 ships? Solaris 10 will become generally available at the end of this calendar year. Prior to GA,
we are making a continuous series of beta releases available through Solaris Express,
about one per monthor so. After GA, like all Solaris releases, we issue patches when
there are functionality problems to be corrected, as well as Quarterly Updates which
batch together some add-ons with all the latest patches. In the case of a small DTrace
enhancement, we'll try to get it fixed before Solaris 10 GA, which means it will be fixed
in the final release of Solaris 10, and might show up in a Solaris Express download
in the coming months. Bryan, Adam, and I will also post here about any new DTrace
features of interest that show up in a particular Solaris Express download.
-Mike

Similar Messages

  • Formatting printer output for dotmatrix printer

    Hi Experts,
    i'm trying to format the output of the EPSON LQ-870 dot matrix printer to print the output in the paper size height 280 mm & width 210 mm.The device type i used for my output device is EPESCP2.For the first page the header and line items are coming correctly.But for the second page onwards, there is some space is coming between each line items.In third page,the header is coming little bit down from the required location.My page size is little bit less than the normal A4 size.How to rectify this?
    Points will be rewarded if helpful.......
    Thanks in advance.

    Hello,
    I created a condition table '550 - Shipping point/plant'. Then I created an access sequence 'ZSH1' and assigned this condition table 550 to it.
    In the output determination procedure, the procedure 'V10000 - Header output' has the condition type PL02 - BOL: Single Delivery assigned to it.
    The assignments look like:
    Step       Counter         Cond Type
    10               1                LD00     Delivery Note
    20               2                PL00     Packing list
    30               3                PL01     Planning Slip
    40               4                PL02     BOL: Single Delivery
    In Assign output procedures, the entry corresponding to delivery type 'LF' is:
    Del Type                O/P procedure                       O/P Type
    LF Delivery                    V10000  Header Output             LD00Delivery Note
    When I try to enter a new condition record using VV21, it does not show up this key combination 'Shipping point/Plant'.
    Can someone tell me if I am missing some customization?
    Thanks,
    Rugmani
    Edited by: Rugmani Rajan on Oct 22, 2008 3:06 PM

  • Why do we not get logging output for the clients?

    Q: Why do we not get logging output like #show log all | include <client mac address> for the wireless clients?
    A: When the clients connected to Bridge mode SSID, Firewall hits and logging does not work.  
    This is one of the limitations with bridge mode.  

    logical. fair. I can understand the confusion in policy  as another fine cloud service - DropBox - has a different model for increases in free storage amounts for one account = evangelism. As many policies as there are services probably.
    cya 'round o' kilted one
    CCC

  • Formatting Log message for Java.Util.Logger

    Hi,
    I want to format out put that i get when i logg the message
    example
    Sep 23, 2009 5:32:56 PM com.log.utils.helper info
    INFO: in Logging messagingI was wondering if I could get output like
    Sep 23, 2009 5:32:56 PM INFO: in Logging messagingThis is the code which i have used to generate logs
    public Logger logs() {
            makeLogFolder();
            Logger log = Logger.getLogger(UtilityHelper.class.getName());
            try {
                int limit = Integer.parseInt(loadProperties(
    Constants.PROPERTY_FILE_NAME)
    .getProperty(Constants.MAX_SIZE_OF_LOG_FILES));
                int numLogFiles = Integer.parseInt(getProperties(
    Constants.MAX_NO_OF_LOG_FILES));
                String LogFileName = getProperties(Constants.LOG_FOLDER) +
    File.separator + getLogInDate() + File.separator +
    getProperties(Constants.LOG_FILE) + getLogDate() +
    " " + getLogTime() + "_%g.log";
                FileHandler fh1 = new FileHandler(LogFileName, limit, numLogFiles);
                fh1.setFormatter(new SimpleFormatter());
                log.addHandler(fh1);
            } catch (IOException ex) {
                ex.printStackTrace();
            } catch (SecurityException ex) {
                ex.printStackTrace();
            return log;
    log.info(message);please let me know how can i do it
    thanks for the reply

    Note: This thread was originally posted in the [Java Virtual Machine (JVM)|http://forums.sun.com/forum.jspa?forumID=37] forum, but moved to this forum for closer topic alignment.

  • Processing log output for Purchase order

    Dear All,
    Iam getting some problem when iam creating an IDOC and checking in the Processing log for IDOC number.
    Actually i had created one custom idoc for Purchase order since my client need only some field and in one line for header and line item, I had done it and i can see it in sdata of EDIDD structure. When i create a Purchase order and save it an idoc number is posting and I can see this file in my physical directory indeed.
    Now when iam going into change mode of PO ME22n to see the Processing LOG, It is not showing the IDOC Number in Purchase order output processing log popup.

    The processing log will only show output based standard output control (Table NAST).
    How is your IDoc being created. Via a user exit, BADI. If so then they will not appear on the processing log.
    It is being created as a custom IDOC for which i had written a Z function module and given that in PO processing code which is ME10. When iam checking the standard IDOC for PO it is generating the IDOC in processing log as well.
    Iam just placing my code just have a look at it and suggest if any thing needs to be done.
    FUNCTION Z_IDOC_OUTPUT_ORDERS.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(OBJECT) LIKE  NAST STRUCTURE  NAST
    *"     VALUE(CONTROL_RECORD_IN) LIKE  EDIDC STRUCTURE  EDIDC
    *"  EXPORTING
    *"     VALUE(OBJECT_TYPE) LIKE  WFAS1-ASGTP
    *"     VALUE(CONTROL_RECORD_OUT) LIKE  EDIDC STRUCTURE  EDIDC
    *"  TABLES
    *"      INT_EDIDD STRUCTURE  EDIDD
    *"  EXCEPTIONS
    *"      ERROR_MESSAGE_RECEIVED
    *"      DATA_NOT_RELEVANT_FOR_SENDING
    DATA: xdruvo.                          "Druckvorgang
    DATA: neu  VALUE '1',                  "Neudruck
          h_kappl LIKE nast-kappl,         "Hilfsfeld Applikation
          h_parvw LIKE ekpa-parvw,         "Hilfsfeld Partnerrolle
          h_ebeln LIKE ekko-ebeln.         "Hilfsfeld Belegnummer
      CLEAR control_record_out.
       xdruvo = neu.
      h_kappl = object-kappl.
      h_ebeln = object-objky.
      h_parvw = object-parvw.
      DATA:
           LT_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE,
             L_EDIDC LIKE EDIDC,
             L_SEND_FLAG,
             W_SDATA LIKE EDIDD-SDATA.
      DATA: T_BDI_MODEL LIKE BDI_MODEL OCCURS 0 WITH HEADER LINE.
      DATA: T_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE.
      DATA: T_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.
      DATA: C_MESSAGE_TYPE LIKE EDIDC-MESTYP VALUE 'ZORDER'.
    *- Call function module to determine if message is to be distributed
    OBJECT_TYPE = 'BUS2012'.
      MOVE control_record_in TO control_record_out.
      CALL FUNCTION 'ALE_MODEL_DETERMINE_IF_TO_SEND'
        EXPORTING
          MESSAGE_TYPE           = C_MESSAGE_TYPE
        IMPORTING
          IDOC_MUST_BE_SENT      = L_SEND_FLAG.
       EXCEPTIONS
         OWN_SYSTEM_NOT_DEFINED = 1
         OTHERS                 = 2.
      DATA : BEGIN OF EKKO_tAB OCCURS 0,
      EBELN LIKE EKKO-EBELN,
      F1 TYPE C VALUE ',',
      BUKRS LIKE EKKO-BUKRS,
      F2 TYPE C VALUE ',',
      BSART LIKE EKKO-BSART,
      F3 TYPE C VALUE ',',
      LIFNR LIKE EKKO-LIFNR,
      F4 TYPE C VALUE ',',
      WAERS LIKE EKKO-WAERS,
      F5 TYPE C VALUE ',',
      BEDAT LIKE EKKO-BEDAT,
      F6 TYPE C VALUE ',',
      WERKS LIKE EKPO-WERKS,
      F7 TYPE C VALUE ',',
      PLIFZ LIKE EKPO-PLIFZ,
      F8 TYPE C VALUE ',',
      EBELP LIKE EKPO-EBELP,
      F9 TYPE C VALUE ',',
      MATNR LIKE EKPO-MATNR,
      F10 TYPE C VALUE ',',
      MENGE LIKE EKPO-MENGE,
      F11 TYPE C VALUE ',',
      MEINS LIKE EKPO-MEINS,
      F12 TYPE C VALUE ',',
      END OF EKKO_TAB.
      DATA SDATA1 LIKE EKKO_tAB OCCURS 0 WITH HEADER LINE.
      DATA EBELN LIKE EKKO-EBELN.
      WRITE OBJECT-OBJKY TO EBELN.
      SELECT T1EBELN T1BUKRS BSART LIFNR WAERS BEDAT  WERKS PLIFZ EBELP MATNR MENGE MEINS
      FROM EKKO AS T1
      INNER JOIN EKPO AS T2 ON T2EBELN = t1EBELN
      INTO CORRESPONDING FIELDS OF TABLE EKKO_tAB
      WHERE
    *T1~KAPPL = 'EF' AND
      T1~EBELN = EBELN.
    *T1~KSCHL = 'YEDI' .
      DATA SDATA LIKE EDIDD-SDATA.
      DATA NDATE LIKE SY-DATUM.
      DATA NMENGE(17) TYPE C.
      LOOP AT EKKO_tAB.
        WRITE EKKO_TAB-MENGE TO NMENGE.
        NDATE = EKKO_tAB-BEDAT + EKKO_tAB-PLIFZ.
        CONCATENATE  EKKO_tAB-EBELP ',' EKKO_tAB-BUKRS ',' EKKO_tAB-BSART EKKO_tAB-EBELN ',' EKKO_tAB-LIFNR ',' EKKO_tAB-BEDAT ','
        NDATE ',' EKKO_tAB-BSART EKKO_tAB-EBELN ',' EKKO_tAB-EBELN ', 0,' EKKO_tAB-MATNR ','
        NMENGE ',' EKKO_tAB-MEINS ',' EKKO_tAB-WERKS INTO SDATA.
        MOVE SDATA TO: W_SDATA, T_EDIDD-SDATA.
        MOVE 'ZORDERS' TO T_EDIDD-SEGNAM.
        APPEND T_EDIDD.
      ENDLOOP.
    *call function 'L_IDOC_SEGMENT_CREATE'
        exporting
             i_segnam = 'ZORDERS'
             i_sdata  = w_sdata
        exceptions
             others   = 1.
    *LT_EDIDC
    call function 'L_IDOC_SEND'
         tables
              t_comm_idoc           = LT_EDIDC
         exceptions
              error_distribute_idoc = 1
              others                = 2.
    *DATA T_BDI_MODEL LIKE BDI_MODEL.
    WRITE OBJECT-OBJKY TO T_BDI_MODEL.
    READ TABLE T_BDI_MODEL INDEX 1.      " maximum 1 recipient
    L_EDIDC-DIRECT = 1.
      L_EDIDC-DOCNUM = DOCNUM. "***
      L_EDIDC-RCVPRN = 'HCM_00_785'.
      L_EDIDC-RCVPOR = 'MM_PO_FILO'.
      MOVE 'ZORDER'   TO L_EDIDC-MESTYP.
      MOVE 'ZPURIDOC' TO L_EDIDC-IDOCTP.
      MOVE 'LS'      TO L_EDIDC-RCVPRT.
    MOVE T_BDI_MODEL-RCVSYSTEM TO L_EDIDC-RCVPRN.
    *MOVE-CORRESPONDING L_EDIDC TO W_EDIDC.
    *- Distribute the iDoc
    BREAK-POINT.
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' "IN UPDATE TASK
        EXPORTING
          MASTER_IDOC_CONTROL            = L_EDIDC
        TABLES
          COMMUNICATION_IDOC_CONTROL     = LT_EDIDC
          MASTER_IDOC_DATA               = T_EDIDD
        EXCEPTIONS
          ERROR_IN_IDOC_CONTROL          = 01
          ERROR_WRITING_IDOC_STATUS      = 02
          ERROR_IN_IDOC_DATA             = 03
          SENDING_LOGICAL_SYSTEM_UNKNOWN = 04.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE LT_EDIDC INDEX 1.
      control_record_out-direct = '1'.
      CONTROL_RECORD_OUT-DOCNUM = DOCNUM. " ***
      control_record_out-serial = sy-datum.
      control_record_out-serial+8 = sy-uzeit.
      control_record_out-mestyp = LT_EDIDC-mestyp.
      control_record_out-idoctp = LT_EDIDC-idoctp.
      control_record_out-SNDPRN = 'HCM_00_786'.
      MOVE 'MM_PO_FILO' TO control_record_out-RCVPOR.
      MOVE 'LI'      TO control_record_out-SNDPRT.
      MOVE 'SAPQIS' TO control_record_out-SNDPOR.
    ENDFUNCTION.

  • Invalid END header format/no output available for this tool

    help me.
    I install oracle 9i into windows 2k server with pack3. when configuring the ODCA, when OUI prompt:
    invalid END header format&
    no output available for this tool.
    who can tell me that what is happen?
    before this, i had installed this version on windows 2003.

    Dear All
    I have the same problem when installing Oracle9iasR2 on a windows 2000 IBM server
    At the database configuration Assistant of the infrastructutre installation I am always getting this strange message Not a ZIP file (End Header Not found).
    We have tried a lot off scenarios to install Oracle9iasr2 but the installation always fails at the database creation with the followning message
    Not a ZIP file (End Header Not found).
    We had also tried to do the installation using a different copy of CD's with no success.
    Also the same installation on the same server was succesfull with O/S Win2003.
    Then the whole installation fails .
    If anyone has ever faced the same problem and had solved it please advice.
    Thank you in advance.
    Bill

  • Firstly hello to all. I'm looking to create a vi that will take a single logged output from a thermocoup​le and monitor the temperatur​e and produce a Boolean when the temperatur​e has stabilised for a pre determined time say 1minuet.

    Firstly hello to all. I’m looking to create a vi that will
    take a single logged output from a thermocouple and monitor the temperature and
    produce a Boolean when the temperature has stabilised for a pre determined time
    say 1minuet. I have managed to find a couple of examples on the forum but one
    will only run on V8.2 and I have V8, the other is for more than one channel
    witch is fine I can always reduce this, but it was the timing feature I was
    having difficulty with. I looking to monitor the temperature of a motor until
    it has stabilised prior to testing and then to use this temperature as a
    reference. Pleas forgive my ignorance if this is a very simple thing but I’ am
    learning and really enjoying it. Thank you in advance for your answers.

    Hi
    Graham, thank you for you reply.
    What I’ am trying to achieve is a vi I can use in a motor
    testing setup, a part of this would be to warm the motor up until the exhaust
    air temperature has stabilised, this takes approximately 10 minuets. I was
    thinking of just letting the motor run for this time and leave it at this, but
    some motors warm up quicker that others and. I am basically looking for a vi with
    an adjustable temperature window of say ±5 C° in 1° increments, timing wise 1minuet
    to 10min the adjustment is so I a can use this for another application. I tried
    to adjust the code I found at the link below but had a little difficulty with
    the timing. Thank you so much for your help it’s much appreciated.
    sine.ni.com/niforum/niforum?forumDU=http://forums.​ni.com/ni/board/message?board.id=170&message.id=25​1017&requireLogin=False

  • GlassFish Tools - Eclipse console does not show server log output

    Hi,
    I just installed the latest Glassfish Tools (6.2.1.201308190137) on Eclipse Kepler and Glassfish Server 3.1.2.  But when I start the server and open the console ('view log file' button) there is no output displayed (also not during deployment). When I open the server.log file in a text editor I can clearly see the log output. Re-starting Eclipse, re-opening the console view didn't help. I have this bug both on Windows 8 and OSX 10.8.4.
    Is there something obvious that I am missing? In my previous pre-kepler Eclipse installation this works like a charm (using the same glassfish server). Also the path to the log file displayed on the top of the console view is correct.
    This might be related to the following thread:
    GlassFish > View Log File opens in editor instead of console
    Will have to use my old eclipse installation until this is resolved. Any help is appreciated.
    -- Mike

    Apparently, the GlassFish Tools for eclipse is expecting the log messages in 'ODLLogFormatter' format only, and will refuse to show any logs messages that don't adhere to this format.
    I've tried configuring my logback messages to match this format, and that works until an exception is thrown and a log message is entered somewhere using the 'UniformLogFormatter' format, which then causes the server.log parser to refuse to show any more messages.
    This is a bug, but I'm unsure where to report bugs now since the move to OEPE.  (Was https://java.net/jira/browse/GLASSFISHPLUGINS)

  • Could not deliver the output for Delivery channel:null

    XML Publisher Report Bursting Program is throwing the following exception
    Log file
    ========
    XML/BI Publisher Version : 5.6.3
    Request ID: 11900899
    All Parameters: Dummy for Data Security=Y:ReportRequestID=11900819:DebugFlag=Y
    Report Req ID: 11900819
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:DB94
    Preparing parameters
    null output =/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11900899.out
    inputfilename =/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11900819.out
    Data XML File:/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11900819.out
    Set Bursting parameters..
    Temp. Directory:/caop/app02/common/caopcomn/temp
    [071713_110919401][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.1.0 - Production
    [071713_110919410][][STATEMENT] setOAProperties called..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=11900819, user-variable:cp:language=en, user-variable:cp:responsibility=21540, user-variable.OA_MEDIA=http://db172.coresys.com:17204/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=11900819, user-variable:cp:locale=en-US, user-variable:cp:user=PRAYAPUDI, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=11900899, user-variable:cp:org_id=0, user-variable:cp:reportdescription=Care One Salary Change Approval, user-variable:cp:Dummy for Data Security=Y}
    Start bursting process..
    Bursting process complete..
    Generating Bursting Status Report..
    Output File
    ========
      <?xml version="1.0" encoding="UTF-8" ?>
    - <BURS_REPORT>
      <REQUESTID>11901286</REQUESTID>
      <PARENT_REQUESTID>11901285</PARENT_REQUESTID>
      <REPORT_DESC>Care One Salary Change Approval</REPORT_DESC>
      <OUTPUT_FILE>/caop/app02/inst/apps/CAOP_db94/logs/appl/conc/out/o11901286.zip</OUTPUT_FILE>
    - <DOCUMENT_STATUS>
      <KEY />
      <OUTPUT_TYPE>EXCEL</OUTPUT_TYPE>
      <DELIVERY>email</DELIVERY>
      <OUTPUT>/caop/app02/common/caopcomn/temp/071713_120851408/xdo1_2.xls</OUTPUT>
      <STATUS>fail</STATUS>
      <LOG>Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..</LOG>
      </DOCUMENT_STATUS>
      </BURS_REPORT>
    XML File
    ======
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- Generated by Oracle Reports version 10.1.2.3.0 -->
    <CAO_SAL_CHG_APR>
      <LIST_G_EMAIL>
        <G_EMAIL>
          <EMAIL>[email protected]</EMAIL>
          <LIST_G_MESSAGE_NUMBER>
    <G_MESSAGE_NUMBER>
              <MESSAGE_NUMBER>1</MESSAGE_NUMBER>
              <PERCENT_CHANGE>-98.75</PERCENT_CHANGE>
              <SALARY_CHANGE_AMT>-23,621.00</SALARY_CHANGE_AMT>
              <DATE_CHANGE_MADE>07/16/2013</DATE_CHANGE_MADE>
              <APPROVER_NAME>Veluz, Cynthia Avila</APPROVER_NAME>
              <APPROVER_JOB>Administration|Center|Payroll/Benefits Coordinator</APPROVER_JOB>
              <PERSON_NAME>Donet, Andrew P</PERSON_NAME>
              <PERSON_NUM>131996</PERSON_NUM>
              <LOCATION_CODE>HR - CareOne at Morris ALF</LOCATION_CODE>
              <REGION_2>NJ</REGION_2>
              <JOB_TITLE>Administration|Center|Director of Admissions</JOB_TITLE>
              <CURRENT_ANNUAL_SAL>299.00</CURRENT_ANNUAL_SAL>
              <PREVIOUS_ANNUAL_SAL>23,920.00</PREVIOUS_ANNUAL_SAL>
              <PAY_BASIS>PERIOD</PAY_BASIS>
              <CUR_PAY>11.50</CUR_PAY>
              <CHANGE_DATE>07/21/2013</CHANGE_DATE>
              <SALARY_CHANGE_REASON></SALARY_CHANGE_REASON>
              <EMPLOYMENT_CATEGORY>Fulltime-Regular</EMPLOYMENT_CATEGORY>
              <ERIC_WILLIAMS>[email protected]</ERIC_WILLIAMS>
            </G_MESSAGE_NUMBER>
          </LIST_G_MESSAGE_NUMBER>
        </G_EMAIL>
      </LIST_G_EMAIL>
    </CAO_SAL_CHG_APR>
    Control File
    ========
    <?xml version="1.0" encoding="UTF-8" ?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
    <xapi:request select="CAO_SAL_CHG_APR/LIST_G_EMAIL/G_EMAIL">
    <xapi:delivery>
    <xapi:email server="smtp.coresys.com" port="25" from="[email protected]" reply-to="[email protected]">
    <xapi:message id="123" to="[email protected]"
    attachment="true"
    subject="Salaries Changed Yesterday">
    Please do not reply to this email, it is system-generated.
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="Care_One_Salary_Change_Approval" output-type="EXCEL"   delivery="123">
    <xapi:template type="rtf" location="xdo://CAO.CAO_SAL_CHG_APR.en.US/?getSource=true">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    It is greatly apprecaited, if you can take a look the issue.
    Thank you,
    -Pradeep.

    Hello Sir,
    I am hard coding the Email id in the control file. From/To/CC emails I have hard coded. I want to paste the Control file... But I could not because, not allowing me to post XML content.
    Thanks
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
         <xapi:request select="/EMPLOYEE_REPORT/EMPLOYEE">
              <xapi:delivery>
                   <xapi:Email server="mycompanyserver" port="25" From="[email protected]" reply-to ="[email protected]">
                        <xapi:message id="123" to="[email protected]" cc="[email protected]"
                             attachment="true" subject="Employee Details for ${FULL_NAME}"> Mr./Ms. ${FULL_NAME}, Please review the attached document
                        </xapi:message>
                   </xapi:email>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="123">
         <xapi:template type="rtf" location="xdo://XBOL.TEST_ABC_XML.en.US/?getSource=true">
         </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Edited by: user9367932 on Apr 13, 2010 4:59 AM
    Edited by: user9367932 on Apr 13, 2010 4:59 AM

  • Error!! Could not deliver the output for Delivery channel:null

    Hi Friends,
    XML/BI publisher : 5.6.3
    Oracle Applications : R12.0.6
    Bursting program Log file
    ==================
    XML/BI Publisher Version : 5.6.3
    Request ID: 993023
    All Parameters: Dummy for Data Security=N:ReportRequestID=993022:DebugFlag=Y
    Report Req ID: 993022
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:XXXXXGRP02
    Preparing parameters
    null output =/devrpi/applcsf/out/DEVRPI_auohscgrp02/o993023.out
    inputfilename =/devrpi/applcsf/out/DEVRPI_auohscgrp02/o993022.out
    Data XML File:/devrpi/applcsf/out/DEVRPI_auohscgrp02/o993022.out
    Set Bursting parameters..
    Temp. Directory:/tmp
    [041210_040045855][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.130 - Production
    [041210_040045859][][STATEMENT] setOAProperties called..
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=993022, user-variable:cp:language=en, user-variable:cp:responsibility=50537, user-variable.OA_MEDIA=https://appscgrpdev.oracleoutsourcing.com:443/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=993022, user-variable:cp:locale=en-US, user-variable:cp:user=Dev2, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=993023, user-variable:cp:org_id=90, user-variable:cp:reportdescription=Test_xml_bursting, user-variable:cp:Dummy for Data Security=N}
    Start bursting process..
    Bursting process complete..
    Generating Bursting Status Report..
    Bursting program Out put file
    ==================
    Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details.

    Hello Sir,
    I am hard coding the Email id in the control file. From/To/CC emails I have hard coded. I want to paste the Control file... But I could not because, not allowing me to post XML content.
    Thanks
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
         <xapi:request select="/EMPLOYEE_REPORT/EMPLOYEE">
              <xapi:delivery>
                   <xapi:Email server="mycompanyserver" port="25" From="[email protected]" reply-to ="[email protected]">
                        <xapi:message id="123" to="[email protected]" cc="[email protected]"
                             attachment="true" subject="Employee Details for ${FULL_NAME}"> Mr./Ms. ${FULL_NAME}, Please review the attached document
                        </xapi:message>
                   </xapi:email>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="123">
         <xapi:template type="rtf" location="xdo://XBOL.TEST_ABC_XML.en.US/?getSource=true">
         </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Edited by: user9367932 on Apr 13, 2010 4:59 AM
    Edited by: user9367932 on Apr 13, 2010 4:59 AM

  • Customize Output of the PO Output for Communication program R12

    I have a requirement to change the output of the seeded PO Output for Communication program, so that it uses a custom RTF template to produce the documents.
    To do this, I have registered this template in XML Publisher under the Purchasing application. I then navigated to Purchasing Super User > Setup > Purchasing > Document Types, and from the window opened, selected to update the Purchase Order Standard Type. From here, I updated the document name and the document type layout as my new custom template.
    However, once I run the program, it completes with an error. The log file is pages and pages (that I won’t post here unless requested as necessary) but at the bottom is section produced that I think may be useful:
    Updated PRINT_COUNT 1
    doc Identifier: PO
    Document ID:14004
    Revision Num0
    Document SubTypeSTANDARD
    Document TypePO
    GenerateDocument::2nd Constructor()
    setFileName- m_documentType:PO, m_documentId:14004
    setFileName- m_fileName:PO_84_700000049_0_US.pdf
    GenerateDocument::Finished 3rd Constructor()
    Setting PO template Code
    Setting OKC template Code
    Before calling genDocTue Jan 22 17:02:01 GMT 2013
    Changed GenerateDocument::Inside the gendoc method
    Calling the getDocument method
    GenerateDocument::getDocument()- Set the Org Context
    GenerateDocument::getDocument()
    GenerateDocument::getDocument() - Searching in the repository
    After Calling the getDocument method
    Calling the getPOXsl method
    Before setting the bind variables for the default layout in getPOXSL()
    Document Template Code :NCC_STD_PO_RTF
    Language Code :US
    Document XSL Contents Tue Jan 22 17:02:01 GMT 2013
    Retrieved the Document XSL Tue Jan 22 17:02:01 GMT 2013
    Calling the getPOXml method
    GenerateDocument::getPOXml() : l_exists 1
    GenerateDocument::getPOXml() : m_whichTables MAIN
    GenerateDocument::getPOXml()- Calling the POXMLGEN method Tue Jan 22 17:02:01 GMT 2013
    Generated the Document XML Tue Jan 22 17:02:01 GMT 2013
    Document XML Contents Tue Jan 22 17:02:01 GMT 2013
    Calling the print util method:Tue Jan 22 17:02:01 GMT 2013
    Passing Params to getBlobPDF :Tue Jan 22 17:02:01 GMT 2013
    m_AppNames :PO
    m_TemplateCodes :NCC_STD_PO_RTF
    m_Languages :en
    m_Territories :US
    genDoc() : Exceptionjava.lang.Exception: Error while generating PDF :null
    java.lang.Exception: Error while generating PDF :null
    rolling back the complete program
    As you can see it's definitely picking up my custom template (NCC_STD_PO_RTF), and it appears to error when tryign to generate it as PDF.
    I have attempted to attach the seeded xsl template to my template definition - to test if the error is due to the program expecting a certain template format - but, as the seeded template is in that particular format, and my definition is expecting rdf, it will not let me.
    I am wondering if anyone has a solution for this requirement. We would like to keep the business process the same as it was in 11i, by using the seeded program, but with a custom template. But I understand that in R12, creating a custom program replicated from the seeded may be the only viable solution.
    This is on Oracle Applications version 12.1.3.
    Any suggestions would be much appreciated, and if you think that any more information is required, let me know.
    Thanks.

    Publisher version is 10.1.3.4.2.
    It seemed to be a data issue. When a certain test PO with a insufficient amount of data in the XML output was put through the template, and hit these clauses, it failed, and the concurrent program errored.

  • Xml output for non-built-in types generated by autotype

    Hi,
    I created a wsdl and used the autotype and wsdl2service ant tasks to generate
    java files.
    As part of my service, I want to log output in xml format of the data received.
    I can write my own serialization, or use the code that was generated by autotype.
    I would rather not write my own. I want to use the code generated by wsdl2service.
    Trouble is I can not find a javadoc nor a sample code segment that shows how!
    Call me dense, but I've spent several hours on BEA web pages looking for answers.
    This is what I found, but I could not get to work for various reasons:
    XML streaming: I have a codec (generated by autotype ant task), but it requires
    a SerializationContext. Where do I get a Serialization Context? I think serialize
    is a callout from WS and not for applicaiton code to call.
    javax.xml.rpc.encoding.Serializer: An object of this type is made available by
    AbstractCodec (base class of generated code, but how is this class used?
    [Sorry if you've seen this posting a couple of days ago on interest.xml newsgroup.
    I didn't intend to repost but due to lack of response there, I thought this newsgroup
    was more appropriate and read more.]
    Thanks,
    John

    manoj,
    Thanks for the help.
    Sample 4 tells me that there is no code generated that I can use to write out
    my non-built-in datatype to xml. For each of my non-built-in datatypes, I will
    have to hand write such code, or use a handler.
    John
    "manojc" <[email protected]> wrote:
    Here is an example of start form WSDL usecase:
    http://www.manojc.com/?sample11
    If you want to log the xml input/output to the web service
    you can use a handler. You need to edit the web-services.xml
    dd file to add handler.
    Here is a example of using handler. But this use source2wsdd
    instead of wsdl2service:
    http://www.manojc.com/?sample4
    Regards,
    -manoj
    "John Franey" <[email protected]> wrote in message
    news:3ef30db2$[email protected]..
    Hi,
    I created a wsdl and used the autotype and wsdl2service ant tasks togenerate
    java files.
    As part of my service, I want to log output in xml format of the datareceived.
    I can write my own serialization, or use the code that was generatedby
    autotype.
    I would rather not write my own. I want to use the code generated bywsdl2service.
    Trouble is I can not find a javadoc nor a sample code segment thatshows
    how!
    Call me dense, but I've spent several hours on BEA web pages lookingfor
    answers.
    This is what I found, but I could not get to work for various reasons:
    XML streaming: I have a codec (generated by autotype ant task), butit
    requires
    a SerializationContext. Where do I get a Serialization Context? I thinkserialize
    is a callout from WS and not for applicaiton code to call.
    javax.xml.rpc.encoding.Serializer: An object of this type is madeavailable by
    AbstractCodec (base class of generated code, but how is this classused?
    [Sorry if you've seen this posting a couple of days ago on interest.xml
    newsgroup.>>  I didn't intend to repost but due to lack of response there, I thought>this newsgroup>> was more appropriate and read more.
    Thanks,
    John

  • Accounts that have not been logged into for more than 90 days

    Hi Folks,
    Good Day.
    Can anyone help me to update below powershel script?
    below script find in my domain all the AD users accounts that have not been logged into for more than 90 days and export the report to .csv file. in addition what I want:
    1. OU=Others, Sales --> exclude this OUs
    2. Disable all the user based on 90 days export report .csv file 
    import-module activedirectory 
    $domain = "test.com" 
    $DaysInactive = 90 
    $time = (Get-Date).Adddays(-($DaysInactive))
    $timer = (Get-Date -Format yyyy-mm-dd)
    # Get all AD User with lastLogonTimestamp less than our time and set to enable
    Get-ADUser -Filter {LastLogonTimeStamp -lt $time -and enabled -eq $true} -Properties LastLogonTimeStamp |
    # Output Name and lastLogonTimestamp into CSV
    select-object givenname,Name,@{Name="Stamp"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp).ToString('dd-MM-yyyy_hh:mm:ss')}} | Export-Csv c:\temp\90DaysInactive-$(Get-Date -format dd-MM-yyyy).csv –NoTypeInformation
    Many thanks for advance Help:

    Hi Anna,
    Good Day.
    Many thanks for your responce.
    with your help i can manage to exclude the OUs as wellas can get the .csv report via mail.
    Now i want to disable all the user based on 90 days export report .csv file.
    could you help me on this please? the report will come everyday like below:
    filename=90DaysInactive-dd-mm-yyyy.csv
    sample output:
    Given name User Name
    Last LogOn
    Test User1 user1
    03-10-2006_05:30:59
    Test User2 user2
    02-10-2006_12:00:34
    import-module activedirectory 
    $domain = "test.com" 
    $DaysInactive = 1 
    $time = (Get-Date).Adddays(-($DaysInactive))
    $timer = (Get-Date -Format yyyy-mm-dd)
    $FileName="c:\temp\90DaysInactive-$(Get-Date -format dd-MM-yyyy).csv"
    $from = "[email protected]"
    $to = "[email protected]"
    $smtpHost = "smtpservername"
    $Subject = "90 Days Inactive Accounts"
    $body = "90 Days Inactive Accounts report"
    # Get all AD User with lastLogonTimestamp less than our time and set to enable
    Get-ADUser -Filter {LastLogonTimeStamp -lt $time -and enabled -eq $true} -Properties LastLogonTimeStamp | where {($_.distinguishedname -notlike "*OU=HR*") -and ($_.distinguishedname -notlike "*OU=OT*")} | 
    # Output Name and lastLogonTimestamp into CSV
    select-object givenname,Name,@{Name="Last Logon"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp).ToString('dd-MM-yyyy_hh:mm:ss')}} | Export-Csv c:\temp\90DaysInactive-$(Get-Date -format dd-MM-yyyy).csv -NoTypeInformation
    Send-MailMessage -From $from -To $to -Subject $subject -cc $cc -SmtpServer $smtpHost -Attachments $FileName -Body $body -BodyAsHtml
    Thanks for your advance help.

  • PO Output for Communication doesn't work for POs created from a requisition

    Hi gurus,
    When I create a PO using the standard PO form, I have no problem generating the xml tags in the log file when I run the PO Output for Communication (using Debug option).
    When I create a requisition from Iprocurement, it automatically generates a PO. If I run the PO Output for communication for this PO, it gives me a bunch of gibberish data in the log file. like little squares and symbols.
    Can anyone help me on this. We are using R12.
    Thanks in advanced!

    This Program "PO Output for Communication" does effects in other parts.
    I mean that this program actually sends an email (or fax or print) along with the PO in PDF attachment or in the TEXT format.
    This program does other part than the above mentioned point also.If yes then provide me the information in which other parts this program effects.I believe it is only the part you mentioned above.
    PO Output for Communication
    http://docs.oracle.com/cd/E18727_01/doc.121/e13410/T446883T443960.htm#srs.poxpopdf
    PO Output for Communication Search
    http://www.oracle.com/pls/ebs121/search?word=PO+Output+for+Communication&format=ranked&remark=quick_search
    Thanks,
    Hussein

  • Format of output from BLS

    When I create a web refence in .NET for a business logic transaction using the following format:
    http://server:port/XMII/WSDLGen/transaction
    The output for the xacute method is of type "Rowset". Is there a way to get this method to return standard xml ? Typically, that's what most web services return.
    Is this something that .NET is doing on it's own or is it the way I'm creating the web reference ?
    BTW I'm using xMII Version 12.0

    Glenn, another alternative instead of using the web service invocation of the BLS transaction is to use the "Runner" servlet instead.  You'll get back metadata in the XML that you can use to dynamically create the column metadata in an ADO Dataset object.  Same basic idea, but you won't need reflection.  You can just parse/process the XML.  In a previous life, I built a wrapper class that executed any transaction and converted the results to a bindable dataset.  You'll be able to do the same.  I might even have the code lying around somewhere, as I know I sent it to a bunch of other people to use when I was at SAP.
    Rick

Maybe you are looking for