Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5973933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:52:14+00:00 2026-05-22T20:52:14+00:00

When trying to get some data on my android client from my webservice (running

  • 0

When trying to get some data on my android client from my webservice (running on app-engine) with this code

ClientResource cr = new ClientResource("https://myapp.appspot.com/restlet/service/");
IServiceResource res = cr.wrap(IServiceResource.class);
m_Services = res.getServices();

I get this error:

05-20 08:30:15.406: ERROR/AndroidRuntime(31767): Caused by: Communication Error (1001) - Could not change the mode after the initial handshake has begun.

i have the org.restlet.ext.ssl.jar for the https-support and i am using this line to add the client

Engine.getInstance().getRegisteredClients().add(new HttpsClientHelper(null));

this is the closest i have come to getting https:// calls to work since i moved up to restlet 2.1m4 (moved because i was in need of entityBuffering..)

Any ideas?
Any other information i need to share?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:52:15+00:00Added an answer on May 22, 2026 at 8:52 pm

    Got it working.
    Changed HttpClient to org.restlet.ext.net.

    On Android, you are told to do this to change the client

    Engine.getInstance().getRegisteredClients().add(new HttpClientHelper(null));
    

    However nothing changes by doing so, instead, i had success with

    Engine.getInstance().getRegisteredClients().clear();
    Engine.getInstance().getRegisteredClients().add(new HttpClientHelper(null));
    

    This solves the issu(be sure to have org.restlet.ext.ssl in your build path aswell).
    This also solves other issues such as the “Internal Connector Error (1002) – The calling thread timed out while waiting for a response to unblock it.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get some XML data with LINQ, but running into a
I'm trying to get some json data from a remote website. I run my
I'm trying to store in a database some GPS data that I get from
I'm trying to get some data from my database, and then pass it into
I am trying to get some data from page to page and then mail
I'm trying to get some code working that a previous developer has written. Yep,
I am trying to get some xpath from xsl variable using xsl ver 1.0
Ok, so I'm trying to get some UDP code working and I'm barely green
I'm trying to make an android app (I'm new in the Android programming world),
Im trying to get a byte[] from a base64Binary field in my android application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.