webely / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 1 forks source link

Keep getting "nextRation is null!" #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I can't get adWhirl to display any ads. I've successfully used adMob and wanted 
to use adWhirl. I've downloaded AdWhirl SDK 2.5.0 for Android, followed the 
steps. The AdWhirl layout is being displayed but it's all black and I keep 
getting "nextRation is null!" in my logs.

Original issue reported on code.google.com by marek.s...@gmail.com on 18 Jul 2010 at 11:23

GoogleCodeExporter commented 8 years ago
Here's the stack trace:

D/AdWhirl SDK(  322): Ration [key=a14b76e16b465a9, name=admob, 
nid=b5869ed7e54d4cc4a5505f19c14039f3, priority=1, type=1,
 weight=100.0]
I/dalvikvm(  322): Failed resolving Lcom/adwhirl/adapters/AdMobAdapter; 
interface 144 'Lcom/admob/android/ads/AdListener
;'
W/dalvikvm(  322): Link of class 'Lcom/adwhirl/adapters/AdMobAdapter;' failed
D/dalvikvm(  322): GC freed 3239 objects / 445808 bytes in 76ms
W/AdWhirl SDK(  322): Couldn't getNetworkAdapter():
W/AdWhirl SDK(  322): java.lang.ClassNotFoundException: 
com.adwhirl.adapters.AdMobAdapter
W/AdWhirl SDK(  322):   at java.lang.Class.classForName(Native Method)
W/AdWhirl SDK(  322):   at java.lang.Class.forName(Class.java:237)
W/AdWhirl SDK(  322):   at java.lang.Class.forName(Class.java:183)
W/AdWhirl SDK(  322):   at 
com.adwhirl.adapters.AdWhirlAdapter.getNetworkAdapter(AdWhirlAdapter.java:99)
W/AdWhirl SDK(  322):   at 
com.adwhirl.adapters.AdWhirlAdapter.getAdapter(AdWhirlAdapter.java:42)
W/AdWhirl SDK(  322):   at 
com.adwhirl.adapters.AdWhirlAdapter.handle(AdWhirlAdapter.java:129)
W/AdWhirl SDK(  322):   at 
com.adwhirl.AdWhirlLayout.handleAd(AdWhirlLayout.java:157)
W/AdWhirl SDK(  322):   at 
com.adwhirl.AdWhirlLayout.access$0(AdWhirlLayout.java:145)
W/AdWhirl SDK(  322):   at 
com.adwhirl.AdWhirlLayout$1.run(AdWhirlLayout.java:85)
W/AdWhirl SDK(  322):   at android.os.Handler.handleCallback(Handler.java:587)
W/AdWhirl SDK(  322):   at android.os.Handler.dispatchMessage(Handler.java:92)
W/AdWhirl SDK(  322):   at android.os.Looper.loop(Looper.java:123)
W/AdWhirl SDK(  322):   at 
android.app.ActivityThread.main(ActivityThread.java:4363)
W/AdWhirl SDK(  322):   at java.lang.reflect.Method.invokeNative(Native Method)
W/AdWhirl SDK(  322):   at java.lang.reflect.Method.invoke(Method.java:521)
W/AdWhirl SDK(  322):   at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
W/AdWhirl SDK(  322):   at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
W/AdWhirl SDK(  322):   at dalvik.system.NativeStart.main(Native Method)
W/AdWhirl SDK(  322): Caused by: java.lang.NoClassDefFoundError: 
com.adwhirl.adapters.AdMobAdapter
W/AdWhirl SDK(  322):   ... 18 more
W/AdWhirl SDK(  322): Caused by: java.lang.ClassNotFoundException: 
com.adwhirl.adapters.AdMobAdapter in loader dalvik.sy
stem.PathClassLoader@43d0b978
W/AdWhirl SDK(  322):   at 
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
W/AdWhirl SDK(  322):   at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
W/AdWhirl SDK(  322):   at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
W/AdWhirl SDK(  322):   ... 18 more
W/AdWhirl SDK(  322): Caught an exception in adapter:
W/AdWhirl SDK(  322): java.lang.Exception: Invalid adapter for ration: Ration 
[key=a14b76e16b465a9, name=admob, nid=b586
9ed7e54d4cc4a5505f19c14039f3, priority=1, type=1, weight=100.0]
W/AdWhirl SDK(  322):   at 
com.adwhirl.adapters.AdWhirlAdapter.handle(AdWhirlAdapter.java:135)
W/AdWhirl SDK(  322):   at 
com.adwhirl.AdWhirlLayout.handleAd(AdWhirlLayout.java:157)
W/AdWhirl SDK(  322):   at 
com.adwhirl.AdWhirlLayout.access$0(AdWhirlLayout.java:145)
W/AdWhirl SDK(  322):   at 
com.adwhirl.AdWhirlLayout$1.run(AdWhirlLayout.java:85)
W/AdWhirl SDK(  322):   at android.os.Handler.handleCallback(Handler.java:587)
W/AdWhirl SDK(  322):   at android.os.Handler.dispatchMessage(Handler.java:92)
W/AdWhirl SDK(  322):   at android.os.Looper.loop(Looper.java:123)
W/AdWhirl SDK(  322):   at 
android.app.ActivityThread.main(ActivityThread.java:4363)
W/AdWhirl SDK(  322):   at java.lang.reflect.Method.invokeNative(Native Method)
W/AdWhirl SDK(  322):   at java.lang.reflect.Method.invoke(Method.java:521)
W/AdWhirl SDK(  322):   at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
W/AdWhirl SDK(  322):   at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
W/AdWhirl SDK(  322):   at dalvik.system.NativeStart.main(Native Method)
E/AdWhirl SDK(  322): nextRation is null!
D/AdWhirl SDK(  322): Will call rotateAd() in 30 seconds

Original comment by marek.s...@gmail.com on 18 Jul 2010 at 12:02

GoogleCodeExporter commented 8 years ago
Issue solved by upgrading to the latest AdMob SDK.

Original comment by marek.s...@gmail.com on 18 Jul 2010 at 2:57

GoogleCodeExporter commented 8 years ago

Original comment by jpin...@google.com on 19 Jul 2010 at 6:44

GoogleCodeExporter commented 8 years ago
I have the same problem, but I think I'm using the latest version ob AdMob SDK. 
It is 4.0.4 and AdWhirl is from HG.

Original comment by adcommun...@gmail.com on 13 Apr 2011 at 7:15

GoogleCodeExporter commented 8 years ago
ok this is fixed, i didn't use the latest adwhirl jar but now i get
   Could not find com.google.ads.AdActivity, please make sure it is registered in AndroidManifest.xml.

Original comment by adcommun...@gmail.com on 13 Apr 2011 at 8:11

GoogleCodeExporter commented 8 years ago
Ok just to help all those with the same problem:
Its NOT 
<activity android:name="com.admob.android.ads.AdMobActivity" />
and NOT
<activity android:name="com.google.ads.AdMobActivity" />

it IS
<activity android:name="com.google.ads.AdActivity" />

what you have to add to the manifest, reading the error and not all the 
discussions on the internet is the solution.

Original comment by adcommun...@gmail.com on 13 Apr 2011 at 8:58

GoogleCodeExporter commented 8 years ago
Hi

I have solved this issue by adding line
AdWhirlManager.setConfigExpireTimeout(1000 * 60 * 5);
in the beginning of my application

Roman

Original comment by roman.bi...@gmail.com on 26 Sep 2011 at 8:34