BUG in JHS TP2: Recovering messages from Bundles

Hi JHS Team,
I detected this bug on the JHS TP1 I was already trying, but decided to update to TP2 to see if it has been been detected and resolved. As the code is still the same, here goes the problem description (or at least, what I think is a bug)
In the class MessageFactory, there is a method getMessageText that recovers a text searching it in the distinct application resource bundles. As far as I'm concerned, as soon as it finds a message related to the messageId, the search shoud finish and return the value found.
In the way the code is written, it follows searching in the next bundles when it is not necessary. Moreover, it has an undesirable effect. If I put a message in a bundle that "overwrites" a default message (for instance, I put in my custom resource bundle a custom text for JHS-00100), the method return always will find the last ocurrence of the messageId, it means, the JHS version of the text (I put my custom resource in the first place of the bundle list as it should be the one having precedence over the others).
I can arrange this problem just overwriting the method in the class or inverting the bundle list order, but as I exposed, I think the iteration scheme shoud be a searching one and not a traversing one.
Thank you in advance for study this proposal.
Carles Biosca
BBR Ingeniería de Servicios
[www.bbr.cat|http://www.bbr.cat/]
Edited by: cbios on Aug 26, 2009 10:57 AM

Hi Carles,
What you wrote makes perfect sense to me; a single break statement in the code does the trick by the way. I have asked some fellow JHS-developers is this is somehow intended behavior; but I don't expect it to be, so this bugfix should be in the production release of JHeadstart 11.
Thanks!
Evert-Jan de Bruin
JHeadstart Team

Similar Messages

  • How do i remove recovered messages from my email

    I need help removing recovered messages from my email.

    I posted a very similar question.  The answers I received here did not help.  For anyone else looking, here is the solution that finally worked. My son found it via a Goolge search:
    Best answer - Sarah (Google Employee) Go to this answer
    chessop
    Please follow below steps.
    1.Take your gmail account offline from Mail and delete the recovered messages folder.
    2. Download the widget to show the hidden files fromhttp://www.apple.com/downloads/dashboard/developer/hiddenfiles.html
    3. Go to UserName/Library/Mail/IMAP-<username>@[email protected]/.OfflineCache
    4. Delete all the data under .OfflineCache folder - DO NOT DELETE the folder.
    5. Close Mail application and reopen.
    This should do the job.
    Best regards,
    Aadi
    338 of 359 people found this answer helpful. Did you? Sign in to vote. Report abuse
    See the answer in context

  • TS2755 Can you recover messages from before the timeline on iphone will let you go back to?

    Can you recover messages from before the timeline on iphone will let you go back to?
    i need information from january but my phones messages is only letting me go back to 24th February

    No, if you restore from your backup and all you have is text from Feb. then sorry that all you can get.

  • Recover messages from delted mail account

    Is there anyway at all to recover messages once you delete a mail account?

    use your Mac as little as possible and get some professional recovery program.
    checkout this link.

  • In Mail, one mailbox for Recovered Message (AOL) keeps showing 1 very large message that I cannot delete. How can I get rid of this recurring problem, please?

    In Mail on iMac, successfully running OS X Lion, one mailbox on My Mac for "Recovered Messages (from AOL)" keeps showing 1 very large message (more than 20 Mb) that I just cannot seem to delete. Each time I go into my In Box, the "loading" symbol spins and the message appears in the "Recovered Messages" mailbox. How can I get rid of this recurrent file, please?
    At the same time, I'm not receviving any new mails in my In Box, although, if I look at the same account on my MacBook Pro, I can indeed see the incoming mails (but on that machine I do not have the "recovery" problem).
    The help of a clear-thinking Apple fan would be greatly appreciated.
    Many thanks.
    From Ian in Paris, France

    Ian
    I worked it out.
    Unhide your hidden files ( I used a widget from http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html)
    Go to your HD.
    Go to Users.
    Go to your House (home)
    there should be a hidden Library folder there (it will be transparent)
    Go to Mail in this folder
    The next folder ( for me ) is V2
    Click on that and the next one will be a whole list of your mail servers, and one folder called Mailboxes
    Click on that and there should be a folder called recovered messages (server) . mbox
    Click on that there a random numbered/lettered folder -> data
    In that data folder is a list of random numbered folders (i.e a folder called 2, one called 9 etc) and in EACH of these, another numbered folder, and then a folder called messages.
    In the messages folder delete all of the ebmx (I think that's what they were from memory, sorry I forgot as I already deleted my trash after my golden moment).
    This was GOLDEN for me. Reason being, when I went to delete my "recovered file" in mail, it would give me an error message " cannot delete 2500 files". I knew it was only 1 file so this was weird. Why 2500 files? Because if you click on the ebmx files like I did, hey presto, it turned out that they were ALL THE SAME MESSAGE = 2500 times. In each of those folders in the random numbers, in their related message folder.
    Now remember - DONT delete the folder, make sure you have gone to the message folder, found all those pesky ebmx files and deleted THOSE, not the folder.
    It worked for me. No restarting or anything. And recovered file. GONE.
    Started receiving and syncing mail again. Woohoo.
    Best wishes.

  • Is there a way to read text messages from the past in a thread that has been ongoing for months?

    Is there a way to view/recover messages from months ago in a thread that has been ongoing? The messages are not deleted. If i just keep "loading new messages" a) it will take all day, I've tried, and b) it freezes on me.

    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Both will allow you to archive your text messages to your computer and read them easily.

  • Dynamic Error Message from a Bundle Showed in a rich:fileUpload

    Hello.
    There is a way to show a dynamic error message from a bundle (i.e, There is a problem in the word {0} in line {1}.) in a rich:fileUpload after the Managed Bean method in fileUploadListener="#{MyManagedBean.myMethod}" attribute was performed? That's because the error message parameters are discovered only after the MyManagedBean.myMethod execution.
    As far I know, I'm able only to show a static message with transferErrorLabel="#{myBundle.myErrorMessage}" attribute.
    Here is my rich:fileUpload component code:
      <rich:fileUpload id="upload"   
         fileUploadListener="#{PlanilhaManagedBean.importar}"  
         maxFilesQuantity="100" 
         immediateUpload="true" listHeight="130" acceptedTypes="xls"  
         addControlLabel="#{bundle.geralProcurarArquivo}" 
         ontyperejected="alert('#{bundle.geralExtensaoInvalida}')"    
         cancelEntryControlLabel="#{bundle.geralCancelar}" 
         clearAllControlLabel="#{bundle.geralLimparTudo}"     
         clearControlLabel="#{bundle.geralLimpar}" 
         doneLabel="#{bundle.geralArquivoTransferidoComSucesso}"  
         progressLabel="#{bundle.geralTransferindoArquivo}" 
         stopControlLabel="#{bundle.geralParar}"  
         stopEntryControlLabel="#{bundle.geralParar}" 
         transferErrorLabel="#{bundle.geralErroNaTransferenciaDoArquivo}" /> Any idea?
    Thanks in advance.

    Hi, BalusC. Thanks for your reply.
    I already tried that. I put a navigation-rule in faces-config.xml to the same page of the rich:fileUpload, but the rich:fileUpload component doesn't starts a get or a post request. So the navigation-rule is ignored and the page wasn't rendered again.
    I also tried to put the <a4j:support ...> in the rich:fileUpload to re-render the <h:messages ...> component, but didn't work too. The <h:messages ...> wasn't re-render.
    Thanks in advance.
    Edited by: reolca on May 10, 2009 5:40 AM

  • How do i recover data from an external hard drive that was accidentally deleted?  After I verified the drive, a message appeared that said my drive needed to be repaired.  When I tried to access the drive again, the 700 Gigs of music is gone!

    How do i recover data from an external hard drive that was accidentally deleted?  After I verified the drive, a message appeared that said my drive needed to be repaired.  When I tried to access the drive again, the 700 Gigs of music is gone!

    Stop using the drive immediately, un plug it.
    Buy a copy of ProSoft DataRescue 4 and use it to search for deleted files.

  • How to display Image as Error instead of Error Message from Resource Bundle

    hi,
    I want to display images as error instead of error message from Application Properties in struts1.1
    Ex:
    I want to prompt a user to type password length min. of 6 char. If failed, need to show simple image as error rather
    "Length should be min. 6".
    reagrds
    parthiban.

    BalusC wrote:
    RahulSharna wrote:
    in the respective resource bundle modify the value by something was below
    error.password.length=<img src="/images/password-Length.gif" alt="Password Length Issue" align="center"/>
    OK, it apparently allows HTML in error messages.Yes struts allows it :)

  • Is there a way to recover deleted mail from my iPad and recover deleted messages from my onw iPhone?

    Is there a way to recover deleted mails sent from iPad and/or recover deleted messages from my iPhone?
    A software or even open it? It is very important for me get back the messages sent on December. I did not have a back up at that time, at least that I know, but I change my iPhone and had as I got a micro chip, I could take my contacts from iTunes.
    Does it means a back up was done at the Note book I used that time or the messages are lost?
    And my mails? From my server, I can recover only from 5 last days!
    Thank you for any help!!

    Thanks for replying - no, I had not done a backup since the shots were taken and then attemped to put them in an album as I did not want to change the enviornment of the phone from when I had inadvertently delted them.   Unfortunatlely, when asked "Do you want to delete these photos from all locations," I hit yes and they were also deleted from my Photostream. 

  • TS3999 Received 2 appointments, same date, same content, just different hours. Since then I receive message from iCal: Access to "Subject" in account "iCloud" is not permitted. The server responded "403" to CalDAVWriteEntityQueueableOperation. It's a bug!

    Received 2 appointments from a customer, same date, same content, just different hours. Since then I receive message from iCal: Access to “Subject” in account “iCloud” is not permitted. The server responded "403" to CalDAVWriteEntityQueueableOperation. In my opinion this is a bug, because iCloud is not able to handle 2 appointments at the same date with same content, just at different hours. The different hours should be enough individuality for each event on calendar.

    In my opinion this is a bug, because iCloud is not able to handle 2 appointments at the same date with same content, just at different hours. The different hours should be enough individuality for each event on calendar.
    Here are 4 identical events (other than time) in Calendar on my mac
    Here is how they appear at iCloud.com
    I concluded that iCloud has no problem with identical events seperated by time, so the question becomes what is wrong with your setup as opposed to what is wrong with iCloud.

  • I do not accept messages from 17 hours to 23 11/09/12 12/09/12 hours of the year. For the above period I have no messages. Please let that happen. Is it possible to recover lost messages?

    Good time.
    I do not accept messages from 17 hours to 23 11/09/12 12/09/12 hours of the year.
    Go through the iCloud in the mail, I also could not in the period.
    I sent a few reports of problems to iCloud.
    Now everything is restored. Thank you.
    I use several devices: PC Win 7 and iPad OS 5.1.
    The problem stalknulsya on both devices.
    However, during the above period I have no messages.
    Please let that happen. Is it possible to recover lost messages?
    Thank you

    Hi finecut,
    I believe this Mac Mail Help info may help:
    Backing up your mail
    You can back up your mailboxes to a CD or another disk. To do this, you can either copy the Mail folder in your Library folder or create an mbox file, a common format for storing mail messages.
    ▪ To save the contents of all your mailboxes, hold down the Option key and drag the Mail folder to your desktop or to another disk. The Mail folder is in the Library folder in your home folder (~/Library/Mail).
    Copying the Mail folder only backs up mail from POP accounts, or mail from an IMAP account that you've copied to On My Mac. When you are ready to restore the Mail folder, choose File > Import Mailboxes, select Mail for Mac OS X, and locate the Mail folder.
    ▪ To create an mbox copy of a mailbox, drag the mailbox from the mailbox list to your desktop.
    ▪ To create an mbox file with just some of your messages, select the messages, then choose File > Save As. In the Format pop-up menu, choose Raw Message Source, then enter a name and save the file.
    You can copy mbox files to CDs or to other disks. When you want to restore your mail, choose File > Import Mailboxes, select "Standard mbox files," and locate the files.
    hope that helps,
    littleshoulders

  • How to Recover Contacts and Text message from iPhone 6/6 Plus

    I am asking for help to recover my iPhone Contacts and Text Message,my iPhone jailbreak failed by myself.lead to my iPhone data was lost,I want to get back my contacts and text message.it is very important for me to recover them.Whether have you any method to help me to regain my contacts and text message from my iPhone device.thank you
    Best regards
    SimileSky

    selenafromshenzhen wrote:
    If you have backed up your iPhone before the jailbreaking, then you can recover contacts and text messages by restoring your iPhone with the iTunes or iCloud backup file. Read the guides: iCloud: Restore or set up your iOS device from iCloud & Use iTunes to restore your iOS device to factory settings - Apple Support
    i tried to update with new iOS, in between strucked my iphone, after that there is no data in my phone,
    can you help me how can i retrive it, Also i dont have backup (itunes / icluod)
    is there any possibilities to recover those my datas.
    Any softwares are available ???
    iPhone 6

  • [svn:bz-trunk] 15090: Bug: BLZ-506 - Unexpanded {0} in error message from LocalFileResolver related to services .configuration.file

    Revision: 15090
    Revision: 15090
    Author:   [email protected]
    Date:     2010-03-29 01:55:44 -0700 (Mon, 29 Mar 2010)
    Log Message:
    Bug: BLZ-506 - Unexpanded in error message from LocalFileResolver related to services.configuration.file
    QA: No - I already tested.
    Doc: No
    Checkintests: Pass
    Details: Applied customer's patch.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-506
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/LocalFileResolver.java
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Can I recover SMS messages from iCloud that I accidentally deleted today?

    Can I recover SMS messages from iCloud that I accidentally deleted off my phone today?

    Sorry but the only thing you can do with a backup to iCloud is restore the entire backup to an iOS device. It is an all or nothing thing. There isn't a way to get to them using a computer or to access just the backed up text messages. If you also backed up to iTunes, there are 3rd party utilities that will extract data from a backup made using iTunes.

Maybe you are looking for

  • How do I stop ITunes from opening up every-time I start the computer

    Everytime I start my computer, Itunes opens up. I tries going into startup items, but it is not listed there. How do I get it to stop opening on Boot Up? Thanks in advance I have a Power Mac G5

  • Getting "Cannot open document: error during import (DX0005" on DESKI report

    These reports use free-hand SQL and universe-based data providers. I'm thinking that a permission isn't set properly that is interfering w/ the import of the universe at execution time - any ideas where that might be? We use BObj XIr2 SP4 Edited by:

  • Directory creation

    These are the steps i followed what's wrong in this Physically created an folder in Oracle server 10g called xmlfiles in location C:\ then connected as system CREATE DIRECTORY xmlfiles AS 'C:\xmlfiles'; GRANT READ,WRITE ON DIRECTORY xmlfiles TO TEST;

  • How can i prevent and stopdownloading podcasts from itunes U ?

    dear friends, i can't stop and prevent podcasts download from itunes u ,, this download reduces my iphone free space ,, Please help me !!

  • ITunes 7.0.2 Crashes, and I don't know why

    This just started happening about 5 days ago. Whenever iTunes switches songs or I cycle through songs really quickly, iTunes crashes immediately. I have no idea why. I've removed all third-party codecs, plugins, etc. and I'm still getting the problem