DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22356>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22356 org.apache.struts.util.PropertyMessageResources fails to report errors when reading prop files. Summary: org.apache.struts.util.PropertyMessageResources fails to report errors when reading prop files. Product: Struts Version: 1.0.2 Final Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Controller AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following piece of code loads properties files. In my case one of the prop files had an invalid unicode entry /uxxxx except for one of the x was not in the range of [a-f0-9A-F]. This causes the prop files to be partially loaded so when access the web application in this locale some strings were localized and some strings were not. An error must be reported in this case. It was quite hard to track down why this problem was occuring. // Load the specified property resource try { is = this.getClass().getClassLoader().getResourceAsStream(name); if (is != null) { props.load(is); is.close(); } } catch (Throwable t) { if (is != null) { try { is.close(); } catch (Throwable u) { ; } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]