javax.net.ssl.SSLHandshakeException: no cipher suites in common

2011-05-31 Thread lambdad...@gmail.com
Hi I was trying to use https with the restlet+jetty environment, thus far didn't have any success in accessing the https protected server. For your insight the following occurs on the server side with -Djava.net.debug=all flag qtp1345041684-16, fatal error: 40: no cipher suites in common

jaxb class(which is the same class) cast exception

2011-05-31 Thread Musa YUVACI
Hi, I have a interesting problem. When i started glassfish server, everythings work fine. But, i changed some code and published the server, and i run my client (SistemGirisClientKullaniciDogrula), application throw java.lang.ClassCastException: tr.com.app.Kullanici cannot be cast to

RE: javax.net.ssl.SSLHandshakeException: no cipher suites in common

2011-05-31 Thread Broide Uri
Hi, Please remove me from the mailing list Thanks Uri From: lambdad...@gmail.com [mailto:lambdad...@googlemail.com] Sent: Tuesday, May 31, 2011 2:44 AM To: discuss@restlet.tigris.org Subject: javax.net.ssl.SSLHandshakeException: no cipher suites in common Hi I was trying to use https with the

Re: IncompatibleClassChangeError with ConcurrentMap

2011-05-31 Thread Sebastian Wenninger
Nobody got an idea? It's also odd that i can run the testGWTRestlet-2.0 project without problems. Maybe because of the launch-Script provided with it? -- View this message in context:

Re: Using cURL to access OAuth protected resources

2011-05-31 Thread Sebastian Wenninger
It should be possible if you have a proper Token and know exactly how to provide it (in the Headers, the Post-Body...) to your resource. Depends on the Provider i guess. You can also look at the http://tools.ietf.org/html/draft-ietf-oauth-v2-16 OAuth-Specification for further information. --

Re: Using cURL to access OAuth protected resources

2011-05-31 Thread Lokendra Singh
Hi, This is the way I found out for an OAuth NONE flow : # getting the access token, curl --data grant_type=noneclient_id=1234567890client_secret=1234567890scope=foo http://serverHost:8080/oauth/access_token # it returns the access token # Using the access token to access protected resources #

cannot post or put xml with newer releases than 2.0-RC4

2011-05-31 Thread Georg Beier
I have a problem to post (or put) xml in newer restlet releases after 2.0-RC4 I tried a lot but found no solution, so where is my misunderstanding? I have the following resource interface: public interface IPostResource { /** * @param xml XML-coded method parameter * @return

Android POST

2011-05-31 Thread Karl
Hi All, I've had an eventful few days trying to get POST to work on Android and thought I'd publish the workaround for this problem. As per the example, GET works fine. However, I have a simple POST request that passes in a User object and returns a List of Users objects. This always failed

Re: Android POST

2011-05-31 Thread Thierry Boileau
hello Karl, thanks for your comment. You're right, my answer was incomplete. I've update the android page of the user guide http://wiki.restlet.org/docs_2.0/13-restlet/266-restlet.html. Best regards, Thierry Boileau Hi All, I've had an eventful few days trying to get POST to work on Android

Re: cannot post or put xml with newer releases than 2.0-RC4

2011-05-31 Thread Thierry Boileau
Hello Georg, I think that the annotation must be : @Post(xml) String processXml(String xml); Could you give it a try? You may guess that the annotation parameters has changed between RC and final release, but this is not the case. Actually, the syntax has always been the same, but

Re: jaxb class(which is the same class) cast exception

2011-05-31 Thread Musa YUVACI
I found the solution. This is a class loader issue. A few thing cause this issue. When application libraries are at the glassfish server (adding libraries outside WARs/EARs) , Classes load different class loader even you have just one WAR. So that you have two different classes which have same

RE: Re: cannot post or put xml with newer releases than 2.0-RC4

2011-05-31 Thread Geo Be
Hello Thierry, it works when I completely leave out any parameter to the Post annotation, but thats not quite the way it should be, I guess. I also tried to change the parameter type of my method to String processXml(Object xml) and directly put in the unencoded object. This turned out to

RE: Re: cannot post or put xml with newer releases than 2.0-RC4

2011-05-31 Thread Geo Be
Hello Thierry, thanks for your quick reply. Unfortunately, that did not solve the problem. Btw., xml is only a shorthand for value=xml, when your Annotation has only a single attribute (see attached code completion screenshot). content-type remains text/plain Georg.

Re: Re: cannot post or put xml with newer releases than 2.0-RC4

2011-05-31 Thread Thierry Boileau
Hi Georg, I get it. Actually, the client does not send an XML representation, but a text one (as shows the content type). I wonder how you generate the representation from register.processXml(registration). If your client side also relies on a Restlet client, you can send your memberDto directly

Re: IncompatibleClassChangeError with ConcurrentMap

2011-05-31 Thread Thierry Boileau
Hello Sebastian, I'm working on this issue, the fix should be available shortly. Best regards, Thierry Boileau Nobody got an idea? It's also odd that i can run the testGWTRestlet-2.0 project without problems. Maybe because of the launch-Script provided with it? -- View this message in

Re: IncompatibleClassChangeError with ConcurrentMap

2011-05-31 Thread Thierry Boileau
Hello Sebastian, the fix is available in the current trunk and in the snapshot. Thanks for reporting this issue. Best regards, Thierry Boileau Hello Sebastian, I'm working on this issue, the fix should be available shortly. Best regards, Thierry Boileau Nobody got an idea? It's also

Re: Transferring multiple files in single request

2011-05-31 Thread Thierry Boileau
Hello Lokendra, there is an RFE for that topic : http://restlet.tigris.org/issues/show_bug.cgi?id=71. We are missing some help. :) Best regards, Thierry Boileau Hi, On my server side, my @Post method returns a FileRepresentation of the file asked by the client. Is there a way to return

Re: Restlet 2.0 multiple get requests

2011-05-31 Thread Thierry Boileau
Hello, you can create the underlying Client and issue your requests : Client client = new Client(Protocol.HTTP); Request request = new Request(Method.GET, http://example.com/;); Response response = client.handle(request); // you can read the response's entity

RE: Re: Re: cannot post or put xml with newer releases than 2.0-RC4

2011-05-31 Thread Geo Be
Hi Thierry, I tried what you are proposing, but for some reasons that produced erroneous results: 1. though my @Post(xml) required an xml representation, I'm getting json (I just verified this with 2.0.7) which also generates a 415 exception 2. json Representation is decoded to a map