无法使用移动 SDK 从 Android 与 Amazon SimpleDB 通信

发布于 2024-10-26 14:24:47 字数 1965 浏览 2 评论 0原文

我正在关注他们与 android SDK 一起分发的亚马逊示例。我在我的应用程序中做几乎完全相同的事情,但我收到以下异常:

I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
E/Guild::createMessageItem: (  967): java.net.UnknownHostException: sdb.us-west-1.amazonaws.com

这是我的请求:

I/com.amazonaws.request(  967): Sending Request: POST https://sdb.us-west-1.amazonaws.com / Parameters: (Attribute.3.Value: t9, Attribute.4.Name: created_by, SignatureMethod: asdedd, Attribute.5.Value: 2011-03-22 20:51:20, AWSAccessKeyId:<acccessid>, Attribute.1.Name: message_id, Attribute.3.Name: description, Timestamp: 2011-03-23T00:51:21.170Z, Signature: <securitycode>, Attribute.6.Name: modified, Attribute.2.Name: title, Attribute.2.Value: t3, Action: PutAttributes, ItemName: x1300841480654, DomainName: messages, Attribute.1.Value: x1300841480654, Attribute.6.Value: 2011-03-22 20:51:20, Version: 2009-04-15, SignatureVersion: 2, Attribute.5.Name: created, Attribute.4.Value: [email protected], ) 

有什么建议吗?

I am following amazon samples that they distributed with android SDK. I am doing almost exactly same thing in my app, but I am getting following exception:

I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
I/SSLSocketFactory(  967): Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@40062b40
W/HttpClient(  967): Unable to execute HTTP request: sdb.us-west-1.amazonaws.com
E/Guild::createMessageItem: (  967): java.net.UnknownHostException: sdb.us-west-1.amazonaws.com

Here is my request:

I/com.amazonaws.request(  967): Sending Request: POST https://sdb.us-west-1.amazonaws.com / Parameters: (Attribute.3.Value: t9, Attribute.4.Name: created_by, SignatureMethod: asdedd, Attribute.5.Value: 2011-03-22 20:51:20, AWSAccessKeyId:<acccessid>, Attribute.1.Name: message_id, Attribute.3.Name: description, Timestamp: 2011-03-23T00:51:21.170Z, Signature: <securitycode>, Attribute.6.Name: modified, Attribute.2.Name: title, Attribute.2.Value: t3, Action: PutAttributes, ItemName: x1300841480654, DomainName: messages, Attribute.1.Value: x1300841480654, Attribute.6.Value: 2011-03-22 20:51:20, Version: 2009-04-15, SignatureVersion: 2, Attribute.5.Name: created, Attribute.4.Value: [email protected], ) 

Any suggestions?

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

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

发布评论

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

评论(1

梦断已成空 2024-11-02 14:24:47

我想通了。这就是我在 AndroidManifest.xml 文件中缺少的内容:

<uses-permission android:name="android.permission.INTERNET"/> 

I figured it out. This is what I am missing, in AndroidManifest.xml file:

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