ValidatorException throwing a collection of messages

Hello,
JDeveloper 11.1.2.2
I am trying ot throw a collection of messages but it only displays the last one added.
The JSF 2.0 spec says...
Constructor Summary
ValidatorException(Collection<FacesMessage> messages)
My code is ....
    public void it1_validator(FacesContext facesContext, UIComponent uIComponent, Object object) {
        Collection<FacesMessage> myMessageCollection = new HashSet<FacesMessage>();
        FacesMessage message = new FacesMessage();
        message.setDetail("My first message");
        message.setSummary("First Error message");
        message.setSeverity(FacesMessage.SEVERITY_INFO);
        myMessageCollection.add(message);
        FacesMessage message2 = new FacesMessage();
        message2.setDetail("My second message");
        message2.setSummary("Second Error message");
        message2.setSeverity(FacesMessage.SEVERITY_INFO);
        myMessageCollection.add(message2);
        throw new ValidatorException(myMessageCollection);
    }and only "My second message" gets displayed
in debug I can see that the collection does have both messages
any ideas?
Thanks

Hi
try followings
    public void it1_validator(FacesContext facesContext, UIComponent uIComponent, Object object) {
       // Collection<FacesMessage> myMessageCollection = new HashSet<FacesMessage>();
        FacesContext fc = FacesContext.getCurrentInstance();  
        FacesMessage message = new FacesMessage();
        message.setDetail("My first message");
        message.setSummary("First Error message");
        message.setSeverity(FacesMessage.SEVERITY_INFO);
        fc.addMessage(null, message);
       // myMessageCollection.add(message);
        FacesMessage message2 = new FacesMessage();
        message2.setDetail("My second message");
        message2.setSummary("Second Error message");
        message2.setSeverity(FacesMessage.SEVERITY_INFO);
        //myMessageCollection.add(message2);
        fc.addMessage(null, message2);
        //throw new ValidatorException(myMessageCollection);
    }

Similar Messages

  • The Cube with ID = Rate doesn't exist in the collection Error Message

    When doing a Full Optimization in the Rate cube I get a "The Cube with ID = Rate doesn't exist in the collection" error message. What is causing this error and how do I fix it?

    I have seen this error when reporting services was not properly configured. can you connect to http://servername/reports ?
    If not try to fix reporting services first, this solved the problem for me in the past.
    But usually in this case all the aplications are giving this error when modifying. Is this also the case in your appset?
    Does Apshell work when you modify the application there?
    -Joost

  • Collection of messages in BPM

    Hi Experts,
    Collection of messages in BPM is not working,IP is executing for each Idoc.Actually i have done the sceanrio Idoc to File,Here I am getting multiple IDocs of same type from R3 when run a transaction and i would be generate a single file for all the IDocs.For this i have changed the occurence of Idoc from 1..1 to 1..unbounded and done the mapping betweeen these two. i have done bpm just like as standarad bpm pattern "BpmPatternCollectTime".I mentioned the time as 1 minute.in transformation step i had mentioned interface mapping for 1..1 Idoc to 1..unbounded Idoc and the real mapping conditions of this sceanrio is carried out after the bpm. The Idoc's are generating from R3 with the time diffrence of 3 secs.So it should generating a single file what ever the no.of idocs populating within a minute.
    In monitoring it showning for bpm, its trigerring for each incoming Idoc and procesing successfully.
    For Ex: Two idocs are coming from R3 then BPM triggers twice
    What could be the possible reasons for this or i have done any thing wrong.
    Any ideas.., Thanks in advance
    Cheers
    Tiger Woods.

    HI,
    Try to Use Idoc packaging. also see the below links
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    Regards
    Chilla

  • Error message when i try to connect to SharePoint Store, when i click on Sharepoint Store in the site its throwing me below error message,

    Error message "Sorry, we can't seem to connect to the SharePoint Store. Try again in a bit."
    when i try to connect to SharePoint Store, when i click on Sharepoint Store in the site its throwing me above error message,
    In the log it shows
    Request to office.com with the following URL:https://hostname/sites/appcatalog/config15 caused an exception. 
    System.Net.WebException: 
    Request to office.com should be routed with url URL:http://office.microsoft.com/client/15/commerce/query  but 
     request to office.com is sent with following URL:https://hostname/sites/appcatalog/config15
    and the Response from office.com was null or its HTTP status code was not 'OK'. Actual status code: 'InternalServerError'
    An exception was thrown while running task 'GetOfficeMarkets'. Microsoft.SharePoint.SPException: Sorry, we can't seem to connect to the SharePoint Store. Try again in a bit.  
    Feature "Apps that require accessible internet facing endpoints" activated in the Central Admin  .
    kindly help on this issue

    Hi,
    For a better troubleshooting, I suggest to do as follows:
    1. Check whether the App management shared service add to the Farm, and we need to configure the Subscriptions setting service also.
    2. SharePoint Server IP Address excluded from the Websense.
    3. Restart the server.
    4. Please check as the link below.
    http://www.naumanahmed.com/2012/07/sharepoint-2013-app-management-service.html
    More information:
    http://msdn.microsoft.com/en-us/library/fp179919.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Search and Replace String throwing the wrong error message with regexp?

    This came up in a LAVA thread, and I'm not sure if there's a bug here or not. When using Search and Replace string, and using a regular expression of [(G[b|i])], LabVIEW throws error -4622, "There is an unmatched parenthesis in a regular expression."  There are obviously no unmatched parenthesis in that expression, so it seems to me that the wrong error is being thrown. I'm just not sure if that's a syntactically valid regexp. The problem seems to be with nesting [ ]'s inside ( )'s inside [ ]'s. I've tried a couple of regexp resources on the Web, and one suggests it's valid, while the other seems to think it isn't.
    Message Edited by eaolson on 03-13-2007 10:33 AM
    Attachments:
    ATML_StandardUnit2.vi ‏10 KB
    regexp.png ‏5 KB

    adambrewster wrote:
    I think your regexp is invalid.
    In regexps, brackets are not the same as parentheses.  Parens are for grouping, while brackets are for matching one of a class of characters.  Brackets can not be nested.
    If the regexp is replaced with [G[bi]], there is no error, so it's not a matter of nested brackets. I couldn't find anything on the PCRE man page that forbids nested brackets specifically, but it makes sense.
    Your expression "[(G[bi])]", therefore parses as a character class which matches '(', 'G', '[', 'b', or 'i' followed by an unmatched paren, and an unmatched bracket.
    I don't believe that's the case. Replace the regexp with [(Gbi)], and the error goes away. So it's not a matter of the '(' being literal, and then encountering a ')' without a matching '('.
    daveTW wrote:
    what string exactly you want to replace? I think the round braces are not right in this case, since they mark partial matches which are given back by "match regular expression". But you don't want to extract parts of the string, you want to replace them (or delete, with empty <replace string>). So if you leave the outer [( ... )] then your RegEx means all strings with either "Gb" or "Gi".
    It's not my regular expression. A poster at LAVA was having problems with one of his (a truly frightening one), and this seemed to be the element that was causing the problem. I'm pretty sure that the originator of the regexp meant to use G(b|i), which seems like a complicated way of matching "Gb" or "Gi", if you ask me.

  • Collect different messages in a BPM

    Hello everyone,
    I am new to developing BMPs.
    I need to collect 3 diferent message (FTP-File) in a BPM. This is possible?
    How do I make the BPM wait until you reach the other message ?
    How do I make the second and third message is sent to the same instance BPM?
    Thank you in advance
    Regards

    yes , it possible to collect the diffarent messages  using BPM. In bpm we have one concept called  Merging two or more messages. using this merge concept we can collect the diffarent messages. for merging two or more messages here one rule u must remember i.e all the messages(three messages) must have one common column than only u can merge , three messages must have one common column. Integration process is like this
      1.Three receive step( for collecting three outbond messages).
    2. one transformation step( for merging messages)
    3. one send step.
    u must " correlate" based on context object.
    4. u need  three abstract interfaces (for outbond messages) and also need one abstract interface ( for inbond messages)
      total u need four abstract interfaces.
    try this using above information , u must get the output

  • Collection of message

    hi all
    I am tring collect message in BPM for 15 min..so can any body guide me how to do the scenario( step by step process  )
    regards
    Manas

    Hi manas
    <b>Pls go through all the links</b>
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm -<b> Collection of IDoc to Single File</b>http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    <b>Many other examples can be found under the following link at help.sap.com</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    <b>And some weblogs :)</b>
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
    /people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
    <b>Also have a look at these seminars,</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    <b>check this thread</b>
    XI BPM Collect Meassages Scenario with one Message as an optional
    Thanks
    Abhishek Agrahari

  • Why throws the renderengine error messages about the display?

    In our company we have built up a renderfarm with 4 PCs for AE Netrendering. On each PC is the AE Renderengine installed which watches a watchfolder. Because the PCs only have to render and not to show something they don't own a graphics card but only an onboard graphics chip with a color depth of 16. Now the renderengines throw error-messages that AE can`t be shown correctly with at least 256 colors. But this is not important for just rendering. The message stops the renderprocess of the renderengine until it is confirmed. Anybody knows how to get rid of this?
    Greets Andreas Knop

    Umm, sorry, but even the render engine uses the standard UI components and thus requires some capabilities. I'm sure that's clearly mentioned somewhere in the docs as well. You're out of luck on that one. The only thing that will work is the commandline render, obviously.
    Mylenium

  • Throw a custom error message while doing CATS timesheet approval

    Hi,
    We are going to implement CATS Timesheet approval using ESS / MSS portal.
    Requirement is NOT to allow an approver to approve / reject a timesheet workitem in MSS duing payroll block period ( e.g last week of a month). we need to throw an error message saying 'No approval of timesheet is allowed during payroll block period'.
    Will SAP enhancement CATS0006 (EXIT_SAPLCATS_006) be useful for this?
    Any other customer exit / Badi will help.
    Regards,
    Bijay

    Hi,
    yes you can use the mentioned CATS enhancement to throw the error message.
    Check the link :-
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/bd/53fa2fcc43594dbf9f406c18989a47/frameset.htm
    Thanks & Regards, Swapnil Mishra

  • Comment se supprimer d'un message collectif i message ?

    Bonjour,
    j'aimerais savoir comment il est possible de sortie d'une conversation collectif de i message
    Merci

    Avez-vous lu cet article lié à la page que lllaass vous a donné? http://support.apple.com/kb/TS1609?viewlocale=fr_FR

  • How to keep date time line in  collected alert message in linux platform

    Hi Friends,
    In linux server for 11g oracle. how do I keep date time line for each error message?
    example as
    cat alert_test.log | grep 'ORA'
    grep 'ORA' alert_test.log
    I like output as
    Mon Aug 20 01:54:29 2012
    ORA-01560 caused by SQL...........
    I know we can use diag... But I want to some linux command for my debug.
    Thanks
    newdba

    Another option is to make your alert log accessible as an external table.
    Demo here:
    http://www.morganslibrary.org/reference/externaltab.html
    Find "alert log" on the page. Add a numeric column to the table and create a sequence and you can put in a surrogate row number that will allow you to pull sections using LEAD and LAG as you please.

  • I am in need of desperate help ... my Outlook (2011) is regularly asking for my password and throws up an error message (Yellow triangle)

    I have done a bunch of google searches and as best as I can understand it, because I have 2 devices (iPhone, and now iMac) that are trying to look to the mail server at the same time, a problems exists.
    My ISP is Time Warner by the way and is a rr (road runner) email address, a POP email as best as I can understand it.
    Eventually, the mail does finally "break through" and is delivered but there is a time lag for receiving my mail.  I thought that at first, it could be an "Outlook" issue, but successfully set up the "Mail" icon that comes pre-bundled on my iMac, and the same error message is being hit.
    How can I PLEASE get some help ... I am beyond frustrated and KNOW that if I call Apple, they will blame Time Warner and RR and if I call Time Warner RR, they will blame Apple.  Can somebodoy please help me before I lose my mind?
    The error message I get is that my account is locked by another session or by maintenance and asks me for my password (which I know to be correct).

    In mail, go to Window - Connection Doctor & report what the result is for your outgoing server ( usually the last item in the list of tested items )
    is the outgoing server in mail entered exactly as on your pc?, you're using the same isp as before?
    most of these type of issues are easily resolved - come back with a little more info + armed with your mail server details that you used on he pc.

  • Collect Error Message from SAP program to BSP Page

    Hi Experts,
    I am displaying an error message in the form of pop-up Message  in a Screen based on a condition using BADI on R/3 screen , but when i am calling the screen from Portal (BSP PAge) I am unable to see the Error Message which is being displayed as a pop-up in r/3..
    How to catch the error and display in BSP Page.....
    I have searched the forum but didnt find any suitable replies....
    Plz help
    Regards,
    Srikar

    Hi Srikar,
    It depends.
    Generally though you display a message in SAPGUI it does not display automatically in BSP.
    Some times you have to manually write some code to populate and display a message in BSP.
    First you need to find the BSP page and write some code to display error messages in the same..
    Regards,
    Sreekanth

  • Encountered the symbol "COLLECT" error message, without a collection?

    Okay, once again I'm confused and lost.
    I'm working on a 'variation' of the Issue Tracker sample application at:
    http://apex.oracle.com/pls/otn/f?p=23133
    Once there, select "Projects", then on the "Projects" page, click the edit button.
    The error appears in the "Add or Edit Project Tasks" region.
    The region source is:
    select
    x.del,
    x.task_name,
    x.status,
    x.dependent_upon,
    x.task_scope,
    x.task_comments,
    x.task_lead,
    x.ck ck
    from (
    select
    apex_item.checkbox(1,task_id) del,
    apex_item.text(2,task_name,30,70) TASK_NAME,
    apex_item.display_and_save(3,ht_tasks_getstatus(task_id)) STATUS,
    apex_item.select_list_from_lov(4,dependent_upon,'select task_name d, task_id r from ht_tasks where project_id = :P3_PROJECT_ID') DEPENDENT_UPON,
    apex_item.textarea(5,task_scope,4,40) TASK_SCOPE,
    apex_item.textarea(6,task_comments,4,40) TASK_COMMENTS,
    apex_item.select_list_from_lov(7,task_lead,'PEOPLE') TASK_LEAD,
    apex_item.hidden(8,project_id)||
    apex_item.hidden(9,wwv_flow_item.md5(task_name,status,dependent_upon,task_scope,task_comments,task_lead)) ck
    from HT_TASKS_VIEW
    where project_id = :P3_PROJECT_ID
    union all
    select
    apex_item.checkbox(1,null) del,
    apex_item.text(2,null,30,70) TASK_NAME,
    apex_item.display_and_save(3,null) STATUS,
    apex_item.select_list_from_lov(4,null,'select task_name d, task_id r from ht_tasks where project_id = :P3_PROJECT_ID') DEPENDENT_UPON,
    apex_item.textarea(5,null,4,40) TASK_SCOPE,
    apex_item.textarea(6,null,4,40) TASK_COMMENTS,
    apex_item.select_list_from_lov(7,null,'PEOPLE') TASK_LEAD,
    apex_item.hidden(8,to_number(:P3_PROJECT_ID))||
    apex_item.hidden(9,null) ck
    from dual) x
    Which appears to be working correctly. When I click the debug link, the following appears:
    0.04: add row query: select x.del, x.task_name, x.status, x.dependent_upon, x.task_scope, x.task_comments, x.task_lead, x.ck ck from ( select apex_item.checkbox(1,task_id) del, apex_item.text(2,task_name,30,70) TASK_NAME, apex_item.display_and_save(3,ht_tasks_getstatus(task_id)) STATUS, apex_item.select_list_from_lov(4,dependent_upon,'select task_name d, task_id r from ht_tasks where project_id = :P3_PROJECT_ID') DEPENDENT_UPON, apex_item.textarea(5,task_scope,4,40) TASK_SCOPE, apex_item.textarea(6,task_comments,4,40) TASK_COMMENTS, apex_item.select_list_from_lov(7,task_lead,'PEOPLE') TASK_LEAD, apex_item.hidden(8,project_id)|| apex_item.hidden(9,wwv_flow_item.md5(task_name,status,dependent_upon,task_scope,task_comments,task_lead)) ck from HT_TASKS_VIEW where project_id = :P3_PROJECT_ID union all select apex_item.checkbox(1,null) del, apex_item.text(2,null,30,70) TASK_NAME, apex_item.display_and_save(3,null) STATUS, apex_item.select_list_from_lov(4,null,'select task_name d, task_id r from ht_tasks where project_id = :P3_PROJECT_ID') DEPENDENT_UPON, apex_item.textarea(5,null,4,40) TASK_SCOPE, apex_item.textarea(6,null,4,40) TASK_COMMENTS, apex_item.select_list_from_lov(7,null,'PEOPLE') TASK_LEAD, apex_item.hidden(8,to_number(:P3_PROJECT_ID))|| apex_item.hidden(9,null) ck from dual) x
    0.04: determine column headings
    0.04: parse query as: ARIA
    0.04: binding: ":P3_PROJECT_ID"="P3_PROJECT_ID" value="1"
    0.04: print column headings
    0.04: rows loop: 15 row(s)
    report error:
    ORA-06550: line 1, column 13:
    PLS-00103: Encountered the symbol "COLLECT" when expecting one of the following:
    := . ( @ % ;
    So, it looks like the error is happening when it starts the loop to grab the rows. I'm not using a collection, so I'm assuming that for the pagination, Apex is using a collection internally, and somehow, somewhere, that's generating the error?
    I've deleted the region and everything associated with it, buttons, processes, etc. and the rebuilt the region without the other 'stuff', but I still get the error. I'm completely lost now, as I really don't what else to try, other than dropping the page an trying to recreate it. But if that doesn't work, any idea what would?
    Also, to log in and see the code, my workspace is wbfergus, and the id and pwd are both htmldb.
    Thanks.
    Bill Ferguson

    Bill - Try apex_item.select_list_from_query when a query (not a named lov) is the source:  apex_item.select_list_from_query(4,dependent_upon,'select task_name d, task_id r from ht_tasks where project_id = :P3_PROJECT_ID') DEPENDENT_UPON,BTW, nothing do do with collections in this case. The parsing hit a 'bulk collect' probably.
    Scott

  • JSObject.getWindow(applet) always throws JSException with no message.

    I am looking for any possible reasons for this failure. We have an applet that runs fine in Microsoft VM on IE. As soon as we upgrade to use Java Plugin 1.4 and up, it stopped working because of the JSException being thrown when call is made to JSObject.getWindow(Applet).
    MAYSCRIPT parameter is set, applet is signed. Everything compiles fine.
    I also tried converting our HTML using HTMLConverter. But that didn't help.
    I spent last two days trying everything suggested on this forum regarding this problem, with no success.
    Does it matter where the call to getWindow is made? In our case, we pass our Applet as a constructor parameter of another Java class.
    eg. in method actionPerformed() of my Applet class I have:
    MyJavaScript myJs = new MyJavaScript(this);
    myJs.callScript();
    And MyJavaScript looks like this:
    public MyJavaScript(Applet applet)
    this.applet = applet;
    public void callScript()
    JSObject win = JSObject.getWindow(applet); // this line allways throws JSException when using Java Plugin, but works fine with MS VM.
    // rest of the code....
    Thanks in advance!

    OK, I think I know what our problem was. We overwrite our Applet's getAppletContext() method. And JSObject.getWindow(applet) calls this method internally.
    If I return super.getAppletContext(), everything works fine.
    Still, don't understand why it works in IE's Microsoft VM.
    Thanks.

Maybe you are looking for

  • A security comparison graph from Vanguard site does not print.

    When I go to "File, Print Preview" the graph and legend does not appear. The text above and below the graph does show. I believe the graph is produced using Adobe Flash. The graph prints fine when I use Internet Explorer.

  • Mac Pro screen will sleep but not the HD!?  ..could it be 10.5.6..?

    Hello Wonderful People.. I've have recently discovered that my Mac Pro will sleep but only the screen,not the HD!? If I'm correct, this might have only started since updating to 10.5.6, but I'm not entirely sure! Any ideas..?

  • Pdf online book is garbled code.

    Hi.. the oddest occurance... 'any'   book on familysearch.org... distributed by ExLibri Rosetta..  it looks to be a pdf  HOWEVER... it is garbled code..SEE attached screen shot....... I have no clue.... Anyone!!  what causes this... How do I FIX what

  • What this err means?

    "Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum. If you are unsure what caused this error, please contact the application administrat

  • Is it true you can't edit text in PS once you've saved it ?

    I just spent an hour on the phone with tech support in India and the bottom line was: u can't save text in PS and go back and edit it once you saved it. This doesn't make any sense. They were adamant. The problem I'm having is that a portion of my sa