StackOverflow when loading "gnu.java.locale.LocaleInformation" bundle

View: New views
2 Messages — Rating Filter:   Alert me  

StackOverflow when loading "gnu.java.locale.LocaleInformation" bundle

by Jean-Marie Geffroy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am using JamVM 1.5.1 with GNU Classpath 0.97.2 on an ARM device.

I am facing an unexpected problem: I get the following error when  
trying to use DateFormet.getDateInstance (as well as ant Locale-
related stuff):

java.lang.StackOverflowError
    at java.util.ResourceBundle$BundleKey.equals(ResourceBundle.java:
292)
    at java.util.AbstractMap.equals(AbstractMap.java:658)
    at java.util.LinkedHashMap.get(LinkedHashMap.java:346)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:388)
    at java.util.Calendar.getBundle(Calendar.java:483)
    at java.util.Calendar.<init>(Calendar.java:508)
    at java.util.GregorianCalendar.<init>(GregorianCalendar.java:237)
    at java.util.GregorianCalendar.<init>(GregorianCalendar.java:224)
    at java.util.GregorianCalendar.<init>(GregorianCalendar.java:212)
    at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:445)
    at java.text.DateFormat.computeDefault(DateFormat.java:697)
    at java.text.DateFormat.computeInstance(DateFormat.java:561)
    at java.text.DateFormat.computeInstance(DateFormat.java:552)
    at java.text.DateFormat.getDateInstance(DateFormat.java:738)
    at java.text.DateFormat.getDateInstance(DateFormat.java:756)
    at java.text.DateFormat.getDateInstance(DateFormat.java:756)
    at java.text.DateFormat.getDateInstance(DateFormat.java:756)
<repeated.....>

In my glibj.zip file, the required .properties files are present. I  
also tried to extract them in a dedicated directory and added this  
directory to the classpath, but it did not change this behavior.

Any idea ? I found nothing about this on Google, but maybe my search  
was wrong.

Thank you for your help !

Best regards,

Jean-Marie

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: StackOverflow when loading "gnu.java.locale.LocaleInformation" bundle

by Robert Dodier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 1, 2009 at 2:52 AM, Jean-Marie Geffroy <jmg@...> wrote:

> In my glibj.zip file, the required .properties files are present. I
> also tried to extract them in a dedicated directory and added this
> directory to the classpath, but it did not change this behavior.

Try putting the path to the .properties in the bootclasspath
instead of the classpath. I forget the option, something like
 -Xbootclasspath:.... I don't know what the original problem is
about, but anyway bootclasspath might help the VM find the
properties.

Hope this helps,

Robert Dodier

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general