VerifyError is produced for one of two reasons:

1) The class file being read contains stuff that is just plain illegal/
not recognized by the VM.  This could be due to compiler error,
malicious modification, garbling in transmission, or the class file
being a later version than the VM recognizes.

2) The external APIs that the class file references are somehow
different from those the class file was originally compiled against.
Eg, the SomeExernalClass.getMyFruit method that used to return a Peach
object is now returning a Kumquat.

On Aug 27, 3:47 am, "pramod.deore" <[email protected]> wrote:
> I had write one application in that I am reading a image and sending
> it to the server , I am using Base64OutputStream class . I had tried
> it in core java and image is encoded successfully, But when I am using
> same logic in android then I am getting error as
> java.lang.VerifyError .
>
> And Logcat gives following error as
>
> 08-27 14:11:35.285: ERROR/AndroidRuntime(371): Uncaught handler:
> thread main exiting due to uncaught exception
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371): java.lang.VerifyError:
> org.apache.commons.codec.binary.Base64OutputStream
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.micro.encodeImage.EncodeImage.encodeImage(EncodeImage.java:46)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.micro.encodeImage.EncodeImage.onCreate(EncodeImage.java:35)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1123)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2364)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2417)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.access$2100(ActivityThread.java:116)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.os.Looper.loop(Looper.java:123)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> android.app.ActivityThread.main(ActivityThread.java:4203)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:791)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
> 08-27 14:11:35.405: ERROR/AndroidRuntime(371):     at
> dalvik.system.NativeStart.main(Native Method)
>
> how to solve this issue?

-- 
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