question

benoit-lacelle avatar image
benoit-lacelle asked

Another NPE in AmazonAd API

Hi, A user experienced a crash because of AmazonAd API. Here is the stask: 0 java.lang.RuntimeException: Unable to start activity ComponentInfo{blasd.wishset/com.amazon.device.ads.AdActivity}: java.lang.NullPointerException 1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1661) 2 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1677) 3 at android.app.ActivityThread.access$1500(ActivityThread.java:117) 4 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 5 at android.os.Handler.dispatchMessage(Handler.java:99) 6 at android.os.Looper.loop(Looper.java:130) 7 at android.app.ActivityThread.main(ActivityThread.java:3701) 8 at java.lang.reflect.Method.invokeNative(Native Method) 9 at java.lang.reflect.Method.invoke(Method.java:507) 10 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 12 at dalvik.system.NativeStart.main(Native Method) 13 Caused by: java.lang.NullPointerException 14 at java.lang.Class.classForName(Native Method) 15 at java.lang.Class.forName(Class.java:234) 16 at java.lang.Class.forName(Class.java:181) 17 at com.amazon.device.ads.AdActivity.createAdapter(SourceFile:43) 18 at com.amazon.device.ads.AdActivity.onCreate(SourceFile:29) 19 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1073) 20 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1625) 21 ... 11 more 22 java.lang.NullPointerException 23 at java.lang.Class.classForName(Native Method) 24 at java.lang.Class.forName(Class.java:234) 25 at java.lang.Class.forName(Class.java:181) 26 at com.amazon.device.ads.AdActivity.createAdapter(SourceFile:43) 27 at com.amazon.device.ads.AdActivity.onCreate(SourceFile:29) 28 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1073) 29 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1625) 30 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1677) 31 at android.app.ActivityThread.access$1500(ActivityThread.java:117) 32 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 33 at android.os.Handler.dispatchMessage(Handler.java:99) 34 at android.os.Looper.loop(Looper.java:130) 35 at android.app.ActivityThread.main(ActivityThread.java:3701) 36 at java.lang.reflect.Method.invokeNative(Native Method) 37 at java.lang.reflect.Method.invoke(Method.java:507) 38 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 39 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 40 at dalvik.system.NativeStart.main(Native Method) The user is under android 2.3.4 Best, Benoit
mobile ads
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Benoit, Noted. Are you using the latest version of Ad sdk?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Just to make sure, is it the same app you have reported here : https://forums.developer.amazon.com/forums/thread.jspa?threadID=1471&tstart=0
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

benoit-lacelle avatar image
benoit-lacelle answered
This issues happened on the version 1.21 of my app, while the referenced thread was on version 1.23 of my app. Both versions seems to be based on Amazon Ads 5.1.14 Message was edited by: benoit_lacelle
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Benoit, Thanks for the information. We are working actively on 2 issues you have reported in Amazon Mobile Ads. I will get back shortly.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Benoit, We need a little input from you. How frequently you are getting reported about this issue?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

benoit-lacelle avatar image
benoit-lacelle answered
Hello, It did not happen since 10 on the newer release. Maybe this has been fixed in the meantime. THanks
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Does your newer version contain the latest version of Ads sdk? Did you replace the ad library with the latest one when releasing the newer version?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

benoit-lacelle avatar image
benoit-lacelle answered
The newer version is based on Amazon Ads 5.1.40
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi, This issue is fixed in latest SDK.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.