Hi, I'm using the odata restlet extension on Android 2.2. My ide is Eclipse. 
When any call into the odata classes needs to create the Metadata object, the 
java runtime is unable to find it. I can see it in the org.reslet.ext.odata jar 
that is included in my project. Just in case, I've checked my classpath and it 
include the location of the jar file as well. Does this have something to do 
with the Metadata object residing in a different package? Here is the android 
log entries from Eclipse.

Best, Jay


10-12 00:57:54.291: ERROR/dalvikvm(16141): Could not find class 
'org.restlet.ext.odata.internal.edm.Metadata', referenced from method 
org.restlet.ext.odata.Query.execute
10-12 00:57:54.291: WARN/dalvikvm(16141): VFY: unable to resolve check-cast 
1982 (Lorg/restlet/ext/odata/internal/edm/Metadata;) in 
Lorg/restlet/ext/odata/Query;
10-12 00:57:54.291: WARN/dalvikvm(16141): VFY: unable to find class referenced 
in signature (Lorg/restlet/ext/atom/Feed;)
10-12 00:57:54.291: WARN/dalvikvm(16141): VFY: unable to resolve virtual method 
14327: Lorg/restlet/ext/atom/Feed;.getLinks ()Ljava/util/List;
10-12 00:58:11.931: WARN/dalvikvm(16141): Unable to resolve superclass of 
Lorg/restlet/ext/odata/internal/edm/Metadata; (1996)
10-12 00:58:11.931: WARN/dalvikvm(16141): Link of class 
'Lorg/restlet/ext/odata/internal/edm/Metadata;' failed
10-12 00:58:21.452: WARN/dalvikvm(16141): threadid=1: thread exiting with 
uncaught exception (group=0x4001d7f0)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141): FATAL EXCEPTION: main
10-12 00:58:21.521: ERROR/AndroidRuntime(16141): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.georain.ripple/com.georain.ripple.Radar}: 
java.lang.NullPointerException
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.os.Looper.loop(Looper.java:123)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.app.ActivityThread.main(ActivityThread.java:4627)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
java.lang.reflect.Method.invokeNative(Native Method)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
java.lang.reflect.Method.invoke(Method.java:521)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
dalvik.system.NativeStart.main(Native Method)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141): Caused by: 
java.lang.NullPointerException
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
org.restlet.ext.odata.Service.getMetadata(Service.java:493)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
org.restlet.ext.odata.Query.<init>(Query.java:229)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
org.restlet.ext.odata.Service.createQuery(Service.java:274)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
com.georain.ripple.service.RippleService.createPointsQuery(RippleService.java:126)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
com.georain.ripple.Radar.onCreate(Radar.java:117)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
10-12 00:58:21.521: ERROR/AndroidRuntime(16141):     ... 11 more

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2670657

Reply via email to