stack overflow error?
<p>I was working on an accounts application. when I tried to run the invoice form something called stack overflow exception occurred...tell me what to do about it.. everything was fine I suppose before I declared an invoice object in Stock class.
this was output...</p>

<pre><code>run:
Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
    at sun.awt.Win32GraphicsConfig.getBounds(Native Method)
    at sun.awt.Win32GraphicsConfig.getBounds(Win32GraphicsConfig.java:215)
    at java.awt.Window.init(Window.java:394)
    at java.awt.Window.&lt;init&gt;(Window.java:433)
    at java.awt.Frame.&lt;init&gt;(Frame.java:403)
    at java.awt.Frame.&lt;init&gt;(Frame.java:368)
    at javax.swing.JFrame.&lt;init&gt;(JFrame.java:158)
    at Invoice.&lt;init&gt;(Invoice.java:10)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)

    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
    at Stock.&lt;init&gt;(Stock.java:670)
    at Invoice.&lt;init&gt;(Invoice.java:1135)
BUILD SUCCESSFUL (total time: 5 seconds)
</code></pre>
