What steps will reproduce the problem?
it can't load and show the ads. some days ago, it can show the admob, but now,
it show nothing.
What is the expected output? What do you see instead?
02-21 17:39:09.035: E/AdWhirl SDK(5113): Caught IOException in fetchConfig()
02-21 17:39:09.035: E/AdWhirl SDK(5113): java.net.SocketException: recvfrom
failed: ECONNRESET (Connection reset by peer)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:542)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
libcore.io.IoBridge.recvfrom(IoBridge.java:506)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInp
utBuffer.java:103)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInput
Buffer.java:191)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.
java:82)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:1
74)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(Abstract
HttpClientConnection.java:180)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultC
lientConnection.java:235)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(Abstra
ctClientConnAdapter.java:259)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecut
or.java:279)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:12
1)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirecto
r.java:428)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:5
55)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:4
87)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:4
65)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:232)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:376)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
ScheduledThreadPoolExecutor.java:150)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedul
edThreadPoolExecutor.java:264)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
java.lang.Thread.run(Thread.java:856)
02-21 17:39:09.035: E/AdWhirl SDK(5113): Caused by: libcore.io.ErrnoException:
recvfrom failed: ECONNRESET (Connection reset by peer)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
libcore.io.Posix.recvfromBytes(Native Method)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
libcore.io.Posix.recvfrom(Posix.java:131)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)
02-21 17:39:09.035: E/AdWhirl SDK(5113): at
libcore.io.IoBridge.recvfrom(IoBridge.java:503)
02-21 17:39:09.035: E/AdWhirl SDK(5113): ... 26 more
02-21 17:39:09.035: D/AdWhirl SDK(5113): Received jsonString: null
02-21 17:39:09.040: E/AdWhirl SDK(5113): Unable to parse response from JSON.
This may or may not be fatal.
02-21 17:39:09.040: E/AdWhirl SDK(5113): java.lang.NullPointerException
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
org.json.JSONTokener.nextValue(JSONTokener.java:94)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
org.json.JSONObject.<init>(JSONObject.java:154)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
org.json.JSONObject.<init>(JSONObject.java:171)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
com.adwhirl.AdWhirlManager.parseConfigurationString(AdWhirlManager.java:290)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:257)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:376)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
ScheduledThreadPoolExecutor.java:150)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedul
edThreadPoolExecutor.java:264)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-21 17:39:09.040: E/AdWhirl SDK(5113): at
java.lang.Thread.run(Thread.java:856)
What version of the product are you using? On what operating system?
samsung/ htc/ moto/ google nexs 2.3.3/4.0.3 4.0.1
Please provide any additional information below.
my code:
AdWhirlManager.setConfigExpireTimeout(1000 * 60 * 5);
// AdWhirlTargeting.setAge(12);
// AdWhirlTargeting.setGender(AdWhirlTargeting.Gender.MALE);
// AdWhirlTargeting.setKeywords("app");
// AdWhirlTargeting.setPostalCode("94123");
AdWhirlTargeting.setTestMode(false);
adWhirlLayout = new AdWhirlLayout(this,DataManager.ADWHIRL_KEY_ID);
RelativeLayout.LayoutParams layoutParams = new
RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
//最大广告区域的大小必须指定,否则的话,在使用house ads 时会全平显示。必须注意这点。
// 480/75是因为addmob要求必须这么大。其他的则没有这个要求,
int diWidth = 480;//320;
int diHeight = 75;//52;
int density = (int) getResources().getDisplayMetrics().density;
adWhirlLayout.setAdWhirlInterface(this);
adWhirlLayout.setMaxWidth((int)(diWidth * density));
adWhirlLayout.setMaxHeight((int)(diHeight * density));
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
RelativeLayout layout = (RelativeLayout)findViewById(R.id.root_view);
layout.setGravity(Gravity.CENTER_HORIZONTAL|Gravity.BOTTOM);
layout.addView(adWhirlLayout, layoutParams);
layout.invalidate();
Original issue reported on code.google.com by feitianl...@163.com on 21 Feb 2012 at 1:31
Original issue reported on code.google.com by
feitianl...@163.com
on 21 Feb 2012 at 1:31