library net listcompleted error

slowtime

Active Member
Licensed User
Longtime User
Hi,

sometimes using net library pop3 device stops

Error occurred in sub:main_pop_listcompleted(java line:4170)
java.lang.NumberFormatException

HTML:
main_pop_listcompleted (java line: 4170)
java.lang.NumberFormatException: 
   at org.apache.harmony.luni.util.FloatingPointParser.parseDouble(FloatingPointParser.java:267)
   at java.lang.Double.parseDouble(Double.java:287)
   at ticketme.vone.main._pop_listcompleted(main.java:4170)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:521)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
   at anywheresoftware.b4a.BA$1.run(BA.java:218)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:123)
   at android.app.ActivityThread.main(ActivityThread.java:4627)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:521)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
   at dalvik.system.NativeStart.main(Native Method)
java.lang.NumberFormatException:

My code is:

HTML:
Sub POP_ListCompleted (Success As Boolean, Messages As Map)



      
Dim temp1 As Long
   Log("List: " & Success)
    If Success Then    
   Cursor = database.ExecQuery("SELECT * FROM mail")      
   Cursor.Position = 0      
   temp1=Cursor.GetString("nric") 
   Cursor.close

If temp1>=Messages.Size Then 

Else
Dim b As Beeper
b.Initialize(300, 500)
b.Beep 
messaggitotali=Messages.Size
Dim res As Int

    res = Msgbox2("VUOI LEGGERLO ?", "ATTENZIONE NUOVO MESSAGGIO","SI", "", "No", Null)
        If res = DialogResponse.NEGATIVE Then      
         Return True
            Else
database.ExecNonQuery("UPDATE mail SET nric = '" & messaggitotali & "'" )

               Dim in As Intent
               Dim pm As PackageManager
               in = pm.GetApplicationIntent("com.android.email")
If in.IsInitialized Then StartActivity(in)
         StartActivity(in)
End If
End If
   
   

    Else 
        Log(LastException.Message)
    End If
    POP.Close 
End Sub

Is a bug or I'm wrong.

Thank you for suggestion
Ciao
 

agraham

Expert
Licensed User
Longtime User
at ticketme.vone.main._pop_listcompleted(main.java:4170)
The error is at line 4170 in your compiled Java code in main.java which you can find in Objects/src/.../main.java. If you look at it with a line numbering editor like Notepad++ you can see which line caused the error as the Basic4android source code is included as comments.
 
Top