android中的achartengine无法正常工作

时间:2014-01-20 08:46:53

标签: android achartengine

我正在使用achartengine。我的代码没有错误但是当它启动时它会让我出现错误对话框并停止程序。

这是我的代码..

BuyersActivity.java活动类

public class BuyersActivity extends Activity {

    private static final String DEFAULT = "N/A";
    public String user_data="";
    public static DefaultHttpClient client;
    String[] info=new String[5];
    String performance_graph="";
    public final static String EXTRA_MESSAGE = "com.mobile.bidnemo.MESSAGE";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_buyers);

        Downloadbasic db=new Downloadbasic();
        db.execute();
    }//

    public void showGraph(View view){
    PieGraph pie=new PieGraph();
    Intent lineIntent = pie.getIntent(this);
    startActivity(lineIntent);
    }


others code....
}

用于创建饼图的PieGraph.java

public class PieGraph {

    public Intent getIntent(Context context) {

        int[] values = { 1, 2, 3, 4, 5 };
        CategorySeries series = new CategorySeries("Pie Graph");
        int k = 0;
        for (int value : values) {
            series.add("Section " + ++k, value);
        }

        int[] colors = new int[] { Color.BLUE, Color.GREEN, Color.MAGENTA, Color.YELLOW, Color.CYAN };

        DefaultRenderer renderer = new DefaultRenderer();
        for (int color : colors) {
            SimpleSeriesRenderer r = new SimpleSeriesRenderer();
            r.setColor(color);
            renderer.addSeriesRenderer(r);
        }
        renderer.setChartTitle("Pie Chart Demo");
        renderer.setChartTitleTextSize(7);
        renderer.setZoomButtonsVisible(true);

        Intent intent = ChartFactory.getPieChartIntent(context, series, renderer, "Pie");
        return intent;
    }
}

我的logcat在

之下
 01-20 14:07:31.968: D/dalvikvm(18410): GC_CONCURRENT freed 526K, 10%
 free 14475K/16071K, paused 14ms+13ms, total 47ms 01-20 14:07:31.968:
 D/StrictMode(18410): StrictMode policy violation:
 android.os.StrictMode$StrictModeNetworkViolation: policy=31
 violation=4 01-20 14:07:31.968: D/StrictMode(18410):   at
 android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1124)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84) 01-20
 14:07:31.968: D/StrictMode(18410):     at
 libcore.io.IoBridge.connectErrno(IoBridge.java:127) 01-20
 14:07:31.968: D/StrictMode(18410):     at
 libcore.io.IoBridge.connect(IoBridge.java:112) 01-20 14:07:31.968:
 D/StrictMode(18410):   at
 java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192) 01-20
 14:07:31.968: D/StrictMode(18410):     at
 java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459) 01-20
 14:07:31.968: D/StrictMode(18410):     at
 java.net.Socket.connect(Socket.java:842) 01-20 14:07:31.968:
 D/StrictMode(18410):   at
 org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:141)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:1)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 android.os.AsyncTask$2.call(AsyncTask.java:287) 01-20 14:07:31.968:
 D/StrictMode(18410):   at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 java.util.concurrent.FutureTask.run(FutureTask.java:137) 01-20
 14:07:31.968: D/StrictMode(18410):     at
 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 01-20
 14:07:31.968: D/StrictMode(18410):     at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
 01-20 14:07:31.968: D/StrictMode(18410):   at
 java.lang.Thread.run(Thread.java:856) 01-20 14:07:31.988:
 D/OpenGLRenderer(18410): Enabling debug mode 0 01-20 14:07:32.003:
 D/StrictMode(18410): StrictMode policy violation:
 android.os.StrictMode$StrictModeNetworkViolation: policy=31
 violation=4 01-20 14:07:32.003: D/StrictMode(18410):   at
 android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1124)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163) 01-20
 14:07:32.003: D/StrictMode(18410):     at
 libcore.io.IoBridge.recvfrom(IoBridge.java:513) 01-20 14:07:32.003:
 D/StrictMode(18410):   at
 java.net.PlainSocketImpl.read(PlainSocketImpl.java:488) 01-20
 14:07:32.003: D/StrictMode(18410):     at
 java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46) 01-20
 14:07:32.003: D/StrictMode(18410):     at
 java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:141)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:1)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 android.os.AsyncTask$2.call(AsyncTask.java:287) 01-20 14:07:32.003:
 D/StrictMode(18410):   at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 java.util.concurrent.FutureTask.run(FutureTask.java:137) 01-20
 14:07:32.003: D/StrictMode(18410):     at
 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 01-20
 14:07:32.003: D/StrictMode(18410):     at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
 01-20 14:07:32.003: D/StrictMode(18410):   at
 java.lang.Thread.run(Thread.java:856) 01-20 14:07:32.233:
 D/SensorManager(18410): unregisterListener:: Trklfufi 9
 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*eca(c(
 01-20 14:07:32.233: D/Sensors(18410): Remain listener = Sending ..
 normal delay 200ms 01-20 14:07:32.233: I/Sensors(18410): sendDelay ---
 200000000 01-20 14:07:32.233: D/SensorManager(18410): JNI - sendDelay
 01-20 14:07:32.233: I/SensorManager(18410): Set normal delay = true
 01-20 14:07:33.043: D/AndroidRuntime(18410): Shutting down VM 01-20
 14:07:33.043: W/dalvikvm(18410): threadid=1: thread exiting with
 uncaught exception (group=0x413072a0) 01-20 14:07:33.053:
 E/AndroidRuntime(18410): FATAL EXCEPTION: main 01-20 14:07:33.053:
 E/AndroidRuntime(18410): java.lang.IllegalStateException: Could not
 execute method of the activity 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   at
 android.view.View$1.onClick(View.java:3724) 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   at
 android.view.View.performClick(View.java:4261) 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   at
 android.view.View$PerformClick.run(View.java:17356) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 android.os.Handler.handleCallback(Handler.java:615) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 android.os.Handler.dispatchMessage(Handler.java:92) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 android.os.Looper.loop(Looper.java:137) 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   at
 android.app.ActivityThread.main(ActivityThread.java:4921) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 java.lang.reflect.Method.invokeNative(Native Method) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 java.lang.reflect.Method.invoke(Method.java:511) 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
 01-20 14:07:33.053: E/AndroidRuntime(18410):   at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 dalvik.system.NativeStart.main(Native Method) 01-20 14:07:33.053:
 E/AndroidRuntime(18410): Caused by:
 java.lang.reflect.InvocationTargetException 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   at
 java.lang.reflect.Method.invokeNative(Native Method) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 java.lang.reflect.Method.invoke(Method.java:511) 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   at
 android.view.View$1.onClick(View.java:3719) 01-20 14:07:33.053:
 E/AndroidRuntime(18410):   ... 11 more 01-20 14:07:33.053:
 E/AndroidRuntime(18410): Caused by: java.lang.NullPointerException
 01-20 14:07:33.053: E/AndroidRuntime(18410):   at
 android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
 01-20 14:07:33.053: E/AndroidRuntime(18410):   at
 android.app.Activity.startActivityForResult(Activity.java:3428) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 android.app.Activity.startActivityForResult(Activity.java:3389) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 android.app.Activity.startActivity(Activity.java:3599) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 android.app.Activity.startActivity(Activity.java:3567) 01-20
 14:07:33.053: E/AndroidRuntime(18410):     at
 com.mobile.bidnemo.BuyersActivity.showGraph(BuyersActivity.java:111)
 01-20 14:07:33.053: E/AndroidRuntime(18410):   ... 14 more 01-20
 14:07:43.153: I/Process(18410): Sending signal. PID: 18410 SIG: 9
 01-20 14:08:51.258: D/dalvikvm(18735): GC_FOR_ALLOC freed 71K, 9% free
 12333K/13511K, paused 31ms, total 31ms 01-20 14:08:51.358:
 E/SensorManager(18735): thread start 01-20 14:08:51.363:
 D/SensorManager(18735): registerListener :: handle = 0  name= K3DH
 Acceleration Sensor delay= 200000 Trklfufi 9
 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*ece,88
 01-20 14:08:51.388: D/dalvikvm(18735): GC_CONCURRENT freed 177K, 9%
 free 12639K/13831K, paused 2ms+2ms, total 16ms 01-20 14:08:51.428:
 D/SensorManager(18735): unregisterListener:: Trklfufi 9
 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*ece,88
 01-20 14:08:51.428: D/Sensors(18735): Remain listener = Sending ..
 normal delay 200ms 01-20 14:08:51.428: I/Sensors(18735): sendDelay ---
 200000000 01-20 14:08:51.428: D/SensorManager(18735): JNI - sendDelay
 01-20 14:08:51.428: I/SensorManager(18735): Set normal delay = true
 01-20 14:08:51.468: D/SensorManager(18735): registerListener :: handle
 = 0  name= K3DH Acceleration Sensor delay= 200000 Trklfufi 9 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*ece,88
 01-20 14:08:51.513: D/libEGL(18735): loaded
 /system/lib/egl/libEGL_mali.so 01-20 14:08:51.523: D/libEGL(18735):
 loaded /system/lib/egl/libGLESv1_CM_mali.so 01-20 14:08:51.528:
 D/libEGL(18735): loaded /system/lib/egl/libGLESv2_mali.so 01-20
 14:08:51.528: D/(18735): Device driver API match 01-20 14:08:51.528:
 D/(18735): Device driver API version: 10 01-20 14:08:51.528:
 D/(18735): User space API version: 10  01-20 14:08:51.528: D/(18735):
 mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Thu Oct 25 08:43:05 KST
 2012  01-20 14:08:51.568: D/OpenGLRenderer(18735): Enabling debug mode
 0 01-20 14:08:51.703: D/dalvikvm(18735): GC_FOR_ALLOC freed 139K, 9%
 free 12883K/14023K, paused 12ms, total 12ms 01-20 14:08:51.723:
 D/dalvikvm(18735): GC_FOR_ALLOC freed 164K, 10% free 13003K/14343K,
 paused 13ms, total 13ms 01-20 14:08:51.738: D/dalvikvm(18735):
 GC_FOR_ALLOC freed <1K, 9% free 13129K/14343K, paused 13ms, total 13ms
 01-20 14:08:51.758: D/dalvikvm(18735): GC_FOR_ALLOC freed 135K, 10%
 free 13250K/14599K, paused 11ms, total 11ms 01-20 14:08:51.758:
 I/dalvikvm-heap(18735): Grow heap (frag case) to 13.992MB for
 133336-byte allocation 01-20 14:08:51.773: D/dalvikvm(18735):
 GC_FOR_ALLOC freed <1K, 10% free 13380K/14791K, paused 11ms, total
 11ms 01-20 14:08:51.783: D/dalvikvm(18735): GC_FOR_ALLOC freed 0K, 10%
 free 13380K/14791K, paused 11ms, total 11ms 01-20 14:08:51.783:
 I/dalvikvm-heap(18735): Grow heap (frag case) to 14.218MB for
 237568-byte allocation 01-20 14:08:51.798: D/dalvikvm(18735):
 GC_FOR_ALLOC freed 0K, 10% free 13612K/15047K, paused 10ms, total 10ms
 01-20 14:08:51.808: D/dalvikvm(18735): GC_FOR_ALLOC freed 130K, 11%
 free 13484K/15047K, paused 11ms, total 11ms 01-20 14:08:51.808:
 I/dalvikvm-heap(18735): Grow heap (frag case) to 14.355MB for
 274976-byte allocation 01-20 14:08:51.828: D/dalvikvm(18735):
 GC_FOR_ALLOC freed <1K, 11% free 13752K/15367K, paused 10ms, total
 10ms 01-20 14:08:51.838: D/dalvikvm(18735): GC_FOR_ALLOC freed 0K, 11%
 free 13752K/15367K, paused 11ms, total 11ms 01-20 14:08:51.843:
 I/dalvikvm-heap(18735): Grow heap (frag case) to 14.822MB for
 489956-byte allocation 01-20 14:08:51.863: D/dalvikvm(18735):
 GC_CONCURRENT freed 0K, 11% free 14231K/15879K, paused 11ms+2ms, total
 22ms 01-20 14:08:51.888: D/dalvikvm(18735): GC_FOR_ALLOC freed 397K,
 11% free 14262K/15879K, paused 10ms, total 10ms 01-20 14:08:51.908:
 D/SensorManager(18735): unregisterListener:: Trklfufi 9
 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*ece,88
 01-20 14:08:51.908: D/Sensors(18735): Remain listener = Sending ..
 normal delay 200ms 01-20 14:08:51.908: I/Sensors(18735): sendDelay ---
 200000000 01-20 14:08:51.908: D/SensorManager(18735): JNI - sendDelay
 01-20 14:08:51.908: I/SensorManager(18735): Set normal delay = true
 01-20 14:08:51.938: D/StrictMode(18735): StrictMode policy violation:
 android.os.StrictMode$StrictModeNetworkViolation: policy=31
 violation=4 01-20 14:08:51.938: D/StrictMode(18735):   at
 android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1124)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84) 01-20
 14:08:51.938: D/StrictMode(18735):     at
 libcore.io.IoBridge.connectErrno(IoBridge.java:127) 01-20
 14:08:51.938: D/StrictMode(18735):     at
 libcore.io.IoBridge.connect(IoBridge.java:112) 01-20 14:08:51.938:
 D/StrictMode(18735):   at
 java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192) 01-20
 14:08:51.938: D/StrictMode(18735):     at
 java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459) 01-20
 14:08:51.938: D/StrictMode(18735):     at
 java.net.Socket.connect(Socket.java:842) 01-20 14:08:51.938:
 D/StrictMode(18735):   at
 org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:141)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:1)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 android.os.AsyncTask$2.call(AsyncTask.java:287) 01-20 14:08:51.938:
 D/StrictMode(18735):   at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 java.util.concurrent.FutureTask.run(FutureTask.java:137) 01-20
 14:08:51.938: D/StrictMode(18735):     at
 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 01-20
 14:08:51.938: D/StrictMode(18735):     at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
 01-20 14:08:51.938: D/StrictMode(18735):   at
 java.lang.Thread.run(Thread.java:856) 01-20 14:08:51.993:
 W/IInputConnectionWrapper(18735): showStatusIcon on inactive
 InputConnection 01-20 14:08:52.038: D/StrictMode(18735): StrictMode
 policy violation: android.os.StrictMode$StrictModeNetworkViolation:
 policy=31 violation=4 01-20 14:08:52.038: D/StrictMode(18735):     at
 android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1124)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163) 01-20
 14:08:52.038: D/StrictMode(18735):     at
 libcore.io.IoBridge.recvfrom(IoBridge.java:513) 01-20 14:08:52.038:
 D/StrictMode(18735):   at
 java.net.PlainSocketImpl.read(PlainSocketImpl.java:488) 01-20
 14:08:52.038: D/StrictMode(18735):     at
 java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46) 01-20
 14:08:52.038: D/StrictMode(18735):     at
 java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:141)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 com.mobile.bidnemo.BuyersActivity$Downloadbasic.doInBackground(BuyersActivity.java:1)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 android.os.AsyncTask$2.call(AsyncTask.java:287) 01-20 14:08:52.038:
 D/StrictMode(18735):   at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 java.util.concurrent.FutureTask.run(FutureTask.java:137) 01-20
 14:08:52.038: D/StrictMode(18735):     at
 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 01-20
 14:08:52.038: D/StrictMode(18735):     at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
 01-20 14:08:52.038: D/StrictMode(18735):   at
 java.lang.Thread.run(Thread.java:856) 01-20 14:09:01.053:
 D/dalvikvm(18735): GC_CONCURRENT freed 318K, 9% free 14553K/15879K,
 paused 12ms+23ms, total 57ms 01-20 14:09:03.288:
 D/AndroidRuntime(18735): Shutting down VM 01-20 14:09:03.298:
 W/dalvikvm(18735): threadid=1: thread exiting with uncaught exception
 (group=0x413072a0) 01-20 14:09:03.313: E/AndroidRuntime(18735): FATAL
 EXCEPTION: main 01-20 14:09:03.313: E/AndroidRuntime(18735):
 java.lang.IllegalStateException: Could not execute method of the
 activity 01-20 14:09:03.313: E/AndroidRuntime(18735):  at
 android.view.View$1.onClick(View.java:3724) 01-20 14:09:03.313:
 E/AndroidRuntime(18735):   at
 android.view.View.performClick(View.java:4261) 01-20 14:09:03.313:
 E/AndroidRuntime(18735):   at
 android.view.View$PerformClick.run(View.java:17356) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 android.os.Handler.handleCallback(Handler.java:615) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 android.os.Handler.dispatchMessage(Handler.java:92) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 android.os.Looper.loop(Looper.java:137) 01-20 14:09:03.313:
 E/AndroidRuntime(18735):   at
 android.app.ActivityThread.main(ActivityThread.java:4921) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 java.lang.reflect.Method.invokeNative(Native Method) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 java.lang.reflect.Method.invoke(Method.java:511) 01-20 14:09:03.313:
 E/AndroidRuntime(18735):   at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
 01-20 14:09:03.313: E/AndroidRuntime(18735):   at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 dalvik.system.NativeStart.main(Native Method) 01-20 14:09:03.313:
 E/AndroidRuntime(18735): Caused by:
 java.lang.reflect.InvocationTargetException 01-20 14:09:03.313:
 E/AndroidRuntime(18735):   at
 java.lang.reflect.Method.invokeNative(Native Method) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 java.lang.reflect.Method.invoke(Method.java:511) 01-20 14:09:03.313:
 E/AndroidRuntime(18735):   at
 android.view.View$1.onClick(View.java:3719) 01-20 14:09:03.313:
 E/AndroidRuntime(18735):   ... 11 more 01-20 14:09:03.313:
 E/AndroidRuntime(18735): Caused by: java.lang.NullPointerException
 01-20 14:09:03.313: E/AndroidRuntime(18735):   at
 android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
 01-20 14:09:03.313: E/AndroidRuntime(18735):   at
 android.app.Activity.startActivityForResult(Activity.java:3428) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 android.app.Activity.startActivityForResult(Activity.java:3389) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 android.app.Activity.startActivity(Activity.java:3599) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 android.app.Activity.startActivity(Activity.java:3567) 01-20
 14:09:03.313: E/AndroidRuntime(18735):     at
 com.mobile.bidnemo.BuyersActivity.showGraph(BuyersActivity.java:111)
 01-20 14:09:03.313: E/AndroidRuntime(18735):   ... 14 more 01-20
 14:09:27.243: I/Process(18735): Sending signal. PID: 18735 SIG: 9

0 个答案:

没有答案