Note that there are some explanatory texts on larger screens.

plurals
  1. POGAE remote api: RemoteApiInstaller install always fail
    primarykey
    data
    text
    <p><a href="https://developers.google.com/appengine/docs/java/tools/remoteapi#Configuring_Remote_API_on_an_App_Engine_Client" rel="nofollow">GAE remote API for java</a> :Configuring Remote API on an App Engine Client</p> <pre><code>RemoteApiInsideAppEngineExample(String username, String password) throws IOException { // Authenticating with username and password is slow, so we'll do it // once during construction and then store the credentials for reuse. this.options = new RemoteApiOptions() .server("your_target_app_id.appspot.com", 443) .credentials(username, password); RemoteApiInstaller installer = new RemoteApiInstaller(); installer.install(options); try { // Update the options with reusable credentials so we can skip // authentication on subsequent calls. options.reuseCredentials(username, installer.serializeCredentials()); } finally { installer.uninstall(); } } </code></pre> <p>In my test it always throw exception:</p> <pre><code>java.lang.IllegalArgumentException: charset may not be null or empty at com.google.appengine.repackaged.org.apache.commons.httpclient.util.EncodingUtil.getString(Unknown Source) at com.google.appengine.repackaged.org.apache.commons.httpclient.util.EncodingUtil.getString(Unknown Source) at com.google.appengine.tools.remoteapi.AppEngineClient$Response.getBodyAsString(AppEngineClient.java:138) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.getAppIdFromServer(RemoteApiInstaller.java:318) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.loginImpl(RemoteApiInstaller.java:278) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.login(RemoteApiInstaller.java:239) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.install(RemoteApiInstaller.java:106) </code></pre> <p>.....</p> <p>I'm sure the username and password is admin one, I use GAE 1.7, Federated Login, High Replication Datastore.</p> <p>Any ideas? Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload