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. Help is needed to use the beagleboard as a USB device

Hi,

I am trying to connect my beagleboard to the PC (XP) as a device (for
deploying apk program) by following 
http://developer.android.com/guide/developing/device.html
. I am using the right cable (mini-B to standard A connector).
When I connect the USB then the PC pops up a message "USB Device Not
Recognized". I tried to update the driver with the usb_driver/x86 but
it seems like widows doesn't find the appropriate driver (although it
exists).

I am using the binaries that EMBINUX published as my kernel.
Is there any configuration I shall do in order to have it working?

BTW, it works when using the beaglebooard as a host and other
appliances as devices (using a mini-A to standard-A cable)

Thanks.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Cross process cursor using AbstractWindowedCursor

I know that the MatrixCursor and SQLiteCursor classes work across
processes, but has anyone tried implementing a cross-process cursor
based directly on AbstractWindowedCursor?

The situation is that I'm working on an app with pluggable import/
export functions for its database, using a content provider to
abstract the database part of that.  In the case of exporting, a query
is made against a special data transfer URI, and the resulting SQL
query takes the desired fields from the plugin and selection criteria
based on user settings in the app to build the SQL statement.
Normally, I could just do the query and return the SQLiteCursor object
that I get, but I also want to implement an option to export records
that may not be included in the selection criteria but are related to
those that are.  In the Windows Mobile version of the app, I built an
export list before actually running the export plugin, but in the
interest of efficiency I'm trying to do that as part of the database
abstraction here.

I don't know SQL well enough to know if there is a way to do all of
that in the one SQL statement, so I started thinking of a way to use
AbstractWindowedCursor with an internal SQLiteCursor to handle it...
the only way I could really do it that way would be to enforce moving
through the cursor only from start to finish, but since this mechanism
is intended for exporting to files it didn't sound like that would be
unreasonable.  Since the SQLiteCursor class is built on top of AWC,
and seems to merely move things around using CursorWindow objects and
that base code, it seems like that would work.

I could try it when I get to that point, but if it doesn't work I'll
have to s{*filter*}quite a bit of work and go back to the drawing board.
If someone else has already done it and it works as a cross-platform
cursor, or if it doesn't, then finding that out early would be a lot
easier.

Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. Smooth scrolling in surfaceview possible?

4. Get the currently selected file through a service.

5. gl functions not working, egl functions are working - android port to Overo TI OMAP 3503

6. glActiveTexture error - android-2.6.29 port to Overo Earth TI OMAP 3503

7. Seeing Double ListView