Hi all,

I am using restlet-1.0.8 with Jboss on server side. and I have build a web
service. When I call it from my desktop computer running XP using restlet.Client
class its working, I got response object.

I have to call same web service from mobile devices using same code. when I call
it from Google Android program and run it it gave a
java/lang/ExceptionInInitializerError.
and it does not send request. I have added the required jars and some classes
from jdk 1.5 to android project which it was missing. 

Below are the some logs from there.

DEBUG/RestClient(607): I am going to call web service now
DEBUG/RestClient(607): The server encountered an unexpected condition which
prevented it from fulfilling the request
DEBUG/RestClient(607): [EMAIL PROTECTED]
DEBUG/RestClient(607): element value = my android data
DEBUG/RestClient(607): testing rep on android
DEBUG/RestClient(607): DomRepresentation created successfully
DEBUG/dalvikvm(607): Exception Ljava/lang/UnsupportedOperationException; from
Class.java:1216 not caught locally
WARN/dalvikvm(607): Exception Ljava/lang/UnsupportedOperationException; thrown
during Lorg/restlet/util/Engine;.<clinit>
DEBUG/dalvikvm(607): Exception Ljava/lang/ExceptionInInitializerError; from
Client.java:52 not caught locally
DEBUG/dalvikvm(607): Exception Ljava/lang/ExceptionInInitializerError; from
ZygoteInit.java:1555 not caught locally
DEBUG/AndroidRuntime(607): Shutting down VM
WARN/dalvikvm(607): threadid=3: thread exiting with uncaught exception
(group=0x4000fdf8)
ERROR/AndroidRuntime(607): Uncaught handler: thread Main exiting due to uncaught
exception
DEBUG/ActivityThread(572): Installing external provider android.server.checkin:
android.server.checkin.CheckinProvider
ERROR/AndroidRuntime(607): java.lang.ExceptionInInitializerError
ERROR/AndroidRuntime(607):     at org.restlet.Client.<init>(Client.java:52)
ERROR/AndroidRuntime(607):     at org.restlet.Client.<init>(Client.java:67)
ERROR/AndroidRuntime(607):     at org.restlet.Client.<init>(Client.java:87)
ERROR/AndroidRuntime(607):     at
com.snip.snipapp.clients.restws.registration.RegistrationProvider.deleteAccount
(Unknown
Source)
-----------------------------------------------------

If I call it using appache commons http client lib then I can access those web
service from android.

Is there any configuration issue with restlet. If yes then can anybody give some
hint how to set it.

Thanks in advance.

--Anant



Reply via email to