title: ERROR/AndroidRuntime(631): FATAL EXCEPTION: main, ERROR/AndroidRuntime(631): java.lang.StackOverflowError
body: <p>I'm developing a Baby Names app. I'm getting runtime exception while developing the App. Here is some part of the log file.</p>
  
  <pre><code>11-06 01:37:00.970: WARN/dalvikvm(631): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
  11-06 01:37:01.040: ERROR/AndroidRuntime(631): FATAL EXCEPTION: main
  11-06 01:37:01.040: ERROR/AndroidRuntime(631): java.lang.StackOverflowError
  11-06 01:37:01.040: ERROR/AndroidRuntime(631): at balu.android.CommonNameTable.&lt;init&gt;(CommonNameTable.java:59)
  11-06 01:37:01.040: ERROR/AndroidRuntime(631): at balu.android.CommonNameTable.&lt;init&gt;(CommonNameTable.java:59)
  </code></pre>
  
  <p>The functionality of App is going to be like this.</p>
  
  <ol>
  <li><p>Select activity contains a menu, having the following items.</p>
  
  <blockquote>
    <p>Common names<br>
    Uncommon names<br>
    Names popular in a specific city    </p>
  </blockquote></li>
  </ol>
  
  <p><a href="https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/Select.java" rel="nofollow">https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/Select.java</a> - is the link to the Select Activity.</p>
  
  <p>2.When the user selects - "Common names" -</p>
  
  <p>a new Activity will be launched. I contains a ListView, of all the names from CommonNameTable in the SQLite database. In the constructor of the table, I tried to insert records from the file "commonnames.txt". Here is the links to the classes I have written.</p>
  
  <p>I think this is the source of the problem.</p>
  
  <p><a href="https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/CommonNameTable.java" rel="nofollow">https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/CommonNameTable.java</a><br>
  <a href="https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/CommonNames.java" rel="nofollow">https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/CommonNames.java</a></p>
  
  <p>Could you please help me in fixing this problem?</p>