Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No suitable constructor found for type" exception while activating the license key #2134

Closed
ameshkov opened this issue Sep 23, 2018 · 1 comment
Assignees
Milestone

Comments

@ameshkov
Copy link
Member

ameshkov commented Sep 23, 2018

An error occurred while activating a license.

Customers:

  • 2000516
  • 2000594
  • 2000854
  • 2000052
org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.adguard.android.model.SubscriptionStatusResponse]: can not instantiate from JSON object (need to add/enable type information?)
 at [Source: java.io.StringReader@30c7c5e; line: 1, column: 146] (through reference chain: com.adguard.android.model.f["subscriptionStatus"])
	at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObjectUsingNonDefault(BeanDeserializer.java:746) ~[na:0.0]
	at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:683) ~[na:0.0]
	at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580) ~[na:0.0]
	at org.codehaus.jackson.map.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:299) ~[na:0.0]
	at org.codehaus.jackson.map.deser.SettableBeanProperty$FieldProperty.deserializeAndSet(SettableBeanProperty.java:579) ~[na:0.0]
	at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:697) ~[na:0.0]
	at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580) ~[na:0.0]
	at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732) ~[na:0.0]
	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1863) ~[na:0.0]
	at com.adguard.android.a.b.a(ServiceApiClient.java:235) ~[na:0.0]
	at com.adguard.android.service.i.a(ApplicationServiceImpl.java:189) ~[na:0.0]
	at com.adguard.android.service.license.b.a(AdguardLicenseServiceImpl.java:185) ~[na:0.0]
	at com.adguard.android.service.y.run(LongRunningTask.java:1059) ~[na:0.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) ~[na:0.0]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) ~[na:0.0]
	at java.lang.Thread.run(Thread.java:764) ~[na:0.0]
@ameshkov ameshkov added this to the 2.12 milestone Sep 23, 2018
@ameshkov ameshkov self-assigned this Sep 23, 2018
@ameshkov
Copy link
Member Author

Resolved in adguard-android/pull-requests/723

Testing instructions for QA

  1. Acquire a license key with an active subscription
  2. Activate AdGuard with this license key
  3. Expected: successful activation

Another test:

  1. Cancel the subscription
  2. Activate AdGuard with it again
  3. Expected: successful activation

@zebrum zebrum closed this as completed Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants