Problem with POP3

jmorales20001

Member
Licensed User
Longtime User
Hello everyone.

I've been using Net library to get emails from an account with POP3. But, since I updated to v1.35 I get this error.

main_process_globals (java line: 307)
java.lang.NoClassDefFoundError: anywheresoftware.b4a.net.POPWrapper
at b4a.example.main._process_globals(main.java:307)
at b4a.example.main.initializeProcessGlobals(main.java:258)
at b4a.example.main.afterFirstLayout(main.java:85)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)

I checked this behaviour on a sample code and always I get the same result:

Sample code:

B4X:
Sub Activity_Resume
  pop.Initialize("pop.gmail.com", 995, "[email protected]", "passwowrd", "POP")
  pop.UseSSL = True 'Gmail requires SSL.
  pop.Status
  pop.ListMessages    
End Sub
Sub POP_ListCompleted (Success As Boolean, Messages As Map)
  Log("TR_PLC")
  Log("List: " & Success)
  Log("Size: " & Messages.Size)
  If Success Then
      For i = 0 To Messages.Size -1
        Log(Messages.GetKeyAt(i) & "--->" & Messages.GetValueAt(i))
      Next
  Else  
    Log(LastException.Message)
  End If
  pop.Close
End Sub

Can you help me?

Thanks in advance.
 
Last edited:

jmorales20001

Member
Licensed User
Longtime User
I'm afraid I'm still having the same problem with v1.37. I've noticed that the problem occurs even when I only declare a POP3 variable, I mean, when I declare "Dim pop as POP3" the problem occurs.

java.lang.NoClassDefFoundError: anywheresoftware.b4a.net.POPWrapper
at b4a.example.main._process_globals(main.java:309)
at b4a.example.main.initializeProcessGlobals(main.java:260)
at b4a.example.main.afterFirstLayout(main.java:85)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
 
Upvote 0

jmorales20001

Member
Licensed User
Longtime User
I tried again. Today I downloaded again Net v1.37, I deleted Net.jar and Net.xml from libraries folder and I copied the new version, however, I'm still having the same result. I've attached the result of search "net" in libraries folder.

I'm using Basic4android v2.52.

Sorry, but: "two libraries folder"? I'm just copying the files in:

C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries

What do you mean with the second folder?

Thank you.
 

Attachments

  • Search Net result.png
    Search Net result.png
    59.5 KB · Views: 192
Last edited:
Upvote 0
Top