Using the latest version of all relevant libraries, I'm not able to 
reproduce this behaviour. Could you check the .jar files on your classpath, 
or the dependencies in your pom.xml (if using maven) to see if they're all 
updated?

Regards,

Nick
Cloud Platform Community Support

On Tuesday, April 19, 2016 at 1:33:48 AM UTC-4, Subharthi Chatterjee wrote:
>
> Hi Nick,
>
> After downloading the p12 file, I was trying with this piece of code, to 
> connect to remote_api, line 'remoteApiInstaller.install(remoteApiOptions);
> ' throws an 302 HttpResponseException
>
> PrivateKey privateKey = null;
>         try {
>
>              privateKey = SecurityUtils.loadPrivateKeyFromKeyStore(
> SecurityUtils.getPkcs12KeyStore(),
>                     
>  
> this.class.getClassLoader().getResourceAsStream("<APP_ID>-XXXXX.p12"),
>  "notasecret", "privatekey", "notasecret");
>
>         } catch (GeneralSecurityException e) {
>             e.printStackTrace();
>         } catch (IOException e) {
>             e.printStackTrace();
>         }
>         RemoteApiOptions remoteApiOptions = new RemoteApiOptions()
>                
>  .server("<APP_ID>.appspot.com", 
> 443).useServiceAccountCredential("<APP_ID>@appspot.gserviceaccount.com",
>  privateKey);
>         RemoteApiInstaller remoteApiInstaller = new RemoteApiInstaller();
>         try {
>             remoteApiInstaller.install(remoteApiOptions);
>         } catch (Exception ex) {
>             logger.error("Error occured..", ex);
>         }
>
>
> On Monday, April 18, 2016 at 9:31:21 PM UTC+5:30, Nick (Cloud Platform 
> Support) wrote:
>>
>> Hey Subharthi,
>>
>> Do you have code which can reliably reproduce the issue? This is 
>> necessary to report an issue, and while the correct place to do so is the 
>> Public 
>> Issue Tracker 
>> <http://code.google.com/p/google-cloud-platform/issues/list>, I'll be 
>> happy to take the report from this thread and create a Public Issue Tracker 
>> thread for you to follow once the behaviour has been successfully 
>> reproduced. 
>>  
>> So, feel free to post some code / a project archive which can reliably 
>> reproduce the issue, and I'll be happy to assist.
>>
>> Best wishes,
>>
>> Nick
>> Cloud Platform Community Support
>>
>> On Saturday, April 16, 2016 at 10:32:59 AM UTC-4, Subharthi Chatterjee 
>> wrote:
>>>
>>> Hey Nick,
>>>   Those Http libraries are internally used appengine, question is how do 
>>> we bypass them and do it through simple http connection?
>>>
>>> On Wednesday, April 13, 2016 at 11:12:04 PM UTC+5:30, Nick (Cloud 
>>> Platform Support) wrote:
>>>>
>>>> Hey Moshe, 
>>>>
>>>> Did you manage to take any action based on reading my prior comment?
>>>>
>>>> On Wednesday, April 13, 2016 at 4:23:42 AM UTC-4, Moshe Shaham wrote:
>>>>>
>>>>> I'm also having this issue
>>>>>
>>>>> On Wednesday, December 30, 2015 at 2:55:33 PM UTC+2, Manisha Awasthi 
>>>>> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have some code which was using clientLogin to access datastore with 
>>>>>> remote api. But , that method is going to be deprecated in January and 
>>>>>> suggests to use oauth2 credential with help of remoteapi.
>>>>>>
>>>>>> Rempte Api has a method useServiceAccountCredential(ServiceAccount, 
>>>>>> P12). When I am using this method, I get below error: 
>>>>>>
>>>>>> Error:
>>>>>> com.google.appengine.repackaged.com.google.api.client.http.
>>>>>> HttpResponseException: 302 Found
>>>>>>
>>>>>>
>>>>>> I am unable to resolve this error. Can someone please help me?
>>>>>> Below is my maven dependency to access remote api
>>>>>>
>>>>>> <dependency>
>>>>>>     <groupId>com.google.appengine</groupId>
>>>>>>     <artifactId>appengine-remote-api</artifactId>
>>>>>>     <version>1.9.30</version>
>>>>>> </dependency>
>>>>>>
>>>>>>
>>>>>>
>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7e3a9c95-951f-442e-8f84-8a7e53332141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to