tags:

views:

341

answers:

2

Greetings everyone! I programmed GUI Application using Java Swing under Windows.

Under windows everything works well.

Now I am trying it under Linux (using distribution Linux Mint 7).

I am getting and nasty StackOverflowException, when I call frame's dispose method! The problematic frame is JDialog component.

Here is some output : edited, full output

 run:
Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:261)
        at java.beans.Statement.invoke(Statement.java:231)
        at java.beans.Expression.getValue(Expression.java:115)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:227)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:264)
        at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:408)
        at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:116)
        at java.beans.Encoder.writeObject(Encoder.java:74)
        at java.beans.XMLEncoder.writeObject(XMLEncoder.java:274)
        at java.beans.Encoder.writeExpression(Encoder.java:304)
        at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:389)
        at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:229)
        at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.j
+7  A: 

One possibility that I've ran into, make sure you are using the latest JDK/JRE from sun and not openJDK (which is default on some linux distros), which can occasionally cause hiccups like this.

yx
Yes I do use OpenJDK, I am going to change it to defaut one
ModernTalking
+1, first step is "apt-get install sun-java6-jdk"
Thorbjørn Ravn Andersen
thank you very much! Sun JDK solved it :)
ModernTalking
+2  A: 

Also it may be a good idea to check what you have called on your JFrame. To indicate that the JVM should exit when a frame is closed you could use

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

To me your error looks like the result of calling this API (or not calling or calling with wrongs args) http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFrame.html#setDefaultCloseOperation(int)

Calm Storm