Blank Output

I am using Flash CS3, and while I am totally new to Flash, I
have been using Adobe for years. Having said that, Flash does not
look like rocket science, however I have the following problem:
Use CS3 Video Encoder to create a .flv file from an .avi or
.mpg file, which apparently encodes and saves the file. When I try
to play the file, or work with it in CS3 Flash Pro, I have a blank
white screen. In the Flash Player, the choices in the Control menu
show "play" checked, but that, and all other choices are grayed
out.
The files show that they have content (or at least are about
1MB in size), but are not playing anything but a white screen.
I am sure I am doing something wrong, but am cussed if I can
see what it is. Have looked at the tutorials, and I certainly have
encoded them the way recommended (not all that hard to add a file
and start the queue). The .avi files have content as I can play
them on Nero and they are fine.
Any suggestions?

FWIW, Flash is just like rocket science, some might say,
harder than rocket
science! Especially if you're not a developer by trade.
In terms of the question....
How are you directing Flash to play your FLV:
Are you using the FLV playback component?
Are you using actionscript code?
What do you mean by "work with it in Flash"?
If you are simply trying to play a FLV, and you have
dreamweaver, you might
want to try that.
"stevesohn" <[email protected]> wrote in
message
news:f8v32h$mfm$[email protected]..
>I am using Flash CS3, and while I am totally new to
Flash, I have been
>using
> Adobe for years. Having said that, Flash does not look
like rocket
> science,
> however I have the following problem:
>
> Use CS3 Video Encoder to create a .flv file from an .avi
or .mpg file,
> which
> apparently encodes and saves the file. When I try to
play the file, or
> work
> with it in CS3 Flash Pro, I have a blank white screen.
In the Flash
> Player, the
> choices in the Control menu show "play" checked, but
that, and all other
> choices are grayed out.
>
> The files show that they have content (or at least are
about 1MB in size),
> but
> are not playing anything but a white screen.
>
> I am sure I am doing something wrong, but am cussed if I
can see what it
> is.
> Have looked at the tutorials, and I certainly have
encoded them the way
> recommended (not all that hard to add a file and start
the queue). The
> .avi
> files have content as I can play them on Nero and they
are fine.
>
> Any suggestions?
>

Similar Messages

  • Sales Analysis Report - Monthly report shows blank output

    Hi,
    When i run the Sales Analysis Report - Customer (Annual) report for a data set it shows the correct data - large number of invoices
    However, there is no output available (blank output) when i use the the Monthly version of the same report using the same parameters. Even when i am taking the widest possible range of data sets ( large date range; no properties; All customers) i am not getting any output.  I am using Individual display.
    Please help out.
    Regards.
    Edited by: Manish Chaturvedi on Jul 14, 2009 11:56 AM

    hello
    In sales analysis report have u given posting date for a particular month if not give and select client /customer in group and run the report u will get exactly if not then u do have any postings for a particular month and definr due date that means posting period also
    regards
    jenny

  • In CC bridge, I get a blank output pane

    In CC bridge, I get a blank output pane, tried installing the module...no luck

    Yes I have that installed, I downloaded the .zip file, and followed these instructions:
    Download the appropriate file below by right-clicking (Windows) or Ctrl+clicking (Mac OS) and choosing to save the file. Save the file in a location you can remember, such as your Desktop.
    AOM_Package_Win64.zip<install-output-module-bridge-cc/_jcr_content/main-pars/download/file .res/AOM_Package_Win64.zip>
    Windows 64 bit
    AOM_Package_Win32.zip<install-output-module-bridge-cc/_jcr_content/main-pars/download_0/fi le.res/AOM_Package_Win32.zip>
    Windows 32 bit
    AOM_Mac_New.zip<install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res /AOM_Mac_New.zip>
    New module for Mac OS
    1.      Double-click the downloaded file to decompress it. Open the resulting AOM_Package_Mac, AOM_Package_Win64, or AOM_Package_Win32 folder. This folder contains:
      the Adobe Output Module folder
      the AdobeOutputModule.workspace file.
    2.      Copy the Adobe Output Module folder (not the AOM_Package_[OS] folder) into the Bridge CC Extensions folder in the appropriate location:
      Windows: C:\Program Files\Common Files\Adobe\Bridge CC Extensions
      Mac OS: /Library/Application Support/Adobe/Bridge CC Extensions
    3.      Copy the AdobeOutputModule.workspace file into the Workspaces folder under the Bridge CC Extensions folder.

  • ALV returning blank output

    Hi all,
    I'm converting a report into ALV format. My problem over is that my ALV output is blank.
    FYI, I've checked on the internal table that I passed into the function 'REUSE_ALV_GRID_DISPLAY', there are 50 rows of data inside the internal table. Using the same internal table, I can even write out the report.
    Even when I try to pass it in for ALV output, everything is display nicely (title, column header, column size) except the content are 50 blank rows.
    Anyone can help? Thanks in advance!
    Regards,
    JT

    Hi all,
    I've changed the order of field catalog to be the same as list display order as well as all the field name to upper-case.
    The output I get even worse. It only show me title and a blank grey page.
    I did ALV report for 3 times previously without any problem. This is the first time I encountered such problem and I've been debugging the problem for the past 4 days.
    Below is part of my code.
    TYPE-POOLS:  SLIS.
    DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          I_SORT TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE,
          I_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER WITH HEADER LINE,
          I_EVENTS TYPE SLIS_T_EVENT WITH HEADER LINE,
          F2CODE LIKE SY-UCOMM  VALUE '&ETA',
          LAYOUT TYPE  SLIS_LAYOUT_ALV,
          GT_SLIS_T_EVENTS TYPE  SLIS_T_EVENT,
          GW_SLIS_EVENTS TYPE  SLIS_ALV_EVENT,
          C_PROG LIKE SY-REPID,
          INX2 TYPE SY-TABIX.
    TYPES: BEGIN OF TYPE_ALV,
             LZONE     LIKE KNA1-LZONE,
             NAME1     LIKE KNA1-NAME1 ,
             VTEXT     LIKE TZONT-VTEXT,
             COST      TYPE P DECIMALS 2,
             NTGEW     TYPE P DECIMALS 2,
             RMMT      TYPE P DECIMALS 2,
             MATKL     LIKE LIPS-MATKL,
           END OF TYPE_ALV.
    DATA: REC_ALV TYPE TYPE_ALV OCCURS 0 WITH HEADER LINE.
    Move data into rec_alv
        CLEAR: rec_alv.
        rec_alv-lzone = rec-lzone.
        rec_alv-name1 = rec-name1.
        rec_alv-vtext = rec-vtext.
        rec_alv-cost = cost_text.
        rec_alv-ntgew = btgew_text.
        rec_alv-rmmt = rmmt_text.
        rec_alv-matkl = rec-matkl.
        APPEND rec_alv.
    FORM BUILD_FIELDCAT
    FORM BUILD_FIELDCAT.
      PERFORM FIELDCAT USING:
        'REC_ALV'  ' '  'LZONE'  '20'  'Transporter'                   ' '  ' ',
        'REC_ALV'  ' '  'NAME1'  '35'  'Customer'                     ' '  ' ',
        'REC_ALV'  ' '  'VTEXT'  '40'  'Area Coverage'               ' '  ' ',
        'REC_ALV'  ' '  'COST'   '15'  'Transport Cost Amount'  ' '  'X',
        'REC_ALV'  ' '  'NTGEW'  '15'  'Sales Volume'             ' '  'X',
        'REC_ALV'  ' '  'RMMT'   '15'  'Transport Cost'             ' '  'X',
        'REC_ALV'  ' '  'MATKL'  '20'  'Material Group'             ' '  ' '.
    ENDFORM.
    FORM BUILD_SORTTABLE
    FORM BUILD_SORTTABLE.
      PERFORM SORTTABLE USING:
        '1' 'LZONE' 'REC_ALV' 'X' ' ' ' ',
        '2' 'NAME1' 'REC_ALV' 'X' ' ' ' ',
        '3' 'VTEXT' 'REC_ALV' 'X' ' ' ' ',
        '4' 'COST'  'REC_ALV' 'X' ' ' 'X',
        '5' 'NTGEW' 'REC_ALV' 'X' ' ' 'X',
        '6' 'RMMT'  'REC_ALV' 'X' ' ' 'X',
        '7' 'MATKL' 'REC_ALV' 'X' ' ' ' '.
    ENDFORM.
    FORM DISPLAY_ALV
    FORM DISPLAY_ALV USING TITLE TYPE C.
      C_PROG = SY-REPID.
      CALL FUNCTION  'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM =  C_PROG
          IT_FIELDCAT =  I_FIELDCAT[]
          IS_LAYOUT = LAYOUT
          I_GRID_TITLE = TITLE
          IT_SORT = I_SORT[]
          I_SAVE = 'A'
        TABLES
          T_OUTTAB = REC_ALV
        EXCEPTIONS
          PROGRAM_ERROR = 1
          OTHERS        = 2.
    ENDFORM.

  • ESS iviews givng blank output

    Dear All,
          I am implementing ESS & MSS.(100 sp 14 with ECC 5.0 and NW 2004)
    Everything works fine with std SAP roles.Then I copied the complete folder in clients namespace but when I assign the new role to user only overview pages are getting displayed.The links like Team Calendar gives blank page as output.
          ESS/MSS user group has Read/Write access to new folder.
    Can anybody help me in solving this issue.
    Regards,
    J K.

    hi,
       As I said, respective user groups have read/ write  access with End User permissions at folder level.
       System, JCo connections are working fine as I can see output with standard role.
    Any help appreciated.
    Regards,
    J K.

  • Excel ( VB ) to ABAP RFC WEB SERVICE Call - No Errors - Blank Output Table

    Trying to get Excel talk to ABAP RFC Web Service.
    -  Excel - 2007 ( Since it is Excel 2007, I didn't had to add any Office Web Services Toolkit or any add on )
    -  ECC 6.0
    Excel (VB) not throwing any error, but is not giving any output ( expecting a table output ).
    ABAP RFC WebService with Uid Pwd Authentication.
    Activated binding for ABAP RFC via SOAMANAGER for clnt 600.
    Using WSDL of WS of Clnt 600 in Excel via VB
    Basic ABAP RFC -
    1 optional import param ( Input Param )
    1 table output  ( Tables Param )
    Basic VB Call Code  -
    Call projHoursWS.wsm_YProjHours("", arProjHours)
    To test if VB and WebService are talking to each other, when i temperorarily change the Authentication method ( uid/pwd ) of Webservice in Sicf it throws "NO MATCHING AUTH" .. So VB and ABAP WS are talking to each other.
    Debugged VB in Excel, not throwing any error , but is always returning the output table (arProjHours) Empty.
    Missing anything?

    Hi,
    Try turning on the ICF Recorder in TCode SICF (check SAP Help for usage details) to establish that the request is reaching SAP successfuly.
    You'll also be able to catch the response that's being generated by SAP this way. Then turn off the ICF recorder.
    Best Regards, Trevor

  • XML connection is giving Blank output

    Hi ,
    I am trying to connect my dashboard with XML data
    but it is giving total blank dashboard.
    I am unable to find out reason.
    Can some one help.
    my XML file is
    <data>
    <variable name="Test">
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.124</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.151</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.018</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.060</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.113</S_PL>
        </row>
    </variable>   
    </data>

    I found a solution...!
    I used
    <data>
    <variable>
    <column>
    </column>
    <column>
    </column>
    <column>
    </column>
    <column>
    </column>
    <column>
    </column>
    </variable>
    </data>

  • How can I fix a blank Output Module panel in Bridge?

    I have Uninstalled both Bridge and PS and downloaded the AOM.
    The Output module works fine on one MBP but not my other one.

    <moved from Downloading, Installing, Setting Up to Bridge General Discussion>

  • Output shown blank when we run report in xml publisher using excel template

    Hi,
    1) We have a requirement where we need to run report to shown 100 columns. Since Microsoft word supports only 63 columns. So we are building the report template in Excel.
    2) When I run the report in Excel locally I get the output. But when I uplaod in BIP server and then run the report It gives a blank output.
    BI Publisher version 10.1.3.4.1
    BI Publisher Desktop version 11.1.1.5
    Please look into the issue.
    Please help
    Thanks,
    Nita

    Pl post details of OS, database and EBS versions, along with the database characterset.
    Are you creating PDF output ? Can you print Chinese characters when using US/UK operating units ? Are you using Pasta ?
    How to Generate PDF Output With UTF8 in R12? [ID 778970.1]
    HTH
    Srini

  • Displaying output  in ALV Report..

    Dear Guru's
    I  have a Tipical Problem in Producaiton. when iam executing the report in Development Server it is working fine.
    but when I executing the same report in Producation server , first time it is given blank output(only layout) and once come back and execute for the same inputs , it is giving correct output.
    if we freshly start executing .. first time it is not giving any output. but once come back to selection-screen and executing it. giving output correctly..
    what may be the reason?...Please do the needfulll
    UR's
    GSANA

    Hi,
    It might be some problem pertaining to some time delay or lag, or a refresh problem.
    So save your code once again activate it and shut down your saplogon and after couple of minutes log in again.
    I faced a similar problem, it was some lag problem only.
    Edited by: Harini Gopinath on Nov 13, 2009 6:19 PM

  • Report 10g output in excel problem

    Dear Members,
    I am using forms 10.1.2.0.2. I am calling the report from Forms parameter. I have passed the report_desformat=SPREADSHEET. But when i run the report it shows nothing and no out put is generated.
    Please help me to find out the problem.
    Parameter forms code is as under.
    PROCEDURE rep_call (p_rep in char, p_param in paramlist) IS
    report_id report_object;                    
    mJob_ID varchar2(200);     
    mRep_Status varchar2(200);     
    mReportServer varchar2(100) := 'REP_SERVER';     
    mReportServerJob varchar2(200);     
    x varchar2(200);
    BEGIN
    report_id := find_report_object(p_rep);
    set_report_object_property(report_id, report_execution_mode, runtime );
         set_report_object_property(report_id, report_comm_mode, synchronous );
         set_report_object_property(report_id, report_destype,cache);
    set_report_object_property(report_id, report_desformat, 'SPREADSHEET' );
         set_report_object_property(report_id, report_server, mReportServer);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'paramform=no');
         mReportServerJob := run_report_object(report_id,p_param);
         mJob_id := substr(mReportServerJob, length(mReportServer) + 2, length(mReportServerJob));     
         mRep_Status := report_object_status(mReportServerJob);
         WHILE Mrep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
              mrep_status := report_object_status(mReportServerJob);
         END LOOP;
    if mRep_status = 'FINISHED' then
         x := '/reports/rwservlet/getjobid' || mJob_id
                   web.show_document (x, '_blank');
         else
         message('report failed with error message ' || mRep_status);
    end if;
    END;
    Thanks & Regards

    Hi,
    1- Are you getting a blank output? or nothing is happening when you call the report from Forms?
    2- What is the status of the report job in Reports Queue manager?
    3- Try to run the same report with the same parameters from the browser URL and compare behavior.
    e.g
    http://hostname:port/reports/rwservlet?report=<report name>&server=<reports server name>&destype=cache&desformat=spreadsheet&paramform=no&userid=user/pass@db&any_other_parameter=value ....
    Regards, RZ

  • Convert BSP output to PDF

    Hi All,
         I have a BSP application wherein a Dashboard report is presented. basically it has a selection screen and a tableview which is displayed. There are two buttons to decide whether its a management report or a regular report. Depending upon the buttons the output inthe table changes. This part is working fine. In case of management report i have to color some cells based on a particular condition. There is another button for  ' Export to PDF'. I need to convert the output of the tableview to PDF. I could not find a direct way to do , so I created an ABAP report of similair output called Z01_BSPPRDDASH_SPOOL . when user presses the button, the report output is genereated and sent to spool. The spool is converrted to PDF using the std FM 'CONVERT_ABAPSPOOLJOB_2_PDF'. After this i need to display the pdf. but the code given below is not doing that. I am unable to see any output. Can you pls telle me what is going wrong . Also let me know if my approach is correct. Can there be any other way of converting a tableview to pdf. I need to solve this urgently as my delivery date is nearing for this object.
    Code :
          DATA: ITAB TYPE TLINE,
                  WITAB TYPE TABLE OF TLINE,
                  OUTPUT TYPE STRING ,
                 CONTENT TYPE XSTRING,
                  WF_SPONO TYPE TSP01-RQIDENT ,
                  WF_PARAMS TYPE PRI_PARAMS,
                  VALID_FLAG(1) TYPE C ,
                  LC_RQ2NAME TYPE TSP01-RQ2NAME ,
                  TSP01_WA TYPE TSP01 .
          DATA: CACHED_RESPONSE TYPE REF TO IF_HTTP_RESPONSE.
          DATA: RESPONSE TYPE REF TO IF_HTTP_RESPONSE.
          DATA: GUID TYPE GUID_32.
          DATA: L_PDF_XSTRING  TYPE XSTRING,
           lt_lines       type table of tline,
               LS_LINE        TYPE TLINE,
               DISPLAY_URL TYPE STRING,
               L_PDF_LEN      TYPE I.
          DATA: OUTPUT_OPTIONS      TYPE SSFCOMPOP,
                CONTROL_PARAMETERS  TYPE SSFCTRLOP,
                OUTPUT_DATA         TYPE SSFCRESCL,
                DEVTYPE             TYPE RSPOPTYPE.
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              DESTINATION    = 'LOCL'
              IMMEDIATELY    = ' '
              RELEASE        = ' '
              NEW_LIST_ID    = 'X'
              LINE_SIZE      = 255
              LINE_COUNT     = 65
              LAYOUT         = 'X_65_255'
              SAP_COVER_PAGE = 'X'
              RECEIVER       = 'SAP*'
              DEPARTMENT     = ''
              NO_DIALOG      = 'X'
            IMPORTING
              OUT_PARAMETERS = WF_PARAMS
              VALID          = VALID_FLAG.
          IF VALID_FLAG = 'X' AND SY-SUBRC = 0.
            SUBMIT Z01_BSPPRDDASH_SPOOL TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                              SPOOL PARAMETERS WF_PARAMS
                               AND RETURN  .
          ENDIF.
    this is to get the spool no. created. Not a real nice
    way though. if someone knows a better method please do
    share
          CONCATENATE 'SAPMHTTP'
                       SY-UNAME+0(3)
             INTO LC_RQ2NAME SEPARATED BY '_'.
          SELECT * FROM TSP01 INTO TSP01_WA WHERE  RQ2NAME = LC_RQ2NAME AND
                                                   RQOWNER = SY-UNAME
          ORDER BY RQCRETIME DESCENDING.
            WF_SPONO = TSP01_WA-RQIDENT.
            EXIT.
          ENDSELECT.
          IF SY-SUBRC NE 0.
            CLEAR WF_SPONO.
          ENDIF.
          IF NOT  WF_SPONO IS INITIAL.
            CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                SRC_SPOOLID              = WF_SPONO
                NO_DIALOG                = 'X'
              TABLES
                PDF                      = WITAB
              EXCEPTIONS
                ERR_NO_ABAP_SPOOLJOB     = 1
                ERR_NO_SPOOLJOB          = 2
                ERR_NO_PERMISSION        = 3
                ERR_CONV_NOT_POSSIBLE    = 4
                ERR_BAD_DESTDEVICE       = 5
                USER_CANCELLED           = 6
                ERR_SPOOLERROR           = 7
                ERR_TEMSEERROR           = 8
                ERR_BTCJOB_OPEN_FAILED   = 8
                ERR_BTCJOB_SUBMIT_FAILED = 9
                ERR_BTCJOB_CLOSE_FAILED  = 10
                OTHERS                   = 11.
          ENDIF.
          IF SY-SUBRC EQ 0.
            LOOP AT WITAB INTO ITAB .
              TRANSLATE ITAB USING ' ~'.
              CONCATENATE OUTPUT ITAB INTO OUTPUT IN CHARACTER MODE.
            ENDLOOP.
            TRANSLATE OUTPUT USING '~ ' .
            CREATE OBJECT CACHED_RESPONSE TYPE CL_HTTP_RESPONSE EXPORTING
          ADD_C_MSG = 1.
            L_PDF_LEN = STRLEN( OUTPUT ).
            CACHED_RESPONSE->SET_CDATA( DATA   = OUTPUT
                                LENGTH = L_PDF_LEN ).
         CACHED_RESPONSE->SET_HEADER_FIELD( name  =
    if_http_header_fields=>content_type
                                            VALUE = 'application/pdf' ).
            CACHED_RESPONSE->SET_STATUS( CODE = 200 REASON = 'OK' ).
            CACHED_RESPONSE->SERVER_CACHE_EXPIRE_REL( EXPIRES_REL = 180 ).
            CALL FUNCTION 'GUID_CREATE'
              IMPORTING
                EV_GUID_32 = GUID.
            CONCATENATE RUNTIME->APPLICATION_URL '/' GUID '.pdf'
            INTO DISPLAY_URL.
            CL_HTTP_SERVER=>SERVER_CACHE_UPLOAD( URL      = DISPLAY_URL
                                               RESPONSE = CACHED_RESPONSE ).
          navigation->goto_page( display_url ).
            RETURN .
    Regards,
    Sriprabha

    Hi Graham ,
       Thanks for the code. But right now I am getting a Blank output. Could you tell me what could be wrong.
    Following is my code :
    DATA: CACHED_RESPONSE TYPE REF TO IF_HTTP_RESPONSE.
    IF NOT  WF_SPONO IS INITIAL.
            CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                SRC_SPOOLID              = WF_SPONO
                NO_DIALOG                = ' '
              TABLES
                PDF                      = WITAB
              EXCEPTIONS
                ERR_NO_ABAP_SPOOLJOB     = 1
                ERR_NO_SPOOLJOB          = 2
                ERR_NO_PERMISSION        = 3
                ERR_CONV_NOT_POSSIBLE    = 4
                ERR_BAD_DESTDEVICE       = 5
                USER_CANCELLED           = 6
                ERR_SPOOLERROR           = 7
                ERR_TEMSEERROR           = 8
                ERR_BTCJOB_OPEN_FAILED   = 8
                ERR_BTCJOB_SUBMIT_FAILED = 9
                ERR_BTCJOB_CLOSE_FAILED  = 10
                OTHERS                   = 11.
          ENDIF.
          IF SY-SUBRC EQ 0.
            LOOP AT WITAB INTO ITAB .
              TRANSLATE ITAB USING ' ~'.
              CONCATENATE OUTPUT ITAB INTO OUTPUT IN CHARACTER MODE.
            ENDLOOP.
            TRANSLATE OUTPUT USING '~ ' .
            CREATE OBJECT CACHED_RESPONSE TYPE CL_HTTP_RESPONSE EXPORTING
          ADD_C_MSG = 1.
            L_PDF_LEN = STRLEN( OUTPUT ).
            CACHED_RESPONSE->SET_CDATA( DATA   = OUTPUT
                                LENGTH = L_PDF_LEN ).
         CACHED_RESPONSE->SET_HEADER_FIELD( name  = 'content-type'
                                            VALUE = 'application/pdf' ).
    some Browsers have caching problems when loading PDF format
            CACHED_RESPONSE->set_header_field(
                               name  = 'cache-control'
                               value = 'max-age=0' ).
            CONCATENATE RUNTIME->APPLICATION_URL '/' 'test.pdf'
            INTO DISPLAY_URL.
            CACHED_RESPONSE->set_header_field(
                               name  = 'content-disposition'
                               value = DISPLAY_URL ).
            navigation->response_complete( ).
    Regards,
    Sriprabha

  • Thread doubled output

    Hi,
    For the purpose of my work, I am trying to store the output that is produced by StreamRedirectThread.java into a vector as shown in the code below. The output of the thread code is ok and the output printed is the numbers from 0 to 5.
    When I try to print out that vector, the output is not as the same as it is printed in the StreamRedirectThread.java program. For example if the output form the program prints out the numbers form 0 to 5, as I said before, the vector output is doubled in size and prints:
    index = 0 content=0
    index = 1 content=
    index = 2 content=1
    index = 3 content=
    index = 4 content=2
    index = 5 content=
    index = 6 content=3
    index = 7 content=
    index = 8 content=4
    index = 9 content=
    index = 10 content=5
    index = 11 content=
    Can anybody advice me what to do about it. I tried but couldn't fix it. The code of StreamRedirectThread.java is as
    Here is the Thread Code: Thanks
    import java.io.*;*
    *import java.util.*;
    import com.sun.jdi.*;*
    *import com.sun.jdi.request.*;
    import com.sun.jdi.event.*;*
    *import com.sun.jdi.connect.*;
    class StreamRedirectThread extends Thread {
    private final Reader in;
    private final Writer out;
    private static Vector outvector = new Vector(0); // victor of objects that contains output result
    private static final int BUFFER_SIZE = 2048;
    * Set up.
    * @param name Name of the thread
    * @param in Stream to copy from
    * @param out Stream to copy to
    StreamRedirectThread(String name, InputStream in, OutputStream out) {
    super(name);
    this.in = new InputStreamReader(in);
    this.out = new OutputStreamWriter(out);
    setPriority(Thread.MAX_PRIORITY-1);
    public void run() {
    try {
    char[] cbuf = new char[BUFFER_SIZE];
    int count;
    while ((count = in.read(cbuf, 0, BUFFER_SIZE)) >= 0) {
    //out.write(cbuf,0,count);
    String s = new String(cbuf,0,count);
    if (!(s.equals(null)))
    TemplateApp.vv.addElement(s);
    outvector.addElement(s); out.write(s);
    out.flush();
    } catch(IOException exc) {
    System.err.println("Child I/O Transfer - " + exc);
    public synchronized static Vector getOutVector()
    return outvector ;
    }Thanks a lot for help

    Iman_S wrote:
    while ((count = in.read(cbuf, 0, BUFFER_SIZE)) >= 0) {
       String s = new String(cbuf,0,count);
       if (!(s.equals(null)))
          TemplateApp.vv.addElement(s);
       outvector.addElement(s); out.write(s);
       out.flush();
    }I've reposted and properly indented this code to help you understand what's going on. I have many problems with this:
    1. s.equals(null) is always false if equals is properly implemented. This is because, if a.equals(b), b.equals(a) must be true due to the symmetry constraint of equals() -- see here: [http://java.sun.com/developer/Books/effectivejava/Chapter3.pdf]. If s.equals(null) were true, then null.equals(s) would have to be true, which is obviously incorrect as a NullPointerException would have been thrown. Use s == null to compare an Object reference with a null reference, and use s.isEmpty() or s.length() == 0 to decide whether a String has characters.
    2. Always use opening and closing braces ( { } ) with an if block. I'm guessing you thought that the "outvector.addElement(s)" statement was IN the if block, but it in fact wasn't. Always be explicit.
    3. Don't do anything that you're doing inside that while loop if count == 0. in.read() can return 0 any time it wants, which means that it didn't read any characters. However, you are using that blank output without caring. I'm guessing the s.equals(null) line was meant to weed that out, but as I said, that will always be false. Moreover, new String( new char[0] ) doesn't give you a null reference, it gives you a new String with no characters.
    I would suggest something more like this:
    while ((count = in.read(cbuf, 0, BUFFER_SIZE)) >= 0) {
       if ( count == 0 ) {
          continue;
       String s = new String(cbuf,0,count);
       TemplateApp.vv.addElement(s);
       outvector.addElement(s);
       out.write(s);
       out.flush();
    Edit I should note that this isn't likely your problem. As Peter said, it does look like you are basically adding newline characters to outvector (if you're sending your data with println, this is to be expected!). Also, I was a bit hasty in saying that InputStream returns 0 "whenever it wants." This isn't typical behaviour, but it should be handled nonetheless.
    Remember that the whole idea of quantifying a Stream like you're doing (adding the content piece by piece to a vector) doesn't make much sense. You really don't have control over how much data arrives at once, etc. This usually depends on the implementation of the streams that are receiving and sending the data. So, while if I sent this string over a socket:
    "Hello brave new world"
    And received it with a large buffer, it could be read by your in.read() function in these pieces: "Hello ", "brave ", "new ", "world", but that would be completely coincidental. It's more likely it would arrive in random pieces, and most likely in one big piece, requiring only one in.read().
    Edited by: endasil on 22-Jul-2008 3:59 PM

  • Displaying negative numbers in brackets in Excel output

    Hello all.
    I have an RTF template...I tired displaying negative numbers in brackets like : (123.80) in Excel output
    But, this is working in PDF and not in Excel.
    Please let me know the way to dsiplay the numbers in brackets.

    varma wrote:
    Negative numbers in bracket
    add a conditional statement like below.
    <?if: NUMBER_TO_CHECK < 0?> <?concat('(',NUMBER_TO_CHECK,')')?><?end if?>
    <?if: NUMBER_TO_CHECK > 0?> <?NUMBER_TO_CHECK?><?end if?>
    are you using the same template for PDF and EXCEL ?
    if so, it has to be handled little differently.
    Place this line in the beginning of the rtf
    <?param@begin:_xf;''?>
    add this condition on number column for Excel output
    <?if:$_xf='excel' and NUMBER_TO_CHECK < 0?> <?concat('(',NUMBER_TO_CHECK,')')?><?end if?>
    Try the above one it should work.
    Have a Nice dayThis didnt work.
    Say that I have element named 'market'
    I placed this condiion <?param@begin:_xf;''?> at the beginningof RTF
    Replaced the number field with this condition: <?if:$_xf='excel' and market< 0?> <?concat('(',market,')')?><?end if?>
    This is giving me a blank output in place of the number.
    >

  • 'show interface trunk' output

    My question is..
    interface Gi0/1 on access switch (Switch A) configured as trunk port allowing multiple vlans (say vlan 100-105)
    Now, this interface Gi0/1 on switch A has no issues and configured fine.
    Another switch B connected to Switch A and working fine.  both sw A & sw B up and working fine
    But,  switch B is now say disconnected from Switch A  which causes the interface Gi0/1 on SW A go down.
    when I do a "show interface trunk" on Switch A, will the output show trunked vlans 100-105  or the output will not show  the trunked vlans as the interface on Switch A is down  because the Switch B is disconnected???
    Basically, all I want to know is   when an interface configured for trunking multiple vlans go down   will the "show interface trunk"  command list those vlans 100-105 in the output  ???
    Thanks for  looking into my q

    When the link is down, you will get a "blank" output to the command "sh interface trunk".

Maybe you are looking for

  • Error when scheduling backup job in OEM

    We have Oracle 11.2 RAC on Redhat Linux. I was creating an customized backup job and get the errorsORA-01476: divisor is equal to zero ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 7544 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 7699 ORA-06512: at "

  • I can't find iPhoto after upgrading to Snow Leopard...

    Usually, there is an icon when I open photobooth but its not there. Then I tried looking in finder to see if I even had it and I don't. Snow Leopard should come with iPhoto right??

  • Problem with Aperture slideshow export - Some photos don't display!

    I have just completed my latest wedding slideshow. It plays as normal in Aperture, but when exported, certain photos don't show... just a black screen. The timings are unaffected.  Aperture 3.6, Yosemite 10.10.1 The affected photos seem to be the one

  • Prioritizing my xbox 360 to my WRT310N wireless router

    I have my router on one end of the house and my xbox on the other end.  i was told that i can prioritize my xbox on my router so that it doesn't lag as much or at all anymore.  i was wondering how i can do this.

  • Countif function help

    Having difficulty with the Countif function. This works:=COUNTIF(Focal Length,B2)  (gives me the count of numbers equal to 14 which is in B2) and This works:  =COUNTIF(Focal Length,">14") (gives me the count of numbers greater than 14) but this does