Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting exception
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
yingwen  
View profile  
 More options Jun 22 2010, 5:02 pm
From: yingwen <yingwent...@gmail.com>
Date: Tue, 22 Jun 2010 14:02:14 -0700 (PDT)
Local: Tues, Jun 22 2010 5:02 pm
Subject: Getting exception
Hi Dave, thanks for the AAL. It is a great idea.

I was just started to try it but got this exception. My phone has
internet access. It is a dev phone though. Any idea?

06-22 13:58:09.279: ERROR/LicenseManagerImpl(4607): Error Validating
Purchase
        com.keyes.license.LicenseException:
com.keyes.license.LicenseException: 400 - HTTP Response: Bad Request
        at
com.keyes.license.LicenseManagerImpl.executeRawHttpQuery(LicenseManagerImpl .java:
202)
        at
com.keyes.license.LicenseManagerImpl.validatePurchaseAgainstAppStore(Licens eManagerImpl.java:
279)
        at com.keyes.license.LicenseManagerImpl.access
$1000(LicenseManagerImpl.java:77)
        at com.keyes.license.LicenseManagerImpl
$ValidateWithMarketAsyncTask.doInBackground(LicenseManagerImpl.java:
813)
        at com.keyes.license.LicenseManagerImpl
$ValidateWithMarketAsyncTask.doInBackground(LicenseManagerImpl.java:
759)
        at android.os.AsyncTask$2.call(AsyncTask.java:185)
        at java.util.concurrent.FutureTask
$Sync.innerRun(FutureTask.java:305)
        at java.util.concurrent.FutureTask.run(FutureTask.java:137)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1068)
        at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:561)
        at java.lang.Thread.run(Thread.java:1096)
        Caused by: com.keyes.license.LicenseException: 400 - HTTP
Response: Bad Request
        at
com.keyes.license.LicenseManagerImpl.executeRawHttpQuery(LicenseManagerImpl .java:
176)
        ... 10 more

The code is

        LicenseManager lLicMgr = new LicenseManager();
        lLicMgr.setValidationPolicy(2 /* max failures */,
                LicenseManager.FAILURE_BEHAVIOR_INVITE |
LicenseManager.FAILURE_BEHAVIOR_NAG,
                15000 /* time to display nag */);
        lLicMgr.checkLicense(this /* reference to your activity */,
true, new CheckLicenseCallback() {...} /* a simple callback*/ );


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Keyes  
View profile  
 More options Jun 22 2010, 5:07 pm
From: David Keyes <keyes...@gmail.com>
Date: Tue, 22 Jun 2010 17:07:08 -0400
Local: Tues, Jun 22 2010 5:07 pm
Subject: Re: Getting exception

This could likely be the result of you having a dev phone.  If the app is
"copy protected", dev phones can't download.  The general rule of thumb is
that if the phone that you are testing AAL on can "see" and purchase the app
in the market using the Android market app on your phone, then AAL should
work.

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yingwen  
View profile  
 More options Jun 22 2010, 5:19 pm
From: yingwen <yingwent...@gmail.com>
Date: Tue, 22 Jun 2010 14:19:25 -0700 (PDT)
Local: Tues, Jun 22 2010 5:19 pm
Subject: Re: Getting exception
Thanks for the quick response. I am actually running the AAL from my
own app. The app is not copy-protected on the market even it is a paid
app so my dev phone can see my app on the market. However I don't
think it should matter because I didn't purchase my own app but
installed it from the USB connection. So I can only explain it as my
dev phone is not authorized to access https://android.clients.google.com/market/api/ApiRequest.
Not quite sure though.

-yingwen

On Jun 22, 2:07 pm, David Keyes <keyes...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eddie  
View profile  
 More options Jul 16 2010, 4:26 am
From: Eddie <eddie....@gmail.com>
Date: Fri, 16 Jul 2010 01:26:29 -0700 (PDT)
Local: Fri, Jul 16 2010 4:26 am
Subject: Re: Getting exception
I'm also getting this same exception.

Yingwen -- did you resolve this issue?

Any ideas on why this is happening?

Thanks,

Eddie

On Jun 22, 2:19 pm, yingwen <yingwent...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cyku Media  
View profile  
 More options Jul 16 2010, 4:06 pm
From: Cyku Media <supp...@cyku.net>
Date: Fri, 16 Jul 2010 13:06:56 -0700 (PDT)
Local: Fri, Jul 16 2010 4:06 pm
Subject: Re: Getting exception

I getting a similar issue, with 400 - HTTP Response: Bad Response.
This only happens when the app has not been purchased, if it has been
purchased everything runs porperly.

logcat:

I/ActivityManager( 1106): Displayed activity
net.andirc.erismarketfixpaid/.ErisMarketFix: 1716 ms (total 144337 ms)
D/dalvikvm( 1605): GC_FOR_MALLOC freed 4017 objects / 302464 bytes in
57ms
E/x       ( 1605): Error Validating Purchase
E/x       ( 1605): com.keyes.license.LicenseException:
com.keyes.license.LicenseException: 400 - HTTP Response: Bad Request
E/x       ( 1605):      at x.a(Unknown Source)
E/x       ( 1605):      at x.b(Unknown Source)
E/x       ( 1605):      at x.a(Unknown Source)
E/x       ( 1605):      at h.a(Unknown Source)
E/x       ( 1605):      at h.doInBackground(Unknown Source)
E/x       ( 1605):      at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/x       ( 1605):      at java.util.concurrent.FutureTask
$Sync.innerRun(FutureTask.java:305)
E/x       ( 1605):      at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/x       ( 1605):      at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1068)
E/x       ( 1605):      at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:561)
E/x       ( 1605):      at java.lang.Thread.run(Thread.java:1096)
E/x       ( 1605): Caused by: com.keyes.license.LicenseException: 400
- HTTP Response: Bad Request
E/x       ( 1605):      ... 11 more

# cat com.keyes.license.prefs.xml  <-- from Device generating Error
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="com.keyes.license.welcome" value="true" />
</map>

and this is from a device that was able to do the purchase:
# cat com.keyes.license.prefs.xml
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<string name="com.keyes.license">B6A4E44DD1D60BC4C5AC9IA8DD477578</
string>
<long name="com.keyes.license.timeout" value="1279309304037" />
<int name="com.keyes.license.failureCount" value="0" />
<long name="com.keyes.license.lastLicenseCheckTime"
value="1279309303963" />
<boolean name="com.keyes.license.welcome" value="true" />
</map>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »