Problems with gettting priority-header

Hi!
Why do I get a NullpointerException when I'm trying to get the X-Priority-Header?
I use the following code:
String s[] = messages.getHeader("X-Priority") ;
String sPriority = s[0];
if (sPriority == null)
System.out.println("NULL!");
else
System.out.println("PRIORITY: "+ sPriority);
Which is the correct way to get the priority?
THX in advance!
Fibo

As the documentation says:
"Get all the headers for this header name. Returns null if no headers for this header name are available."
But you don't test for null (as far as I can tell from your mangled code), you just use the variable "s" even if it is null.

Similar Messages

  • SMARTFORM: PROBLEM WITH PRINTING SAME HEADER IN PAGES FOR A NON-FINISH LIST

    Hi, guys!
    I hope you can help me as well as many other times.
    I have a Smartform which contains a header,body and a footer in a page.
    This is a form for a report, which we have a column header and the positions. the problem is that if a current account haven't finish in that list (see the example)
    ASD
    ASDASDASDASD
    ASDASDASDASD
    MY REPORT
    ACCOUNT      | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |                <-- COLUMN HEADER
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |12.12            |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123123.23    |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.1233      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |21222.23      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.23          |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |1212.12        |
    PAGE 1
    in the next page, we don't want to repeat the columns header. just only continue printing the lines...
    ASD
    ASDASDASDASD
    ASDASDASDASD
    MY REPORT
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.1233      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |21222.23      |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |123.23          |
    123123123     | xxxxxxxxxxx |xxxxxxxxxxx |xxxxxxxxxxx |1212.12        |
    PAGE 2
    Has anyone encourage this issue? What can I do? remember is a smartform.
    please help us!!
    thanx

    Guys.
    Remember that the columns header won't be printed only if the lines per account continues. I mean, the column header printing depends on the number of lines that are being printed.
    If at the end of a previous page the list (for example the positions that belong to this account) still continues for an account, then in the next page the column header musn't be printed, just only continue printing the rest of the positions. As you notice this case would be found in any number of pages during the rest of the report.
    I'm agree with all your solutions but this only functionin some cases for the first page.
    I look forward to hearing from you.
    If I'm clear now, please help me!
    Thanks guys!

  • Problem with status of header in BAPI_BUSPROCESSND_CREATEMULTI

    Hi All,
    I start by shortly describing the situation of the problem.
    We have CRM linked to R/3 (IS-U (energy products) and SD (home assistance products)).
    We created a bsp application for the IC Winclient (integrated in a workspace) which makes it possible to create a contract easily. When I create a contract with 3 items (10 = Electricity; 20 = Home Assistance; 30 = Gas) then replication of item 20 to SD is not done. the status of the header does not change to 'to be distributed'...
    And since I use the BAPI 'BAPI_BUSPROCESSND_CREATEMULTI' it is possible to change the user status (works fine) but still it doesn't replicate.
    Since the BAPI does a CRM_ORDER_SAVE, afterwards I can't change it directly because it is still locked...
    Does anybody know how I can fix this???
    thanx in advance!!
    Micha

    Hi Kapil,
    I totally agree with you that in the normal circumstances the replication is complete. And it is the case if I create a contract where the Home Assistance is the last item...
    But when I create a contract with 3 items (10 = Electricity (new customer so a workflow is started and no replication is needed yet); 20 = Home Assistance (should be replicated to SD); 30 = Gas (new customer so a workflow is started and no replication is needed yet)) then the item 20 is not replicated...
    I changed the order of the contract (within the program) and if I create the contract with the following order (10 = Electricity (new customer so a workflow is started and no replication is needed yet); 20 = Gas (new customer so a workflow is started and no replication is needed yet); 30 = Home Assistance (should be replicated to SD)), then the Home Assistance is replicated fine...
    It is a very strange problem... replication works fine in all cases, just not in this order....
    Thanks for the tip anyhow!!
    Micha

  • ToC problem with hanging side head paragraphs

    I've created a template in CS4 ID that uses hanging side heads that look like those shown here:
    http://tinyurl.com/bdrnxq
    The hanging side heads were created using instructions included in the linked example.
    Everything is working except the ToC. When I generate one, the hanging side heads are grouped together at the top of the items listed on a page, no matter where they really are located on that page. For example, if the following sections were on page 5 in the book:
    1st level section 1......pg 5
    1st level section 2......pg 5
    1st level section 3......pg 5
    2nd level hanging side head section 3.1.....pg 5
    1st level section 4......pg 5
    Are showing up in the TOC as:
    2nd level hanging side head section 3.1......pg 5
    1st level section 1......pg 5
    1st level section 2......pg 5
    1st level section 3......pg 5
    1st level section 4......pg 5
    Is there a setting that will fix this problem, or a workaround? I'm bummed that this isn't working properly in InDesign.

    Hello Jeurgen
    I don't think that it is possible to do what you want i.e. independently control where Pages breaks the heading in the TOC. However, you will notice that you get slightly nearer what you want if you align the text of the TOC to the left instead of justifying it.
    Annoying I know...

  • Problems with ALV header

    Hi there,
    i've got a little problem with my ALV header. every time when i run my program and want to go back to the selection screen with the BACK-button i see my header again. so i've got to push the BACK-button again to get to the selection screen.
    here's my alv-code
    FORM TOP_OF_PAGE.
      REFRESH header_itab[].
      CLEAR wa_header.
      wa_header-typ = 'H'.
    *  wa_header-key = 'ausw1'.
      wa_header-info = text-001.
      APPEND wa_header TO header_itab.
      CLEAR wa_header.
      IF radio1 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton1'.
        wa_header-info = text-002.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSEIF radio2 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton2'.
        wa_header-info = text-003.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSEIF radio3 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton3'.
        wa_header-info = text-004.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSEIF radio4 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton4'.
        wa_header-info = text-005.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSE.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton5'.
        wa_header-info = text-006.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ENDIF.
      wa_header-typ = 'S'.
      wa_header-key = 'Benutzer:'.
      wa_header-info = sy-uname.
      APPEND wa_header TO header_itab.
      CLEAR wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = header_itab.
    ENDFORM.
    *       FORM alv_füllen                                               *
    FORM alv_fuellen .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program     = my_repid
                i_callback_top_of_page = 'TOP_OF_PAGE'
    *            i_grid_title           = my_title
                it_fieldcat            = feldkatalog_itab
                is_layout              = gs_layout
    *            it_events              = event_itab
           TABLES
                t_outtab               = itab
           EXCEPTIONS
                program_error          = 1
                OTHERS                 = 2.
    ENDFORM.
    *       FORM layout_allg_build                                        *
    FORM layout_allg_build.
           gs_layout-zebra  = 'X'.
           gs_layout-colwidth_optimize = 'X'.
    ENDFORM.
    hope someone can help me.
    regards tobias

    hi,
    i tried some of your ideas but none helped my.
    so here's my complete code
    maybe this is helpful.
    *& Report  z_cd_tool_awdimaiob
    REPORT z_cd_tool_awdimaiob.
    * G L O B A L   I N T E R N  A L   T A B L E S
    DATA: BEGIN OF itab OCCURS 100,
          status TYPE dimaiobpar-zstatus,
          rtyp TYPE  dimaiobpar-zrtyp,
          zahlweg TYPE dimaiobpar-ezawe_x,
          a_status TYPE i,
          a_rtyp TYPE i,
          a_partner TYPE i,
          a_vertraege TYPE i,
          END OF itab .
    * G L O B A L   D A T A
    DATA: ok_code LIKE sy-ucomm,
          wa_test_tab LIKE dimaiobpar,
          my_title TYPE lvc_title,
          my_repid LIKE sy-repid.
    TYPE-POOLS: slis.
    DATA:     feldkatalog_itab  TYPE   slis_t_fieldcat_alv,
         wa_feldkatalog    TYPE   slis_fieldcat_alv,
           event_itab        TYPE   slis_t_event,
           header_itab       TYPE   slis_t_listheader,
           gs_layout         TYPE   slis_layout_alv,
           alv_event         TYPE   slis_alv_event,
           wa_header         TYPE   slis_listheader.
    DATA: t_tab LIKE dimaiobpar.
    *selection-screen
    SELECTION-SCREEN: SKIP, BEGIN OF BLOCK test WITH FRAME TITLE text-010.
    SELECT-OPTIONS: partner FOR  t_tab-partner,
                    astatus FOR  t_tab-zstatus.
    SELECTION-SCREEN END OF BLOCK test.
    *Radiobutton
    SELECTION-SCREEN: SKIP, BEGIN OF BLOCK test2 WITH FRAME TITLE text-020.
    PARAMETERS: radio1 RADIOBUTTON GROUP test DEFAULT 'X',
                radio2 RADIOBUTTON GROUP test,
                radio3 RADIOBUTTON GROUP test,
                radio4 RADIOBUTTON GROUP test,
                radio5 RADIOBUTTON GROUP test.
    SELECTION-SCREEN END OF BLOCK test2.
    * S T A R T - O F - S E L E C T I O N.
    START-OF-SELECTION.
    * Select-Abfrage
      PERFORM select_data.
    *END-OF-SELECTION.
    * Feldkatalog fuellen.
      PERFORM feldkatalog_fuellen .
    * Feldkatalog übergeben
      PERFORM alv_feldkatalog.
    * ALV-Event
      perform alv_event.
    * Layout bestimmen.
      PERFORM layout_allg_build.
    * header aufbau
      PERFORM top_of_page.
      SORT itab.
      my_title = 'Auswertung Dimaiobpar'.
      my_repid = sy-repid.
      PERFORM exit_program.
    END-OF-SELECTION.
    * ALV mit daten füllen
      PERFORM alv_fuellen.
    *       FORM alv_event                                                *
    FORM alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                i_list_type = 0
           IMPORTING
                et_events   = event_itab.
      READ TABLE event_itab
      WITH KEY name = 'TOP_OF_PAGE'
      INTO alv_event.
      IF sy-subrc EQ 0.
        MOVE 'TOP_OF_PAGE' TO alv_event-form.
        APPEND alv_event TO event_itab.
        ENDIF.
    ENDFORM.
    *       FORM alv_feldkatalog                                          *
    FORM alv_feldkatalog.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                i_program_name     = my_repid
                i_internal_tabname = 'ITAB'
                i_inclname         = my_repid
    *            i_bypassing_buffer = 'X'
           CHANGING
                ct_fieldcat        = feldkatalog_itab
           EXCEPTIONS
                program_error      = 1
                OTHERS             = 2.
    ENDFORM.
    *       FORM header                                                   *
    FORM top_of_page.
      CLEAR wa_header.
      wa_header-typ = 'H'.
    *  wa_header-key = 'ausw1'.
      wa_header-info = text-001.
      APPEND wa_header TO header_itab.
      CLEAR wa_header.
      IF radio1 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton1'.
        wa_header-info = text-002.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSEIF radio2 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton2'.
        wa_header-info = text-003.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSEIF radio3 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton3'.
        wa_header-info = text-004.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSEIF radio4 = 'X'.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton4'.
        wa_header-info = text-005.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ELSE.
        wa_header-typ = 'S'.
        wa_header-key = 'Radiobutton5'.
        wa_header-info = text-006.
        APPEND wa_header TO header_itab.
        CLEAR wa_header.
      ENDIF.
      wa_header-typ = 'S'.
      wa_header-key = 'Benutzer:'.
      wa_header-info = sy-uname.
      APPEND wa_header TO header_itab.
      CLEAR wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = header_itab.
      REFRESH header_itab.
    ENDFORM.
    *       FORM alv_füllen                                               *
    FORM alv_fuellen .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program     = my_repid
                i_callback_top_of_page = 'TOP_OF_PAGE'
    *            i_grid_title           = my_title
                it_fieldcat            = feldkatalog_itab[]
                is_layout              = gs_layout
    *            it_events              = event_itab
           TABLES
                t_outtab               = itab
           EXCEPTIONS
                program_error          = 1
                OTHERS                 = 2.
    ENDFORM.
    *       FORM layout_allg_build                                        *
    FORM layout_allg_build.
           gs_layout-zebra  = 'X'.
           gs_layout-colwidth_optimize = 'X'.
    ENDFORM.
    *       FORM feldkatalog_fuellen                                      *
    FORM feldkatalog_fuellen.
    *Feldkatalog erstellen/füllen mit hilfe der if-schleife anhand des
    *gewählten Radiobuttons
    IF radio1 = 'X'.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'STATUS'.
           wa_feldkatalog-seltext_m     = 'Status'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'RTYP'.
           wa_feldkatalog-seltext_m     = 'Rechungstyp'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'A_RTYP'.
           wa_feldkatalog-seltext_m     = 'Anzahl Rechungstyp'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
    ELSEIF radio2 = 'X'.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'RTYP'.
           wa_feldkatalog-seltext_m     = 'Rechungstyp'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'A_STATUS'.
           wa_feldkatalog-seltext_m     = 'Anzahl Status'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
    ELSEIF radio3 = 'X'.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'STATUS'.
           wa_feldkatalog-seltext_m     = 'Status'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'RTYP'.
           wa_feldkatalog-seltext_m     = 'Rechungstyp'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'A_VERTRAEGE'.
           wa_feldkatalog-seltext_m     = 'Anzahl Verträge'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
    ELSEIF radio4 = 'X'.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'STATUS'.
           wa_feldkatalog-seltext_m     = 'Status'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'RTYP'.
           wa_feldkatalog-seltext_m     = 'Rechungstyp'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'A_PARTNER'.
           wa_feldkatalog-seltext_m     = 'Anzahl GPartner'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
    ELSE.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'STATUS'.
           wa_feldkatalog-seltext_m     = 'Status'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'RTYP'.
           wa_feldkatalog-seltext_m     = 'Rechungstyp'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'ZAHLWEG'.
           wa_feldkatalog-seltext_m     = 'Zahlweg'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
      CLEAR wa_feldkatalog.
           wa_feldkatalog-fieldname     = 'A_PARTNER'.
           wa_feldkatalog-seltext_m     = 'Anzahl GPartner'.
      APPEND wa_feldkatalog TO feldkatalog_itab.
    ENDIF.
    ENDFORM.
    *       FORM select_data                                              *
    FORM select_data.
    *select-abfrage mit hilfe der if-schleife, analog zum Feldkatalog
      IF radio1 = 'X'.
    *   Radiobutton1: Rechungstypen je Satus
        SELECT
           zstatus AS status
           zrtyp AS rtyp
           COUNT( DISTINCT zrtyp ) AS a_rtyp
           INTO CORRESPONDING FIELDS OF itab
           FROM dimaiobpar
           WHERE
           insobject LIKE 'V%' AND
           partner IN partner AND
           zstatus IN astatus
           GROUP BY ZSTATUS zrtyp
           ORDER BY zstatus.
          APPEND itab.
        ENDSELECT.
      ELSEIF radio2 = 'X'.
    * Radiobutton2: Status je Rechungstyp.
        SELECT
               zrtyp AS rtyp
               COUNT( DISTINCT zstatus ) AS a_status
               INTO CORRESPONDING FIELDS OF itab
               FROM dimaiobpar
               WHERE
               insobject LIKE 'V%' AND
               partner IN partner AND
               zstatus IN astatus
               GROUP BY  ZRTYP
               ORDER BY zrtyp.
          APPEND itab.
        ENDSELECT.
      ELSEIF radio3 = 'X'.
    * Radiobutton3: Anzahl Verträge je Status und Rtyp.
        SELECT
             zstatus AS status
             zrtyp AS rtyp
             COUNT( DISTINCT insobject ) AS a_vertraege
             INTO CORRESPONDING FIELDS OF itab
             FROM dimaiobpar
             WHERE
             insobject LIKE 'V%' AND
             partner IN partner AND
             zstatus IN astatus
             GROUP BY ZSTATUS zrtyp
             ORDER BY zstatus.
          APPEND itab.
        ENDSELECT.
      ELSEIF radio4 ='X'.
    *  Radiobutton4: Anzahl GPartner je Status und RTyp.
        SELECT
               zstatus AS status
               zrtyp AS rtyp
               COUNT( DISTINCT partner ) AS a_partner
               INTO CORRESPONDING FIELDS OF itab
               FROM dimaiobpar
               WHERE
               insobject LIKE 'V%' AND
               partner IN partner AND
               zstatus IN astatus
               GROUP BY ZSTATUS zrtyp
               ORDER BY zstatus zrtyp.
          APPEND itab.
        ENDSELECT.
      ELSE.
    * Radiobutton5: Anzahl Kunden nach Zahlweg.
        SELECT
             zstatus AS status
             zrtyp AS rtyp
             ezawe_x AS zahlweg
             COUNT( DISTINCT partner ) AS a_partner
             INTO CORRESPONDING FIELDS OF itab
             FROM dimaiobpar
             WHERE
             insobject LIKE 'V%' AND
             partner IN partner AND
             zstatus IN astatus AND
             ezawe_x IN ('E', 'F', space)
             GROUP BY ZSTATUS zrtyp EZAWE_X
             ORDER BY zstatus zrtyp.
          APPEND itab.
        ENDSELECT.
      ENDIF.
    ENDFORM.
    *       FORM EXIT_PROGRAM                                             *
    FORM exit_program.
    IF sy-ucomm = 'BACK' OR
       sy-ucomm = 'EXIT' OR
       sy-ucomm = 'CANCEL'.
      LEAVE PROGRAM.
      endif.
    ENDFORM.

  • Printer problems with Officejet Pro 8500 A910

    Dear all,
    I have been given as a present an Officejet Pro 8500 A910 (serie number CN16LDM020 and product number CM756A). The people whom I have got it from already had some problems with the printer heads. I have accepted the printer, because I want to have it working again. I do encounter some problems however. I hope you kind people on the forum can help me out and get this thing working again. As a side note: I am only interested in using the scanner, printer (only black and white - I do not print in colour) and e-printing (I understand that it is possible to email documents to printer, so that they are printed whilst you are somewhere else). 
    Upon installation I have conneted the internet to my wi-fi. Upon installation it made some test prints, whereby the black dots were good, but the cyan and other colours were not. When I now turn off the installed printer and switch it on again it takes the printer about 5 - 7 minutes to initialize. On the touch screen of the printer it is said "Checking printer, this might take 5 minutes", "Checking printheads", "Aligning printheads" and alike notifications. After 5 - 7 minutes the printer gives the following notification: " Failure notice. Alignment failed. Refer to device documentation for details." When I then push the question mark on the touch screen the following notidication is given: " Alignment failed. Check printer quality of the current print job. If it is not satisfactory, try aligning the printer to see if that improves the quality. To align the printhead again, touch (home), touch (arrow right), touch Tools, and then touch Align Printhead." When I follow these instructions, the same thing happens. I have tried the option "Clean printheads" under "Tools". The test prints that come out are again good in black and white and not good in colour. 
    The ink level of the cartridges is very low for Yellow, Magenta and Cyan. For Black the printer gives a question mark. The expiry date of the cartridges is in 2015. The information on the Self Test Diagnostic Page (you get when you print a report from checking the ink cartridges) gives the following status:
    Printhead status
    Printhead health: Good (for both Black/Yellow and Magenta/Cyan)
    Serial: 7735960 (Black/Yellow) and 7744345 (Magenta/Cyan)
    End of warranty: mid-2013
    Accumulated ink usage (ml): Black 99/Yellow 71, Magenta 57/Cyan 58
    Refilled supply:
    Detected in printhead/printer? For all cartidges "yes".
    When I try to print a document from Word on my MacBook (which runs on Mac OS X 10.6.8) and the printer is on stand-by, Word recognizes the printer, starts with the print order but then comes with the notifications "Printer offline" and "Cannot find printer" and postpones the print order. Today I reset the printer and the print job that I had before the reset (which was postponed) came out. 
    Today, I printed a document whilst the printer was not on stand-by (the touch screen was on home menu) and the print was well (it was only black and white). After the print, the printer also made a print report. Again, the colour was bad, but black ink was good. After that print report, the printer started aligning again. After 5 minutes it gave the above-mentioned failure notice (" Failure notice. Alignment failed. Refer to device documentation for details."). 
    I would assume that the first thing that I should do is get new cartridges. However, since I only print black and white, can't I just buy the Black Ink and disable the other cartridges? Then, I am thinking of not buying HP cartridges (since the warranty term is already over). What cartridges do you reccomend (price-quality)? If  new cartridges are installed (previous owner had same problems with full cartridges) and the problems (with print heads) are not solved, what should I do? 
    On a second note, I want to use the option of printing online. In other words, give a print order on my Iphone to the printer so that it starts printing at home. How do I set this up? How can I test this?
    I would be very obliged with your feedback on the above. 
    Kind regards,
    Onno

    Hey Onno,
    I see you have several items listed about your Officejet Pro 8500a (A910 series) printer.  The main issue that stands out is the print quality issue.  I would advise starting here with your printer.  
    From your information I can see that refill or remanufacture cartridges have been used in this printer at some point.  It is possible that the ink from these cartridges have damaged the internal ink system of the printer.  If you have performed all the troubleshooting steps for the print quality issue you are experiencing, then the next step is going to be replacing the printheads of the unit.
    Troubleshooting Print Quality Issues
    The 8500a requires all cartridges be available even if you are simply printing in B&W.  If the cartridges are low, then you will have to replace the cartridges as needed.  Typically by the design of this printer, however, print quality issues do not follow ink levels in the cartridges as ink is piped to the internal printheads, thus even with empty cartridges there is some ink remaining in the system.
    The printheads for the 8500a can be found at most HP certified retailers if you decide to attempt replacing them as a step towards resolving the issue.  As to the cartridges, I would advise using genuine HP cartridges as HP ink is designed with HP printers in mind.  For information about refilled/remanufactured cartridges please click here.
    Hope this helps in getting the print quality issue alleviated,
    Jason
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • My HP Officejet Pro 6835 gives me a message "There is an error with the print head"

    Hi, I'd advise giving HP Support a call, as it's likely you'll require a replacement printer. Can you please let me know how you get on? Thanks, Ciara 

    When I try to print using my HP Officejet Pro 6835 I get the message "There is a problem with the print head"This printer has barely been used. It worked fine the first 5-15 times it was used. I have gone to HP support page and none of the suggestions works. The printer was new Jan. 30, 2015 and has printed less than 20 copies. The screen indicates turn on and off. Have tried that on numerous occasions. Also tried unplugging and plugging in again. Recently added new ink using HP ink cartridge.

  • Alpine CDE-103Bt Head Unit and Problem with 160 Gig Ipod Classic

    Hi,
    2 weeks agao I brought a new Alpine CDE-103BT Head unit for my car. I have owned one of the old 160 gig classics for the last year and a half and at the time I brough the unit I was told this should all work sweet. Indeed all of the documentation from Alpine, and the Sales person, said this would not be a problem.
    Unfortunately from Day one, most times after I received a phone call, while playing my ipod, the Head Unit would givesme an "Error-03" message and stop playing my music. I would then have to unplug my ipod, reset it, and plug it back in. Extremely frustrating.
    The people I brought the Head Unit from are trying to say its an Ipod problem, yet I never had any problems with it and after I contacted the Australian Ipod help line they said it all appears to be working correctly. The firmware version I was on when I first tried the ipod on the head unit was 1.1.2. The Alpine manual said it should be 1.1.1 (then again you would expect them to be able to cope with updates) so as a last ditch attempt I downgraded the firmware on my ipod to 1.1.1, but it did not make a difference.
    The only other thing I have noticed is that I switch the repeat and shuffle settings off when I plug in the unit, but after I unplug it after an Error-03 the Repaet function has been swtiched to all - I am not sure if this is what is causing the problem.
    I am getting pretty frustrated with everything and I was wondering if anyone else has come accross this issue and even me helpful had they found a way to fix it.
    If not has anyone had any postive expereinces with Alpine head units?
    Thanks

    Hi,
    2 weeks agao I brought a new Alpine CDE-103BT Head unit for my car. I have owned one of the old 160 gig classics for the last year and a half and at the time I brough the unit I was told this should all work sweet. Indeed all of the documentation from Alpine, and the Sales person, said this would not be a problem.
    Unfortunately from Day one, most times after I received a phone call, while playing my ipod, the Head Unit would givesme an "Error-03" message and stop playing my music. I would then have to unplug my ipod, reset it, and plug it back in. Extremely frustrating.
    The people I brought the Head Unit from are trying to say its an Ipod problem, yet I never had any problems with it and after I contacted the Australian Ipod help line they said it all appears to be working correctly. The firmware version I was on when I first tried the ipod on the head unit was 1.1.2. The Alpine manual said it should be 1.1.1 (then again you would expect them to be able to cope with updates) so as a last ditch attempt I downgraded the firmware on my ipod to 1.1.1, but it did not make a difference.
    The only other thing I have noticed is that I switch the repeat and shuffle settings off when I plug in the unit, but after I unplug it after an Error-03 the Repaet function has been swtiched to all - I am not sure if this is what is causing the problem.
    I am getting pretty frustrated with everything and I was wondering if anyone else has come accross this issue and even me helpful had they found a way to fix it.
    If not has anyone had any postive expereinces with Alpine head units?
    Thanks

  • Problem with non-ASCII file name in content disposition header

    Hi All,
    I am facing some problems with the non-ASCII file name incase of content-disposition header. I read from the RFC 2183 that if the file name contains non-ASCII characters then the same should be encoded before sending to browser. I did the same but realized 2 problems:
    1. The name of the file is truncated in case the file name is slightly long for e.g. �����������j�b�g��������������������������.txt
    2. Also when the same file is opened in notepad, the title is showing encoded name %E6%9C%80%E4%B8%8A%E4%BD%8D.....
    Overall, I feel that the browser is not understanding or responding to the encoded header values.
    Is there any solution to this problem? I am using Microsoft IE 6.0.
    The code snippet is given below:
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              String fileName = "�����������j�b�g��������������������������.txt";          
              fileName = URLEncoder.encode(fileName, "UTF-8");
              resp.setCharacterEncoding("UTF-8");
              resp.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");
              resp.setContentType("application/download-binary");
              String s = "This is inside txt file";
              resp.getOutputStream().write(s.getBytes("UTF-8"));
              return;
         }Any help or pointer would be highly appreciated.
    Thanks and Regards,
    Ashish

    The MIME standards for non-ASCII filenames are not widely implemented.
    Many mailers use an ad hoc method for encoding filenames. JavaMail
    supports both methods, but you need to set properties, such as the
    mail.mime.encodefilename property. See the JavaMail javadocs for
    the javax.mail.internet package.

  • Problem with small text in iview header

    hi,
    i got a little problem with iView header.
    I've set 2 pages containing the same iViews. The 2 pages have layout (1 column full width -- standard) and the 2 pages have the same properties, themes.
    The problem is that in the first page the header text is very small and in the second one the header text display correctly.
    Have anyone had this problem and how did you solve it ?
    Thanks in advance.

    Hi,
    I don't have a straight answer but:
    1. Have you tried creating a copy of the page which is working correctly?
    2. Why do you need two pages with the same content? Personally, I can't see any reason for maintaining two identical objects.
    Roy

  • EEM Applet Problem With: event syslog pattern ".*" priority 2

    I went to create a EEM applet that would be invoked whenever any syslog message of priority 0-2 was invoked. I figured  the following event statement would work
           event syslog pattern ".*" priority 2
    I never really used the priority optional argument before but thought I understood from the docs that messages at or numerically lower than the specified level are matched.
    Well it doesn't seem to work as documented.  Seems to me that only messages at the specified level are beng matched and not messages numerically lower than the specified level.
    Anyway I did what I wanted differently but wanted to post this in case this is a bug in the syslog ed.

    Actually, it's a problem with the documentation.  The priority option only matches the specified severity.  What you could do is adjust pattern to do this:
    event syslog pattern "*-[012]-"

  • Having problem with header(location)

    I want to have a visitor to a site agree to some terms before being allowed to access a page.  There is no logon so the approval is only for the current session.
    If we call the page with the terms (and the agree button) "portal.php" and the page with the data "gallery.php", the logic is the user goes to gallery.php where there is a check to see if the visitor agreed to the terms.  If not, their redirected to portal.php to do so.
    The code on gallery.php is:
    <?php
    session_start(); 
    if (!isset($_SESSION["agree"]))
        header( 'location: http://localhost/myweb/portal.php' );  Using a local test server
    ?>
    If the Session variable "agree" has not been set, the user is redirected.
    The code on portal.php is:
    <?php
        if ($_POST)
            $_SESSION["agree"] = "Yes";
            header( 'location: http://localhost/myweb/gallery.php'' );
    ?>
    If the code is coming from the "I Agree" button, the Session "agree" variable is set to "Yes" and the visitor directed back to the gallery.php page.
    When I go to the gallery.php page, I get the message that the page isn't redirecting properly.
    The php code on both pages occurs before the DOCTYPE or any other html.
    Any ideas?

    Gallery sends to portal and the I Agree in portal appears to send back to gallery (shows in url display) but nothing is displayed.
    Is this the code on your gallery page?
    <body>
    <h1>XXXXX</h1>
    </body>
    </html>
    If you have in fact gone back to the gallery page, you should certainly see that.
    I should have mentioned that the test php files (...gallery_murray and ...portal_murray) appear to work fine.  What I did next was to copy the php from those two files to copies of the production versions (with appropriate changes to the header file names).  Those new test php files are ...gallery_header and ...portal_header.
    http://www.myspatialhome.org/ATL_counter_gallery_header.php
    Gallery gets to portal and I Agree gets to gallery but nothing is displayed.  Looking at the source there's nothing generated.  I'm assuming this is not a problem with the header php you helped with but something happening later in the gallery php file.
    This is the gallery code down to the doctype.  Minus the php at the beginning that does the header (like in the gallery_murray file), the code works.
    <?php
    if (!isset($_SESSION)) session_start();
    ?>
    <?php
    if (!isset($_SESSION["agree"]))
    { header( "Location: http://www.myspatialhome.org/ATL_counter_portal_header.php" );
    exit();
    ?>
    <?php
    require_once('Connections/atlas.php');  // NOTE: Also may require change in href for detail
        if (!function_exists("GetSQLValueString"))
            function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
                if (PHP_VERSION < 6)
                    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
                $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
                switch ($theType)
                    case "text":
                    $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
                    break;   
                    case "long":
                    case "int":
                    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
                    break;
                    case "double":
                    $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
                    break;
                    case "date":
                    $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
                    break;
                    case "defined":
                    $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
                    break;
                return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];  // Get the current URL for hrefs
    // New group code
    mysql_select_db($database_atlas, $atlas);
    $groups = mysql_query("SELECT * FROM tblMapGroups ORDER BY DispSeq ASC");  // Get the group records
    $row_groups = mysql_fetch_assoc($groups);
        if (!$_GET)
            $selectGroup = $row_groups['MapGroupID'];  // First time through; set initial default group
        else $selectGroup = $_GET['groupselect'];  // Otherwise use GET to retrieve the submit button chosen
    mysql_data_seek($groups, 0);  // Reset to first record for Form loop
    // End new group code
    // Select map records
    $query_maps1 = "SELECT * FROM tblMaps";
    $query_maps2 = "ORDER BY tblMaps.MapGroup, tblMaps.Area, tblMaps.Community, tblMaps.DispSeq ";
    $query_maps = sprintf("%s WHERE MapGroup ='%s' %s", $query_maps1, $selectGroup, $query_maps2);
    $maps = mysql_query($query_maps, $atlas) or die(mysql_error());
    $row_maps = mysql_fetch_assoc($maps);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

  • HTTP header insertion problem with ACE

    Hi
    I try to configure the HTTP header insertion feature based on the action-list type modify http. Unfortunately it does not works.
    The config looks like that
    action-list type modify http TEST
    header insert both Host header-value test:test.
    I added this action-list to the correct policy-map.
    When I checked the snifer output on the server side, there is no test value in the HTTP header.
    I test the same feature based on the "insert-http" command in the policy-map and this one works.
    Could anybody help me with this problem?
    Thank you in advance
    Regards
    Lucas

    Hi Lukas,
    Add a new parameter-map named PRMAP_PERST_REBLNC and add this to the policy map using command appl-parameter http advanced-options PRMAP_PERST_REBLNC as shown below:
    action-list type modify http test-insert
    header insert both My-Header header-value test
    header insert both SSL header-value TRUE
    policy-map type loadbalance http first-match HtppInsert
    class class-default
    serverfarm linux1-80
    action test-insert
    policy-map multi-match SLB1
    class VIP-122-80
    loadbalance vip inservice
    loadbalance policy HtppInsert
    loadbalance vip icmp-reply active
    loadbalance vip advertise active
    loadbalance vip advertise metric 1
    connection advanced-options SetTos
    appl-parameter http advanced-options PRMAP_PERST_REBLNC
    parameter-map type http PRMAP_PERST_REBLNC
    persistence-rebalance
    Hope this will make all the packets are inserted with the http header not the first one only.
    If it works then plz inform.
    Kind Regards.
    Sachin Garg

  • Problems with the Layout Priority in KM

    Hello, I have some problems with the Layout Priority in KM..
    I'm using a KM Navigation Iview with "<i>Layout Set</i>"=NewsBrowser (this Layout Set uses a Collection renderer that sorts the folder's contents by "last modified") and "<i>Layout Set Mode</i>"=exclusive.
    In the KM folder I setted in <i>Details->Settings->Presentation</i> as "<u>rndSortProperty</u>"=name because I need to order my files by FileName property.
    Despite that in see that the contents showed in my iview are ordered by Last Modified...
    The "<i>Layout Set Mode</i>" exclusive gives the higher priority to the Folder Settings..
    I don't understand..
    Thank you in advance.

    Thank you Shyja,
    your post was helpful, but another issue is occurred.
    Maybe en example could be useful..
    My scenario:
    - I need to show a km folder with layout set "<i>ConsumerExplorer</i>" on root folder (no "property of sorting" setted on its collection renderer) and "<i>TabExplorer</i>" (no "property of sorting" setted on its collection renderer).
    - I need to sort files and folders by "last modified". By default seems that they are sorted by "name".
    - With my administrator user I open my folder details (in Content Admin->KM Content is used the Layout "<i>AdminExplorer</i>"), and in "Settings->Presentation->Additional Parameters" I add two parameters "<i>rndSortOrder</i>=descending" and "<i>rndSortProperty</i>=modified" (the others are parameters of AdminExplorer Layout).
    - Then I check "Apply Settings to All Subfolders" and "Use Settings for All iViews (Preferred Presentation)".
    result:
    I see the "<i>ConsumerExplorer</i>" on root folder, the subfolder are sorted by "last modified" (everything ok).
    I click on a subfolder, the "TabExplorer" si showed, the Tabs and the content are sorted by "last modified" BUT..
    .. into the tabs are showed <u>nameFolders</u> (in link style), <u>the action command</u>, and the properties of "<u>author</u>" and "<u>last modified</u>" (normally into the tabs are showed just the folderNames in text style)...
    Why?? Is possible that the "AdminExplorer" parameters of the km folder affect the Tab component??
    Thank you

  • I have a problem with the pen in my mag/cyan print head. I have tried cleaning it, and replacing it

    I have an HP ML7850 all-in-one model.  The display reads "There is a problem with the mag/cyan print head."  The HP solution center said I needed to replace the print head.  I did, but the problem still exists.  I went through the online self-diagnostic testing, and the results are that there is a problem with the pen.  I tried to gently clean the pens, but it did not help.  Any suggestions?

    On D5460, it now prints with a cyan tint over whole picture.

Maybe you are looking for

  • Power button issue Mac Pro 2.66

    Mac Pro 2.66 is connected to a power strip I now notice that I do not have to press the power button to boot this Mac up. To boot it I need to just turn the power strip on WITHOUT pressing the power button and it boots right up. Only occasionally whe

  • How do I to fix 2 Console reported errors in Mac OS 10.4.11

    When I start up my old G4 with OS 10.4.11, its Console reports 2 errors, as shown on the screen shot below There are many "plists", so I do not know which one needs correcting. In my System I located  "/en" here: "~System/Library/Frameworks/Foundatio

  • How to simulate a dml error in order to test try-catch code block inside a stored procedure

    Hi, What would be the easiest way to simulate a dml error in order to test a try catch block. I would like to do it with a simple command from outside the stored procedure if possible. I tried dropping the table that was updated but it hangs Thanks,

  • Standard text and perform in scripts

    Hi guys, can any body tell me how to use<b> perform</b> in scripts. and how to include these statement it doesn't look like standard text /: INCLUDE &ZTXTNAME& OBJECT BOM ID MZU have a nice weekend

  • Re-installing System Software, Then upgrading OS

    I just replaced my Macbook Pro Hard Drive. I was about to begin the long process of installing the original system 10.4.6 (from when I purchased the Macbook Pro), then upgrading to 10.5 (which I purchased recently), then upgrading to 10.5.6 (download