[kaffe] IllegalMonitorStateException in "public Vector(int initialCapacity, int capacityIncrement)"

Gérard Basler gerard.basler at starticket.ch
Wed Jan 14 03:30:02 PST 2004


Hi,

I hope somebody can help me, it's just too strange:

java.lang.IllegalMonitorStateException
   at java.util.Vector.<init> (Vector.java:148)
   at java.util.Vector.<init> (Vector.java:118)
   at kaffe.lang.PrimordialClassLoader.findResource
(PrimordialClassLoader.java:163)
   at java.lang.ClassLoader.getResource (ClassLoader.java:224)
   at java.lang.ClassLoader.getResourceAsStream (ClassLoader.java:272)
   at java.util.ResourceBundle.loadProperties (ResourceBundle.java:90)
   at java.util.ResourceBundle.instantiate (ResourceBundle.java:137)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:50)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:36)
   at java.text.NumberFormat.computeInstance (NumberFormat.java:279)
   at java.text.NumberFormat.getNumberInstance (NumberFormat.java:429)
   at java.text.NumberFormat.getInstance (NumberFormat.java:354)
   at java.text.NumberFormat.getInstance (NumberFormat.java:339)
   at com.cinerent.EnhancedLogger.shift (EnhancedLogger.java:181)

Here's the code that caused everything:

public void shift(int level, String message) {
...
long jetzt = System.currentTimeMillis();   
            String praefix = "             "  +
DecimalFormat.getInstance().format((jetzt-this.getInstantiateTime())/1000.)
                + "\" ["
                + level
                + "] ";
...
}

Please help, if you have any idea!

Thanks,

Gérard





More information about the kaffe mailing list