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. LG Optimus 2x firmware v10b

Mohon infirmasinya, apakah benar firmware v10b bikin internet jadi ngacir?
itu barusan baca statement  yg jualan di milis ini.
Mohon pencerahan daru user optimus 2x.

salam,
-robby.y.s
pnk

-- 
"

2. android eclair system image problem

hi,

I am running android eclair BSP on my SMDK6410 board. I am using
kernel version 2.6.29
I get "stuck at the welcome screen with Android written on the screen
and a blinking underscore".

This is the portion of log which shows something is missing:-
[    2.828120] s3c-rtc s3c-rtc: setting system clock to 2000-01-01
00:06:50 UTC (946685210)
[    2.836441] Freeing init memory: 160K
[    4.191609] init: cannot open '/initlogo.rle'
[    4.216513] yaffs: dev is 32505860 name is "mtdblock4"
[    4.222074] yaffs: passed flags ""
[    4.225464] yaffs: Attempting MTD mount on 31.4, "mtdblock4"
[    4.315881] yaffs_read_super: isCheckpointed 0
[    4.321941] yaffs: dev is 32505862 name is "mtdblock6"
[    4.327171] yaffs: passed flags ""
[    4.330593] yaffs: Attempting MTD mount on 31.6, "mtdblock6"
[    4.345374] yaffs_read_super: isCheckpointed 0
[    4.357734] yaffs: dev is 32505861 name is "mtdblock5"
[    4.363296] yaffs: passed flags ""
[    4.366700] yaffs: Attempting MTD mount on 31.5, "mtdblock5"
[    4.387008] yaffs_read_super: isCheckpointed 0
[    4.450628] init: cannot find '/system/bin/sh', disabling 'console'
[    4.456988] init: cannot find '/system/bin/servicemanager',
disabling 'servicemanager'
[    4.465430] init: cannot find '/system/bin/vold', disabling 'vold'
[    4.471671] init: cannot find '/system/bin/de{*filter*}d', disabling
'de{*filter*}d'
[    4.478765] init: cannot find '/system/bin/rild', disabling 'ril-
daemon'
[    4.485944] init: cannot find '/system/bin/app_process', disabling
'zygote'
[    4.492958] init: cannot find '/system/bin/mediaserver', disabling
'media'
[    4.499888] init: cannot find '/system/bin/dbus-daemon', disabling
'dbus'
[    4.507137] init: cannot find '/system/bin/installd', disabling
'installd'
[    4.514069] init: cannot find '/system/bin/keystore', disabling
'keystore'
[    4.528196] [adb_function_enable] adb_function => (enabled)

Can anyone please tell what is the issue here.
I checked in system/bin folder all these files mentioned here
as"cannot find" are there, why i am still getting this error.
Is my system image wrong or is it not properly written on nand, if
either is the case then how to verify.

Thanks and regards
Manoj

-- 

3. aidl link error, couldn't find import for class com.android.internal.telephony.gsm.NetworkInfo

4. Wi-Fi direct support in Android

5. Android2.1 sdcard/udisk lost file

6. need help - NFC

7. Android lost file issue