无法使用移动 SDK 从 Android 与 Amazon SimpleDB 通信
我正在关注他们与 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想通了。这就是我在 AndroidManifest.xml 文件中缺少的内容:
I figured it out. This is what I am missing, in AndroidManifest.xml file: