开发者

A classic StackOverflow : Java Swing

开发者 https://www.devze.com 2022-12-25 13:22 出处:网络
Greetings everyone! I programmed GUI Application using Java Swing under Windows. Under windows everything works well.

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.writeExpressio开发者_JAVA百科n(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


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.


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)

0

精彩评论

暂无评论...
验证码 换一张
取 消