DO NOT REPLY [Bug 28869] - I18nTransformer: unmatched brackets cause OutOfMemoryError

2004-08-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28869

I18nTransformer: unmatched brackets cause OutOfMemoryError

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-08-14 02:41 ---
There is no MessageFormat used in I18nTransformer anymore (starting with 2.1.4)


DO NOT REPLY [Bug 28869] - I18nTransformer: unmatched brackets cause OutOfMemoryError

2004-05-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28869

I18nTransformer: unmatched brackets cause OutOfMemoryError





--- Additional Comments From [EMAIL PROTECTED]  2004-05-11 12:52 ---
Unfortunately I haven't been able to test it on 2.1.4 - we're "going live" in a
week or so, and can't switch to the newer version. Maybe I can download 2.1.4
this weekend at home, and test it then.


DO NOT REPLY [Bug 28869] - I18nTransformer: unmatched brackets cause OutOfMemoryError

2004-05-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28869

I18nTransformer: unmatched brackets cause OutOfMemoryError





--- Additional Comments From [EMAIL PROTECTED]  2004-05-11 12:48 ---
Starting with Cocoon 2.1.4, I18nTransformer uses
org.apache.cocoon.xml.ParamSaxBuffer, and not javax.text.

John,
Have you tested this with Cocoon 2.1.4? ParamSaxBuffer should throw
SAXException("Unclosed '}'") on unmatched braces.


DO NOT REPLY [Bug 28869] - I18nTransformer: unmatched brackets cause OutOfMemoryError

2004-05-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28869

I18nTransformer: unmatched brackets cause OutOfMemoryError





--- Additional Comments From [EMAIL PROTECTED]  2004-05-11 08:52 ---
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

I already tested that MessageFormat throws an IllegalArgumentException as
expected if given a string with unmatched brackets:

 Object[] arg = { "Test" };
 String formatted = MessageFormat.format("This is a {0]", arg);
 System.out.println(formatted);


DO NOT REPLY [Bug 28869] - I18nTransformer: unmatched brackets cause OutOfMemoryError

2004-05-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28869

I18nTransformer: unmatched brackets cause OutOfMemoryError





--- Additional Comments From [EMAIL PROTECTED]  2004-05-11 08:43 ---
The i18n transformer uses java.text.* classes to handle the parameter 
substitutions.
What version of JDK you use?

It's quite easy to check if the problem somewhere in JDK by writing a simple 
test.


DO NOT REPLY [Bug 28869] - I18nTransformer: unmatched brackets cause OutOfMemoryError

2004-05-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28869

I18nTransformer: unmatched brackets cause OutOfMemoryError





--- Additional Comments From [EMAIL PROTECTED]  2004-05-11 06:22 ---
Oops, forgot to mention, this is the file that serves as the basis for
generation of messages_*.xml. But I checked the generated file, and it copies
the mismatched brackets faithfully. In the generated file it looks like this: 


Ihr Guthaben: {0] {1}


Yes, I also thought it strange that it didn't have problems until the faulty
translation is called, instead of when any translation in the file is called. 
I've since expanded my unit test to check for mismatched brackets... ;-)


DO NOT REPLY [Bug 28869] - I18nTransformer: unmatched brackets cause OutOfMemoryError

2004-05-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28869

I18nTransformer: unmatched brackets cause OutOfMemoryError

[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|core|sitemap components
Summary|Unmatched brackets in i18n  |I18nTransformer: unmatched
   |dictionary cause|brackets cause
   |OutOfMemoryError|OutOfMemoryError



--- Additional Comments From [EMAIL PROTECTED]  2004-05-10 20:49 ---
> 
>   Test
>   This is a {0]
> 

Just curious about this strange notation. Does it work?

> If a page is called which references this translation

Especially the fact that it only happens on references to the translation (not
the file) make this behaviour more weird.