locked
Input string was not in a correct format RRS feed

  • Question

  • User163903 posted

    I'm having the error "Input string was not in a correct format" wherever i run my app, be it on VM or actual android device. please help. thank you

    Java.Lang.RuntimeException: java.lang.reflect.InvocationTargetException at --- End of managed exception stack trace --- at java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at at dalvik.system.NativeStart.main(Native Method) at Caused by: java.lang.reflect.InvocationTargetException at at java.lang.reflect.Method.invokeNative(Native Method) at at java.lang.reflect.Method.invoke(Method.java:515) at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at ... 2 more at Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber (System.String str, NumberStyles options, System.NumberBuffer& number, System.Globalization.NumberFormatInfo info, Boolean parseDecimal) [0x00054] in /Users/builder/data/lanes/2185/53fce373/source/mono/external/referencesource/mscorlib/system/number.cs:1084 at System.Number.ParseInt32 (System.String s, NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00014] in /Users/builder/data/lanes/2185/53fce373/source/mono/external/referencesource/mscorlib/system/number.cs:755 at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00006] in /Users/builder/data/lanes/2185/53fce373/source/mono/external/referencesource/mscorlib/system/int32.cs:171 at System.Convert.ToInt32 (System.String value, IFormatProvider provider) [0x00008] in /Users/builder/data/lanes/2185/53fce373/source/mono/external/referencesource/mscorlib/system/convert.cs:1121 at System.String.System.IConvertible.ToInt32 (IFormatProvider provider) [0x00000] in /Users/builder/data/lanes/2185/53fce373/source/mono/mcs/class/corlib/System/String.cs:2498 at System.Convert.ToInt32 (System.Object value, IFormatProvider provider) [0x00000] in /Users/builder/data/lanes/2185/53fce373/source/mono/external/referencesource/mscorlib/system/convert.cs:1029 at Mono.Data.Sqlite.SqliteStatement.BindParameter (Int32 index, Mono.Data.Sqlite.SqliteParameter param) [0x000ea] in /Users/builder/data/lanes/2185/53fce373/source/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite2.0/SQLiteStatement.cs:195 at Mono.Data.Sqlite.SqliteStatement.BindParameters () [0x0001c] in /Users/builder/data/lanes/2185/53fce373/source/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite2.0/SQLiteStatement.cs:151 at Mono.Data.Sqlite.SqliteCommand.BuildNextCommand () [0x000ac] in /Users/builder/data/lanes/2185/53fce373/source/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite2.0/SQLiteCommand.cs:240 at at mono.android.view.ViewOnClickListenerImplementor.nonClick(Native Method) at at mono.android.view.ViewOnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:29) at at android.view.View.performClick(View.java:4438) at at android.view.View$PerformClick.run(View.java:18422) at at android.os.Handler.handleCallback(Handler.java:733) at at android.os.Handler.dispatchMessage(Handler.java:95) at at android.os.Looper.loop(Looper.java:136) at at android.app.ActivityThread.main(ActivityThread.java:5017) at ... 5 more

    Monday, November 9, 2015 7:13 PM

Answers

  • User1175 posted

    Hey @iProject

    Its seems like initially in code something wrong with value s you are passing to the database. There may be lots case e.g. You specified int data type in database and passing string value. Its basically datatype mismatch during the process. Its hard to tell where this issue occurring without code.

    Thanks RIYAZ

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, November 10, 2015 7:31 AM

All replies

  • User1175 posted

    Hey @iProject

    Its seems like initially in code something wrong with value s you are passing to the database. There may be lots case e.g. You specified int data type in database and passing string value. Its basically datatype mismatch during the process. Its hard to tell where this issue occurring without code.

    Thanks RIYAZ

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, November 10, 2015 7:31 AM
  • User163903 posted

    sorry to bother you bro, nevermind again this one, i just found out the problem. an int was supposed to be a string. so i changed it and done!thank you.

    Tuesday, November 10, 2015 3:20 PM