从ASP.net MVC发布曲棍球应用程序的自定义崩溃不起作用 [英] Post Custom Crashes from ASP.net mvc for hockey app doesn't work

查看:152
本文介绍了从ASP.net MVC发布曲棍球应用程序的自定义崩溃不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个使用ASP .net MVC构建的Web服务,现在我们希望将崩溃信息发送到Hockey应用程序,如他们所提到的那样. 网站

We are working on a web service built with ASP .net MVC and now we want to send the crashes to Hockey app as mentioned in their website we should use their public API. I have followed all the instructions but when I try to send the log file from curl for example I use the following code and send the log file

curl -F "log=@log.log" https://rink.hockeyapp.net/api/2/apps/MY_APPLICATION_ID/crashes/upload 

响应为

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>id</key>
    <string>0</string>
    <key>delay</key>
    <integer>0</integer>
    <key>status</key>
    <integer>0</integer>
  </dict>
</plist>

创建了状态代码201,但是当我在HockeyApp的帐户上打开应用程序的门户时,没有发现崩溃

with status code 201 created but when I open the portal of the application on my account at HockeyApp I found no crash

我的日志文件具有以下格式

My log file has the following format

Package: APPLICATION_PACKAGE_NAME
Version: MY_APPLICATION_VERSION
OS: 2.2
Manufacturer: HTC
Model: HTC Desire
Date: Sun Nov 27 17:35:08 GMT+01:00 2011
CrashReporter Key: 353391450fd2bd05c2753d23848042f3

java.lang.RuntimeException: Unable to start activity ComponentInfo{de.codenauts.hockeyapp/de.codenauts.hockeyapp.MainActivity}: java.lang.NullPointerException
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2787)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
  at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4066)
  at android.app.ActivityThread.access$2400(ActivityThread.java:135)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2140)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:144)
  at android.app.ActivityThread.main(ActivityThread.java:4937)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
  at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:112)
  at org.json.JSONTokener.nextValue(JSONTokener.java:90)
  at org.json.JSONArray.<init>(JSONArray.java:87)
  at org.json.JSONArray.<init>(JSONArray.java:103)
  at de.codenauts.hockeyapp.MainActivity.loadApps(MainActivity.java:137)
  at de.codenauts.hockeyapp.MainActivity.onCreate(MainActivity.java:66)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)

我的配置有任何错误吗? 有人将Hockey应用程序与ASP .net MVC集成吗?

is there any mistake in my configuration? does anybody integrate Hockey app with ASP .net MVC?

推荐答案

我已经联系了曲棍球支持团队,他们告诉我问题出在日志文件中的这一行

I have contacted the Hockey support team and they told me that the problem was with this line in the log file

Date: Sun Nov 27 17:35:08 GMT+01:00 2011

如果曲棍球应用是在相同的时间戳记中创建的,它将拒绝崩溃 所以当我更改日期字段时,问题就解决了

Hockey app will reject the crash if it is created in the same time stamp so just when I change the date field the problem has been solved

这篇关于从ASP.net MVC发布曲棍球应用程序的自定义崩溃不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆