我正在使用 bugsense 3.4jar。我有一个简单的测试代码来生成 NullPointerException。但是我看不到产生的崩溃,所以我寻找 eclipse 的 logcat,找到了这些日志:
08-05 16:30:03.967: W/BugSenseHandler(10490): Transmitting crash Exception No peer certificate
08-05 16:30:03.973: I/System.out(10490): close [socket][/0.0.0.0:49073]
08-05 16:30:03.974: W/BugSenseHandler(10490): Transmitting crash Exception No peer certificate
08-05 16:30:03.981: D/libc-netbsd(10490): getaddrinfo: bugsense.appspot.com return error = 0x8 >>
08-05 16:46:27.199: W/BugSenseHandler(10660): Transmitting crash Exception No peer certificate
我的代码:
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
BugSenseHandler.initAndStartSession(this, MYAPIKEY);
.......
try {
String i = null;
Log.e("test crashed report", i);
} catch (Exception e) {
// TODO: handle exception
BugSenseHandler.sendException(e);
}
谁来帮帮我?谢谢!