安卓中这个错误是什么?

发布于 2024-11-03 00:36:28 字数 2393 浏览 4 评论 0原文

android 中这个错误是什么?

04-20 20:49:56.827: ERROR/AndroidRuntime(826): FATAL EXCEPTION: AsyncTask #1
04-20 20:49:56.827: ERROR/AndroidRuntime(826): java.lang.RuntimeException: An error occured while executing doInBackground()
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.lang.Thread.run(Thread.java:1019)
04-20 20:49:56.827: ERROR/AndroidRuntime(826): Caused by: java.lang.IllegalArgumentException
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.parse(Date.java:436)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.<init>(Date.java:148)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter$Status.<init>(Twitter.java:614)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3073)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3003)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:60)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     ... 4 more

what is this error in android ??

04-20 20:49:56.827: ERROR/AndroidRuntime(826): FATAL EXCEPTION: AsyncTask #1
04-20 20:49:56.827: ERROR/AndroidRuntime(826): java.lang.RuntimeException: An error occured while executing doInBackground()
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.lang.Thread.run(Thread.java:1019)
04-20 20:49:56.827: ERROR/AndroidRuntime(826): Caused by: java.lang.IllegalArgumentException
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.parse(Date.java:436)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.<init>(Date.java:148)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter$Status.<init>(Twitter.java:614)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3073)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3003)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:60)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     ... 4 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

流云如水 2024-11-10 00:36:28

此堆栈跟踪意味着您在 Twitter.updateStatus 中传递了非法日期格式。

这些是重要的几行:

04-20 20:49:56.827: ERROR/AndroidRuntime(826): Caused by: java.lang.IllegalArgumentException
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.parse(Date.java:436)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.<init>(Date.java:148)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter$Status.<init>(Twitter.java:614)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3073)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3003)

如果您没有实例化该对象,那么它可能是 API 中的错误。根据此处的 API docco 判断: http://www.winterwell.com/software/jtwitter/javadoc / 看起来你只是将状态消息传递给 Twitter.updateStatus 所以我的猜测是 jtwitter API 错误...

This stack trace means that you've passed an illegal date format in Twitter.updateStatus.

These are the important lines:

04-20 20:49:56.827: ERROR/AndroidRuntime(826): Caused by: java.lang.IllegalArgumentException
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.parse(Date.java:436)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at java.util.Date.<init>(Date.java:148)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter$Status.<init>(Twitter.java:614)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3073)
04-20 20:49:56.827: ERROR/AndroidRuntime(826):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3003)

If you're not instantiating that object then it could be a bug in the API. Judging by the API docco here: http://www.winterwell.com/software/jtwitter/javadoc/ it looks like you just pass a status message through to Twitter.updateStatus so my guess would be a jtwitter API bug...

心的位置 2024-11-10 00:36:28

看起来 java.util.Date.parse() 正在使用无效值进行调用?

Looks like java.util.Date.parse() is being called with an invalid value?

随遇而安 2024-11-10 00:36:28

如果我能重现该异常,我想提供帮助。是有规律的还是间歇性的?
您使用的是哪个版本的 JTwitter?状态消息是什么?您使用哪个帐户造成了这种情况?

I'd like to help, if I can reproduce the exception. Is it regular or intermittent?
Which version of JTwitter are you using? And what's the status message & account that you use to cause this?

恋竹姑娘 2024-11-10 00:36:28

您是否正在连接 Twitter 本身或其他类似 Twitter 的服务?

Marakana 的 Android JTwitter 教程存在一个错误 - 它使用类似 Twitter 的服务,但日期格式不同。

不管怎样:最新版本的 JTwitter 已经修复了一些问题,以接受日期格式的更多变化。 http://www.winterwell.com/software/jtwitter.php

Are you connecting to Twitter itself or another Twitter-like service?

There was a bug relating to Marakana's Android JTwitter tutorial- it used a Twitter-like service, which had a different date format.

Anyway: the latest version of JTwitter has fixed things to accept more variations in date formatting. http://www.winterwell.com/software/jtwitter.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文