We use SwingDesigner in conjunction with a library of custom components which derivate from Swing component. For example, we've got a BuilderButton which derivate from JButton.
When we insert a BuilderButton into a JInternalFrame or when opened a existing JInternalFrame, SwingDesigner froze for some time. The hard disk write some data and then Eclipse quits.
In the .log file we've got this overflow error:
!ENTRY com.swtdesigner 4 4 2006-06-27 09:28:00.931
!MESSAGE Designer internal error [5.0.0.2006.06.23]: java.lang.StackOverflowError
!STACK 0
java.lang.StackOverflowError
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.write(Unknown Source)
at java.io.PrintStream.write(Unknown Source)
at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(Unknown Source)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(Unknown Source)
at sun.nio.cs.StreamEncoder.flushBuffer(Unknown Source)
at java.io.OutputStreamWriter.flushBuffer(Unknown Source)
at java.io.PrintStream.write(Unknown Source)
at java.io.PrintStream.print(Unknown Source)
at java.io.PrintStream.println(Unknown Source)
at java.lang.Throwable.printStackTrace(Unknown Source)
at java.lang.Throwable.printStackTrace(Unknown Source)
at com.swtdesigner.DesignerPlugin.log(DesignerPlugin.java:403)
at com.swtdesigner.model.properties.NonVisualBeanComplexProperty.getProperties(NonVisualBeanComplexProperty.java:24)
at com.swtdesigner.properties.editors.complex.DelegatingComplexPropertyEditor.getProperties(DelegatingComplexPropertyEditor.java:10)
at com.swtdesigner.model.properties.PropertyUtilities.isVisible(PropertyUtilities.java:49)
at com.swtdesigner.model.JavaInfo.getProperties(JavaInfo.java:1053)
at com.swtdesigner.model.properties.NonVisualBeanComplexProperty.getProperties(NonVisualBeanComplexProperty.java:22)
at com.swtdesigner.properties.editors.complex.DelegatingComplexPropertyEditor.getProperties(DelegatingComplexPropertyEditor.java:10)
at com.swtdesigner.model.properties.PropertyUtilities.isVisible(PropertyUtilities.java:49)
at com.swtdesigner.model.JavaInfo.getProperties(JavaInfo.java:1053)
at com.swtdesigner.model.properties.NonVisualBeanComplexProperty.getProperties(NonVisualBeanComplexProperty.java:22)
at com.swtdesigner.properties.editors.complex.DelegatingComplexPropertyEditor.getProperties(DelegatingComplexPropertyEditor.java:10)
at com.swtdesigner.model.properties.PropertyUtilities.isVisible(PropertyUtilities.java:49)
at com.swtdesigner.model.JavaInfo.getProperties(JavaInfo.java:1053)
at com.swtdesigner.model.properties.NonVisualBeanComplexProperty.getProperties(NonVisualBeanComplexProperty.java:22)
at com.swtdesigner.properties.editors.complex.DelegatingComplexPropertyEditor.getProperties(Delegating...
It continues for pages and pages...
There seems to be a recursivity error (with serialization).
I cannot find where the problem is. I spend one day and an half on this without finding anything.
Best regards,
Roger