Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7810811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:55:46+00:00 2026-06-02T03:55:46+00:00

I’ve been using a javamail implementation previously in my applications, which i found here:

  • 0

I’ve been using a javamail implementation previously in my applications, which i found here:
javamail-android

Until recently, everything worked fine. I simply added the .jar files as external jars under my build path. I recently updated to JRE7 and ADT 17, now i’m getting verify Errors! This seems to revolve around javax.mail.Multipart, but i am unsure how to fix this issue. Things I have tried:

  1. adding the jars to lib/, linking source folder
  2. adding jars to path from the lib/ folder
  3. adding directly to build path
  4. adding the Multipart.java source file

I can get as far as running the app, successfully verifying credentials, loading IMAP folders and messages, but i cannot get the Multipart content of the message now. This is where it seems to fail, and occasionally when first launching the library. below is the trace i have:

W/dalvikvm(16903): VFY: unable to find class referenced in signature (Ljavax/mail/Multipart;)
I/dalvikvm(16903): Could not find method javax.mail.Multipart.getCount, referenced from method com.control.process.MainActivity.getAttachment
W/dalvikvm(16903): VFY: unable to resolve virtual method 1033: Ljavax/mail/Multipart;.getCount ()I
D/dalvikvm(16903): VFY: replacing opcode 0x6e at 0x0002
D/dalvikvm(16903): Making a copy of Lcom/control/process/MainActivity;.getAttachment code (205 bytes)
W/dalvikvm(16903): VFY: unable to find class referenced in signature (Ljavax/mail/Multipart;)
I/dalvikvm(16903): Could not find method javax.mail.Multipart.getCount, referenced from method com.control.process.MainActivity.getMessageBody
W/dalvikvm(16903): VFY: unable to resolve virtual method 1033: Ljavax/mail/Multipart;.getCount ()I
D/dalvikvm(16903): VFY: replacing opcode 0x6e at 0x0001
D/dalvikvm(16903): Making a copy of Lcom/control/process/MainActivity;.getMessageBody code (168 bytes)
I/ActivityManager(64): Displayed activity com.control.process/.MainActivity: 1229 ms (total 2508 ms)
W/KeyCharacterMap(16903): No keyboard for id 0
W/KeyCharacterMap(16903): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
I/dalvikvm(16903): Could not find method javax.mail.Session.getDefaultInstance, referenced from method com.control.process.MainActivity$ServerCheckTask.doInBackground
W/dalvikvm(16903): VFY: unable to resolve static method 1038: Ljavax/mail/Session;.getDefaultInstance (Ljava/util/Properties;Ljavax/mail/Authenticator;)Ljavax/mail/Session;
D/dalvikvm(16903): VFY: replacing opcode 0x71 at 0x0060
D/dalvikvm(16903): Making a copy of Lcom/control/process/MainActivity$ServerCheckTask;.doInBackground code (2706 bytes)
W/dalvikvm(16903): VFY: unable to resolve exception class 271 (Ljavax/mail/NoSuchProviderException;)
W/dalvikvm(16903): VFY: unable to resolve exception class 271 (Ljavax/mail/NoSuchProviderException;)
W/dalvikvm(16903): VFY: unable to resolve exception class 271 (Ljavax/mail/NoSuchProviderException;)
W/dalvikvm(16903): VFY: unable to resolve exception class 271 (Ljavax/mail/NoSuchProviderException;)
W/dalvikvm(16903): VFY: unable to resolve exception class 271 (Ljavax/mail/NoSuchProviderException;)
W/dalvikvm(16903): VFY: unable to find exception handler at addr 0x1cc
W/dalvikvm(16903): VFY:  rejected Lcom/control/process/MainActivity$ServerCheckTask;.doInBackground ([Ljava/lang/Object;)Ljava/lang/Object;
W/dalvikvm(16903): VFY:  rejecting opcode 0x0d at 0x01cc
W/dalvikvm(16903): VFY:  rejected Lcom/control/process/MainActivity$ServerCheckTask;.doInBackground ([Ljava/lang/Object;)Ljava/lang/Object;
W/dalvikvm(16903): Verifier rejected class Lcom/control/process/MainActivity$ServerCheckTask;
D/AndroidRuntime(16903): Shutting down VM
W/dalvikvm(16903): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
E/AndroidRuntime(16903): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(16903): java.lang.VerifyError: com.control.process.MainActivity$ServerCheckTask
E/AndroidRuntime(16903):    at com.control.process.MainActivity.onOptionsItemSelected(MainActivity.java:197)
E/AndroidRuntime(16903):    at android.app.Activity.onOptionsItemSelected(Activity.java:2282)
E/AndroidRuntime(16903):    at android.app.Activity.onMenuItemSelected(Activity.java:2170)
E/AndroidRuntime(16903):    at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
E/AndroidRuntime(16903):    at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:139)
E/AndroidRuntime(16903):    at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
E/AndroidRuntime(16903):    at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:525)
E/AndroidRuntime(16903):    at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
E/AndroidRuntime(16903):    at android.view.View.onTouchEvent(View.java:4179)
E/AndroidRuntime(16903):    at android.widget.TextView.onTouchEvent(TextView.java:6541)
E/AndroidRuntime(16903):    at android.view.View.dispatchTouchEvent(View.java:3709)
E/AndroidRuntime(16903):    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(16903):    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(16903):    at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
E/AndroidRuntime(16903):    at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
E/AndroidRuntime(16903):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(16903):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(16903):    at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(16903):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(16903):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(16903):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(16903):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(16903):    at dalvik.system.NativeStart.main(Native Method)

The only other idea i had was to revert to an earlier version of the JDK and the ADT build?
Need help on this one, any advice would be greatly appreciated!

EDIT:

For some reason while importing the necessary jar files, the mailcap settings get wiped out. I reloaded the settings before reading the Multipart message, and it works as expected.

MailcapCommandMap mc = (MailcapCommandMap) CommandMap.getDefaultCommandMap();
mc.addMailcap(“text/html;; x-java-content-handler=com.sun.mail.handlers.text_html”);
mc.addMailcap(“text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml”);
mc.addMailcap(“text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain”);
mc.addMailcap(“multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed”);
mc.addMailcap(“message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822”);
CommandMap.setDefaultCommandMap(mc);

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:55:48+00:00Added an answer on June 2, 2026 at 3:55 am

    Had the same problem because of these recent SDK changes:

    Dealing with Dependancies

    What worked for me was removing the JARS from the build path, re-adding them and making sure they were marked as exported.

    Peter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I would like to run a str_replace or preg_replace which looks for certain words
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.