Looks like there is sonme problem in below snippet:

while ((strLine = br.readLine()) != null)   {
                          String[] temp;

                          strLine = strLine.trim();
                          temp = strLine.split("\\s+");

                          commonNameTable.createCommonName(temp[1], temp[0]);
                  }

Check the temp values once again, may be because of trimming it is
giving the error.

Lokesh


On Sun, Nov 6, 2011 at 10:37 AM, Bala Subrahmanyam Varanasi <
[email protected]> wrote:

> Hi !
>
> I'm developing a Baby Names app. I'm getting runtime exception while
> developiing the App. Here is some part of the log file.
>
> 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.<**init>(CommonNameTable.java:59)
> 11-06 01:37:01.040: ERROR/AndroidRuntime(631): at
> balu.android.CommonNameTable.<**init>(CommonNameTable.java:59)
>
>  The functionality of App is going to be like follow.
>
> 1. Select activity contains a menu, having the following items.
>
>    - Common names
>    - Uncommon names
>    - Names popular in a specific city
>
>
> https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/Select.java
>  -
> is the link to the Select Activity.
>
>
> 2. When the user selects - "Common names" -
>
> 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.
>
>
> https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/CommonNameTable.java
>
> https://github.com/Balu-Varanasi/BabyNamesApp/blob/master/src/balu/android/CommonNames.java
>
> Could you please help me in fixing this problem?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards
Lokesh Gupta

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to