StackOverflowError


#1

Anyone -
We’ve been successfully using JGo for a bit now, but under the latest 1.4.1_02 jdk, we can repeatedly cause a StackOverflowError on Windows XP. What is going on in our code is that we are dynamically adding objects to a JGoView. Here is a bit of the stack trace:

java.lang.StackOverflowError
at javax.swing.JComponent.repaint(Unknown Source)
at java.awt.Component.repaint(Unknown Source)
at javax.swing.plaf.basic.BasicScrollBarUI.setThumbBounds(Unknown Source)
at javax.swing.plaf.basic.BasicScrollBarUI.layoutVScrollbar(Unknown Source)
at javax.swing.plaf.basic.BasicScrollBarUI.layoutContainer(Unknown Source)
at com.incors.plaf.alloy.AlloyScrollBarUI.layoutContainer(AlloyScrollBarUI.java)
at javax.swing.plaf.basic.BasicScrollBarUI$ModelListener.stateChanged(Unknown Source)
at javax.swing.DefaultBoundedRangeModel.fireStateChanged(Unknown Source)
at javax.swing.DefaultBoundedRangeModel.setRangeProperties(Unknown Source)
at javax.swing.JScrollBar.setValues(Unknown Source)
at com.nwoods.jgo.JGoView.updateScrollbars(Unknown Source)
at com.nwoods.jgo.JGoView.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at com.nwoods.jgo.JGoView.updateScrollbars(Unknown Source)
at com.nwoods.jgo.JGoView.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at com.nwoods.jgo.JGoView.updateScrollbars(Unknown Source)
at com.nwoods.jgo.JGoView.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)

Basically that same bit of code:
at com.nwoods.jgo.JGoView.updateScrollbars(Unknown Source)
at com.nwoods.jgo.JGoView.doLayout(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)

Just keeps repeating.

Has anyone else seen this?


#2

Do you get the same problem if you use a different look-and-feel?