VFY: unable to find class referenced in signature

by hefeng » Tue, 07 Jul 2009 00:06:43 GMT


Sponsored Links
 Hello,

I try to port the XMPP library to android sdk 1.5, follow the demo
ApiDemo from the sdk,  I created a directory something like below:

      smack--+AndroidManifest.xml                          ..The
manifest for the smack library

                    |
 
+src                                                     ..The source
code for the smack
                    :
                    :
                    ------
test                                              .. The test
directory for the test case
                                  |
                                 +
AndroidManifest.xml                              .. The manifest for
the test code
                                  |
                                  :
                                  :
 
+src                                                            .. The
test code for the smack library.

After I build both projects, I install them respectively on the
emulator, then I launch the test case by command:
$ adb shell am instrument -w org.jivesoftware.smack.test/
android.test.InstrumentationTestRunner

then console output following information:
$INSTRUMENTATION_RESULT: shortMsg=org.jivesoftware.smack.LoginTest
$INSTRUMENTATION_RESULT: longMsg=java.lang.VerifyError:
org.jivesoftware.smack.LoginTest
$INSTRUMENTATION_CODE: 0

I think there is something wrong with the test case then I check with
command:

$adb logcat

I found following error message in the log:
:
:
D/AndroidRuntime( 1216): --- registering native functions ---
D/ActivityManager(  564): Uninstalling process
org.jivesoftware.smack.test
I/ActivityManager(  564): Start proc org.jivesoftware.smack.test for
added application org.jivesoftware.smack.test: pid=1223 uid=10019 gids=
{}
W/dalvikvm( 1223): VFY: unable to find class referenced in signature
(Lorg/jivesoftware/smack/XMPPConnection;)
E/dalvikvm( 1223): Could not find method
org.jivesoftware.smack.XMPPConnection.connect, referenced from method
org.jivesoftware.smack.LoginTest.testInvalidLogin
W/dalvikvm( 1223): VFY: unable to resolve virtual method 176: Lorg/
jivesoftware/smack/XMPPConnection;.connect ()V
:
It seems there is something wrong for the dalvik to resolve the
connect method in the org.jivesoftware.smack package, so I type the
command

$ adb shell dexdump -d -f -h /data/dalvik-cache/
d...@app@org.jivesoftware.smack....@classes.dex | grep XMPPConnection

then, I find following information in output
    #4              : (in Lorg/jivesoftware/smack/XMPPConnection;)
013130:                                        |[013130]
org.jivesoftware.smack.XMPPConnection.connect:()V

It seems that the XMPPConnection class with its method have been
install properly already.



--~--~---------~--~----~------------~-------~--~----~



VFY: unable to find class referenced in signature

by hefeng » Tue, 07 Jul 2009 00:07:21 GMT


 Hello,

I try to port the XMPP library to android sdk 1.5, follow the demo
ApiDemo from the sdk,  I created a directory structure something like
below for two packages org.jivesoftware.smack &
org.jivesoftware.smack.test :

      smack--+AndroidManifest.xml               ..The manifest for
package org.jivesoftware.smack

                    |
 
+src                                                 ..The source code
for the smack
                    :
                    :
                    ------
test                                          .. The test directory
for the test case
                                  |
                                 + AndroidManifest.xml              ..
The manifest for the package   org.jivesoftware.smack.test
                                  |
                                  :
                                  :
 
+src                                                            .. The
test code for the smack library.

After I build both projects, I install both package respectively on
the emulator, then I try to launch the test case by command:
$ adb shell am instrument -w org.jivesoftware.smack.test/
android.test.InstrumentationTestRunner

then console output following information:
$INSTRUMENTATION_RESULT: shortMsg=org.jivesoftware.smack.LoginTest
$INSTRUMENTATION_RESULT: longMsg=java.lang.VerifyError:
org.jivesoftware.smack.LoginTest
$INSTRUMENTATION_CODE: 0

I think there is something wrong with the test case then I check with
command:

$adb logcat

I found following error message in the log:
:
:
D/AndroidRuntime( 1216): --- registering native functions ---
D/ActivityManager(  564): Uninstalling process
org.jivesoftware.smack.test
I/ActivityManager(  564): Start proc org.jivesoftware.smack.test for
added application org.jivesoftware.smack.test: pid=1223 uid=10019 gids=
{}
W/dalvikvm( 1223): VFY: unable to find class referenced in signature
(Lorg/jivesoftware/smack/XMPPConnection;)
E/dalvikvm( 1223): Could not find method
org.jivesoftware.smack.XMPPConnection.connect, referenced from method
org.jivesoftware.smack.LoginTest.testInvalidLogin
W/dalvikvm( 1223): VFY: unable to resolve virtual method 176: Lorg/
jivesoftware/smack/XMPPConnection;.connect ()V
:
It seems there is something wrong for the dalvik to resolve the
connect method in the org.jivesoftware.smack package, so I type the
command

$ adb shell dexdump -d -f -h /data/dalvik-cache/
d...@app@org.jivesoftware.smack....@classes.dex | grep XMPPConnection

then, I find following information in output
    #4              : (in Lorg/jivesoftware/smack/XMPPConnection;)
013130:                                        |[013130]
org.jivesoftware.smack.XMPPConnection.connect:()V

It seems that the XMPPConnection class with its method have been
install properly already, then I lost ideal how to finger out the
problem, please give me a hand, any comments are appreciated.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


VFY: unable to find class referenced in signature

by fadden » Tue, 07 Jul 2009 03:41:15 GMT


 


I'd guess that the org.jivesoftware.smack.apk file is not present in
the process responding to the instrumentation test request.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Setting up a Google Mail account (not gmail) on the Samsung Moment.

I have spent 2 days with the Sprint store reps and Sprints phone tech
support on this issue to no avail.

I'm trying to switch from a blackberry to the Samsung Moment (android
1.5 phone) on Sprint.  But I need to make sure I can set up my email
on the phone first and so far the answer is no but its really
confusing to me.

My email is chrisbald...@shoulderhigh.com and a few other usernames
with that domain and they are all served on Google's email server.  So
they appear with all the functionality of gmail, calendar, and
contacts, but its branded with my company  logo and it uses my domain
not gmail.com

My blackberry uses google sync to imap the phone and the email/
calendar/contacts wirelessly and instantaneously.

Google Sync evidently doesn't work on the Samsung Moment.

So my question is how do I set up these email accounts on the Moment?
Its a google phone OS and a Google served email, how can they not work
together??

Thanks!!

--

2. ImageView alpha fade to transparent vs. fade to black

Greetings! I have searched this group, read the Common Tasks FAQ,
searched elsewhere, to no avail. Here's what I've got working so far.
Pardon the obvious lack of refactoring. Right now I'm in the "make it
work" phase of things (vs. "make it right" and "make it fast" <grin>):

For starters, we have a basic, tire-kicking type of Android 2.0 app.

Main layout (XML) is a simple LinearLayout with two views, an
ImageView and a WebView. Both use fill_parent for width + height.
ImageView appears on top of WebView, z-order wise. (Done/working.)

An anim(ation) resource for fadeout has also been created, using
accelerate_decelerate_interpolator. All it does is run the alpha down
from 1.0 to 0.0, using config_longAnimTime. (Done/working.)

A given Activity (that also implements AnimationListener) is
initialized with the aforementioned main layout. Thus, once this
particular Activity kicks in, you start off by seeing just the
ImageView. Meanwhile, the WebView is asked to load a particular URI.
When onPageFinished is called, we see if the ImageView is visible.
(Done/working.)

If ImageView is visible, we create an Animation object, loading our
trusty fadeout via loadAnimation. We set up an animation listener
(keep reading) and kick off the fadeout on our ImageView. (Done/
working.)

Once onAnimationEnd is called (remember, we 'set up us the listener')
we set the ImageView's visibility to View.GONE. (Yes, we should very
likely remove the view entirely since we never need it again, but bear
with me - I'm starting off with "make it work" - still finding our way
around town in this regard!) (Done/working.)

Here's the part that is NOT working - or at least it's not working as
expected/desired. The animation is fading the ImageView, but it's
fading to black instead of fading to transparent. We want to fade in
such a way that we reveal the WebView lurking beneath it - our
"desired effect" if you will.

What's happening now is, you see the image fade to black, then the
view is hidden (View.GONE), thus at that point the now-black display
disappears, and POP - there's our web view.

Ah-ha, you (might?) say, use a transparent background color! Then it
fades to transparent and you're all set. Sure enough, that's what I
tried next, adjusting the ImageView's XML to use a background color of
transparent (@android:color/transparent IIRC) and it STILL fades to
black. Thus, I suspect I'm doing something blatantly wrong but can't
put my finger on why.

Clues welcome/appreciated. Thank you!

- JD

--

3. Must I restart the emulator on code changes?

4. How to develop Arabic to English Dictionary in Android

5. Issue Launching Emulator from Command Line

6. stream internet radio

7. Trouble installing from SDK and AVD Manager: access denied unzipping