Unable to show error message in Advanced Table

Hi All,
I have an requirement to show a pdf ouput when user clicks on image or button in advanced table. I have created a new button in advanced table and when user clicks on button, I am showing an error message for testing. i used below code for CO extn, but when I click on button, I can see the diagnostic message but the error message is not showing in the page.
Need your assistance.
package XXJava.oracle.apps.ar.program.webui;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Hashtable;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import oracle.apps.ar.irec.common.webui.CustomCustSearchCO;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.webui.OADataBoundValueFireActionURL;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAImageBean;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.OAWebBeanData;
import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
import oracle.cabo.ui.UIConstants;
import oracle.cabo.ui.action.FireAction;
public class XX_CustomCustSearchCO extends CustomCustSearchCO {
public XX_CustomCustSearchCO() {
public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
super.processRequest(paramOAPageContext, paramOAWebBean);
OAAdvancedTableBean CustomCustSearchTable= (OAAdvancedTableBean)paramOAWebBean.findChildRecursive("CustomCustSearchTable");
          OAImageBean XX_Attach =(OAImageBean)CustomCustSearchTable.findChildRecursive("XX_Attach");
          /*Hashtable params = new Hashtable (1);
          //params.put ("XX_ACTION","XXX");
          params.put ("XX_ACTION","ATTACHMENT");
          Hashtable paramsWithBinds = new Hashtable(1);
          //paramsWithBinds.put ("XX_PRIMARY",new OADataBoundValueFireActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
          paramsWithBinds.put ("CONS_ID",new OADataBoundValueFireActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
          //paramsWithBinds.put ("CONS_ID",new OADataBoundValueFirePartialActionURL((OAWebBeanData) XX_Attach, "{$ConsInvId}"));
XX_Attach.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);*/
FireAction localaction = new FireAction("tempEvent");
OAButtonBean XX_Button1 =(OAButtonBean)CustomCustSearchTable.findChildRecursive("XX_Button1");
XX_Button1.setAttributeValue(UIConstants.PRIMARY_CLIENT_ACTION_ATTR, localaction);
public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
     super.processFormRequest(paramOAPageContext, paramOAWebBean);
String flaction = paramOAPageContext.getParameter("event");
if (flaction.equalsIgnoreCase("tempEvent"))
paramOAPageContext.writeDiagnostics(this, "XX_CustomCustSearchCO :Inside the event ", 1);
throw new OAException("The file path is invalid. Please check the value of the profile option",OAException.ERROR);
Regards,
Ram

You are throwing the message and then catching it yourself, and then printing the stack, which is what java is doing.
So, you need to
remove
}catch(Exception e)
e.printStackTrace();
and you would need to place the try block appropriately, since some methods you have used want exceptions caught.
Tapash

Similar Messages

  • New to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    new to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    So where is LR trying to copy the files?  Check your destination in the Import panel at the right.

  • Error message in UI Table element

    Hi Experts,
    I am having a UI table element in my view. If there are zero records fetched in the select query, i am displaying an error message using message class in the top of the screen.
    Is it possible to display this error message inside the UI table (may be in the first row of the blank table)
    If so what should be done?
    Please help.
    Thanks in advance.

    Hi,
    When there are no records in the table, then the TABLE UI elements shows the message inside the table as
    'Table data not found' something likethis....by the framework. there is no need of explictily throwing a message.
    As we get the same with ALV.
    Please check it out.
    You can UNCHECK the DISPLAYEMPTYROWS option.
    Regards,
    Lekha.

  • Show error message when Install SM7 in step 4 execute Service

    Hi All
    Show error message when Install SM7 in step 4 execute Service.
    Anyone can help me fix the problem pls!
    Regards
    Kevin
    Start the setup task 'Determination of SID and InstanceNumber for Diagnostics agent' ...
    Information for SAPInst:
    sid=SMD
    number=98
    2009.06.08 11:16:59
    Task completed with status 0
    INFO 2009-06-08 11:17:00.0
    Execute step initSystem of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO[E] 2009-06-08 11:17:00.250
    FSL-02077  File system export (share) saploc does not exist.
    INFO 2009-06-08 11:17:00.484
    Execute step initED of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO[E] 2009-06-08 11:17:00.718
    FSL-02077  File system export (share) saploc does not exist.
    INFO[E] 2009-06-08 11:17:05.265
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO 2009-06-08 11:17:05.609
    Execute step createOSUser of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO[E] 2009-06-08 11:17:05.875
    FSL-02077  File system export (share) saploc does not exist.
    INFO[E] 2009-06-08 11:17:08.187
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO[E] 2009-06-08 11:17:10.531
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO[E] 2009-06-08 11:17:12.859
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    INFO[E] 2009-06-08 11:17:15.156
    FSL-01027  Account user="hk-is-000818\smdadm" does not exist.
    WARNING[E] 2009-06-08 11:17:20.281
    FSL-01002  Unable to create account hk-is-000818\smdadm. HRESULT=0x80005009
    INFO 2009-06-08 11:17:20.562
    Execute step initOS400Parameters of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO 2009-06-08 11:17:20.781
    Execute step initING_DI of component |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0
    INFO 2009-06-08 11:17:22.312
    Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\summary.html.
    INFO 2009-06-08 11:17:28.828
    Execute step ntpatch of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|1|0|NW_Update_DLLs|ind|ind|ind|ind|3|0
    INFO 2009-06-08 11:17:29.093
    Node C:\WINDOWS\system32 already exists.
    INFO 2009-06-08 11:17:31.0
    Execute step runChecksStep of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|PrerequisiteCheckerDialogs|ind|ind|ind|ind|3|0
    INFO 2009-06-08 11:17:32.390
    Execute step createAccounts of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_Users_Create_Do|ind|ind|ind|ind|5|0
    INFO 2009-06-08 11:17:33.171
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.203
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.250
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.281
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.328
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.375
    Nothing to do. User privileges are an empty string.
    INFO 2009-06-08 11:17:33.421
    Nothing to do. User privileges are an empty string.
    INFO[E] 2009-06-08 11:17:35.703
    FSL-01027  Account user="hk-is-000818\SAPServicePAS" does not exist.
    WARNING[E] 2009-06-08 11:17:40.796
    FSL-01002  Unable to create account hk-is-000818\SAPServicePAS. HRESULT=0x80005009
    WARNING[E] 2009-06-08 11:17:40.796
    MUT-03025  Caught ESyException in Modulecall: ESAPinstException: error text undefined.
    ERROR 2009-06-08 11:17:40.843
    FCO-00011  The step createAccounts with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_Users_Create_Do|ind|ind|ind|ind|5|0|createAccounts was executed with status ERROR .

    hi Subhash
    tkx it work
    but I got another error when install afterwards. do u know how can fix , many tkx
    Kevin
    WARNING 2009-06-09 20:39:02.421
    Execution of the command "D:\oracle\product\10.2.0\db_1\bin\lsnrctl start LISTENER" finished with return code 1. Output:
    WARNING[E] 2009-06-09 20:39:02.437
    CJS-00095  Error return code. DIAGNOSIS: Return code 1 of executable D:\oracle\product\10.2.0\db_1/bin/lsnrctl indicates an error. SOLUTION: See log file lsnrctl.log for details.
    WARNING[E] 2009-06-09 20:39:02.437
    CJS-00095  Error return code. DIAGNOSIS: Return code 1 of executable D:\oracle\product\10.2.0\db_1/bin/lsnrctl indicates an error. SOLUTION: See log file lsnrctl.log for details.
    ERROR 2009-06-09 20:39:02.468
    FCO-00011  The step StartListener with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraClient|ind|ind|ind|ind|3|0|NW_OraNetworkSrv|ind|ind|ind|ind|1|0|StartListener was executed with status ERROR .

  • Idoc- can we sent already sended idoc if status is showing error message

    hi
    Idoc- can we sent already sended idoc if status is showing error message
    without making any changes.
    Thanks in advance.

    Hi raja,
    IN BD87.
    give the idoc number,its status,messagetype and partner system and resend it.
    Regards,
    nagaraj

  • af:message sometimes does not show error message

    Have a page that has a popup to show some information.
    In page, used this to show error message that occured during save.
              <af:messages globalOnly="true" inline="true"  inlineStyle="padding:10px;" id="m4"/>
    In popup, used this to show error messages that occurred while performing some action.
              <af:messages globalOnly="true" inline="true" id="m2"/>
    Whenever any error occurs while performing some action in page, error message is shown.
    Then open the popup
    Whenever any error occurs while performing some action in popup, error message is shown properly in popup
    But after closing popup, not able to show any error message in page. In bean error message is added to FacesContext, but not shown in UI.
    What would be the problem here?
    JDev version: 11.1.1.6.0
    Thanks,
    Bhaskar Pola

    Thanks Vinay for the link. However still facing the issue.
    This method will be invoked from page.
        public void onDelete(ActionEvent actionEvent) {
            RowKeySet rksSelectedRows = table.getSelectedRowKeys();
            int count = rksSelectedRows.getSize();
            if(count == 0){
                FacesContext facesContext = FacesContext.getCurrentInstance();
                facesContext.addMessage(null,
                                        new FacesMessage(FacesMessage.SEVERITY_ERROR,"Atleast one row should be selected.",null));
                facesContext.renderResponse();
            } else {
               ADFUtils.showPopup(deletePopup);
    This method will be invoked from popup withing same page.
        public void multipleSelListner(ActionEvent actionEvent) {
            List<String> list = (ArrayList<String>)ADFUtils.getPageFlowValue("selList");
            try {
                if(list != null && list.size() > 0){
                    if(list.size() > 25){
                        error = true;
                        FacesContext facesContext = FacesContext.getCurrentInstance();
                        facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,
                                                "Maximum 25 items can be selected.", null));
          facesContext.renderResponse();                                           
                        return;
            } catch (SQLException e) {
                System.err.println(e.getMessage());
                e.printStackTrace();
    I have removed some extra code...
    Looks like problem is with 2 af:message tags. When popup shown with error message second af:message within popup gets preference. Subsequent messages are pointed to that one.
    May be related to unloading popup content from document. Not sure though.
    Thanks,
    Bhaskar

  • Error messages in a table

    Hi everyone,
    I have a problem when displaying error messages in a table (with values, not based on a model)
    In a column I have an inputText and a validation that checks valuechangelistener. If not true, throw an error message for that component.
    facesContext.addMessage (client, message);
    The table is a DropTarget so each time dragging the dragsource to the table renders the table and missed the error message.
    I had thought to save the id of the components in a list and the dragDropEndListener force to be redisplayed.
    The problem is that the IDs of the components varies each time the table is rendered so even save the id of the components is worthless because they are not the same.
    Anybody can help me?How I can re-display the errors of the components?
    I can not use validator instead of valuechangelistener

    I am not sure if you want something like highlighting the components which have errors -
    If yes , then try this code bit
    public void addMessage(UIComponent component, FacesMessage.Severity type,
    String message) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(type, message, null);
    fctx.addMessage(component.getClientId(fctx), fm);
    You can call the method like this addMessage(this.componentName,FacesMessage.SEVERITY_ERROR,ErroMessage)
    -Sudipto

  • How to show error message in a report program

    Hello Guys,
    I am making a report using smartforms. I am successful in showing data  but problem is if if i put a value in parameters that does not exist is database, the smartform runs and related fields shows as empty fields. But the form is running. I want to show error message if the parameter values dose not matches with the database values. The message will show as Document not exists
    So i used related error msg here like
    if sy-subrc ne 0.
              message e357.
               endif.
    But it is not working for passing values to smartform. It works if i use in classical report. Plz help me on this issue.
    Thanks,
    Rosaline.

    >
    Rosaline. wrote:
    > Thanks all for reply.  Should i have to use message before call function 'SSF_FUNCTION_MODULE_NAME' ? I tried it but not working.
    >
    >
    if it_final[] is not initial.
    >*             if sy-subrc ne 0. ---> "Remove this condition check, it not required
    >            Message e000(8i) with 'Parameter value not found'.
    >            endif.
    > *            endif. ---> "remove this
    >
    Hi,
    Sy-subrc doesnt need to be validated here, remove that If condition and check again.
    Regards,
    Karthik D

  • TS3638 i have an internet connection but when i open app store it shows error message "cannot connect to app store".when i try to sign in with my valid apple ID and password it says "connection failed".i tried keychain access settings but it did not help.

    i have an internet connection but when i open app store it shows error message "cannot connect to app store".when i try to sign in with my valid apple ID and password it says "connection failed".i tried keychain access settings but it did not help.please help me!!

    Open Sysem Preferences from your Apple () menu top left in your screen then select the Firewall tab.
    Make sure the Firewall is turned off.

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • How to show error message on page #NOTIFICATION_MESSAGE#?

    Hi,
    Is it possible to show error message on a page, where apex substitutes #NOTIFICATION_MESSAGE# at page template, with a javascript call? My requirement is to report error messages which i get from ondemand process, these on-demand processes were called from my javascript code. If any error message is returned by on-demand process, as of now, I'm reporting the error message to user by javascript based alert dialog box, but it would much better if i could keep the error message reporting by my application in a consistent manner. So any suggestion please?
    -Krishna

    Hi Roel,
    Thanks, jumping in for help.
    I tried your given code, i found that the page html source doesnt has any element with a name '#messages'. As per my understanding, its the apex engine which checks for any error, if found it shows it by adding an element id '#messages', but here on my requirement its not the apex engine which has detected the error, its my functional logic which wants to report a message. On a normal and error free page condition, we usually dont find '#message' element. I'm curious on how apex inbuilt engine is reporting an error to a page?

  • When deploying the webdynpro java application , showing error message

    Hi Masters,
    when deploying the webdynpro java application , showing error message. Please reply why this problem showing and what is the solution
    But Iogin to sdm tool ( remote gui .sh) with same password, which password  i am using for deploy the webdynpro java application.here in sdm tool i am able to login. and i restart the sdm , and again trying to deploy the same problem it showing.
    URL to deploy : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Aborted: development component 'sales'/'rupa.com'/'LOKAL'/'0.2010.02.13.14.32.39':Caught exception during application deployment from SAP J2EE Engine's deploy API:com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [devsap] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: No login module succeeded.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Deployment exception : The deployment of at least one item aborted
    Edited by: sujana mullapudi on Feb 13, 2010 2:52 PM

    Hi Sujana,
    For deploying Web Dynpro for Java application, J2EE_admin correct password must be stored in the scured area of config tool.
    Your error show that J2EE_admin information is not correct.
    So, Please ask your basis team to update new J2EE_ADMIN password or you can do it in scured area of config tool.
    Hope this will helps you.
    Thanks
    Arun Jaiswal

  • When re installing iTunes on window it shows error message: Service Apple mobil divice does not start

    When re installing iTunes on window it shows error message: Service Apple mobil divice does not start

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • TS4585 When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    That usually means that there is something wrong with the backup and it cannot be used.  You can try restoring the backup again, but if you continue to get the same message all you can do is restore to a different backup, if you have one.

  • Show error message with multilingual in ADF Jdeveloper 10g 10.1.2

    Hi
    I want show error message with multilingual in my application, but i don't know how to do.
    Can you give me some solution.
    I live in vietnamese.
    Thank a lot.

    When i using code
    ResourceBundle bundle = ResourceBundle.getBundle("MyResources",Locale.ENGLISH);
    String key = "hello";
    String s = bundle.getString(key); // Hello
    key = "bye";
    s = bundle.getString(key); // Goodbye
    then there is error follow
    java.util.MissingResourceException: Can't find bundle for base name MyResources, locale en
         at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
         at mypackage1.Application1.main(Application1.java:21)
    Can you show where error or you have some code about that issue, you can show me

Maybe you are looking for

  • Tolerance limits at Goods Receipt??

    Can someone explain me how the Tolerance Keys B1 (or B2) works for Goods Receipt in MIGO. I have already refered the below links, But failed to understand the basic purpose of T Keys in OMCO. Goods Receipt tolerance limit (OMC0) http://www.sapfans.co

  • FM : SAP_CONVERT_TO_CSV_FORMAT

    Hi, I'm using SAP_CONVERT_TO_CSV_FORMAT function module. What my requirement is I want to put the charactor fields in " " like Material Number, PO Number etc. Where I can make the change to get the desired output..? Thanks, Gaurav

  • How to restore the Old Firmware

    Have updated the N95 to the new firmware however I cant stream live Bigbrother,sports,news etc from 3 in Australia so Id like to go back to the older original software. I didnt back anything up so does anyone know how to do this. I didnt have much pr

  • Payment block while posting MIRO

    I have posted one MIRO document for material supply. while saving the invoice one message invoice blocked for payment.  Why this message is coming.  I have checked the vendor master. There is no payment block.  Where should we check. For same PO, pay

  • Physical blocking in wcm sap

    dear masters In maintain operation data of WCM there is one option physical bloking, can any one tell me in simple own language whats the meaning of this and in which situation and where we can used it thanx