{ "id": "83297", "key": "TIMOB-6411", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-11T22:33:31.000+0000", "created": "2011-12-01T12:53:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_network", "qe-testadded" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14462", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "84451", "key": "TIMOB-6973", "fields": { "summary": "Android: HTTPClient - Sending blobs as form data fails in 1.8.0.1", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-11T22:33:31.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Issue\r\n-----\r\nThe HTTPClient test case listed below throws a series of exceptions in the android log, citing missing libraries and constants for constructing the outgoing HTTP request. The exceptions *DO NOT* impact the functionality of HTTPClient, the call still works, it just throws a lot of ugly errors.\r\n\r\nh3. Test case \r\n-----\r\n\r\n{code:Javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tnavBarHidden: true,\r\n\texitOnClose: true\t\r\n});\r\n\r\nvar xhr = Titanium.Network.createHTTPClient();\r\nxhr.open('GET', 'http://www.google.com');\r\nxhr.send();\r\n\r\nwin.open();\r\n{code}\r\n\r\nh3. Log \r\n-----\r\n{code}\r\n12-01 15:43:07.359: ERROR/dalvikvm(564): Could not find class 'org.apache.http.entity.mime.content.StringBody', referenced from method ti.modules.titanium.network.TiHTTPClient.addPostData\r\n12-01 15:43:07.359: WARN/dalvikvm(564): VFY: unable to resolve new-instance 866 (Lorg/apache/http/entity/mime/content/StringBody;) in Lti/modules/titanium/network/TiHTTPClient;\r\n12-01 15:43:07.359: DEBUG/dalvikvm(564): VFY: replacing opcode 0x22 at 0x000a\r\n12-01 15:43:07.359: DEBUG/dalvikvm(564): VFY: dead code 0x000c-0014 in Lti/modules/titanium/network/TiHTTPClient;.addPostData (Ljava/lang/String;Ljava/lang/String;)V\r\n12-01 15:43:07.359: ERROR/dalvikvm(564): Could not find class 'org.apache.http.entity.mime.content.FileBody', referenced from method ti.modules.titanium.network.TiHTTPClient.addTitaniumFileAsPostData\r\n12-01 15:43:07.369: WARN/dalvikvm(564): VFY: unable to resolve new-instance 865 (Lorg/apache/http/entity/mime/content/FileBody;) in Lti/modules/titanium/network/TiHTTPClient;\r\n12-01 15:43:07.369: DEBUG/dalvikvm(564): VFY: replacing opcode 0x22 at 0x0008\r\n12-01 15:43:07.369: ERROR/dalvikvm(564): Could not find class 'org.apache.http.entity.mime.content.FileBody', referenced from method ti.modules.titanium.network.TiHTTPClient.addTitaniumFileAsPostData\r\n12-01 15:43:07.369: WARN/dalvikvm(564): VFY: unable to resolve new-instance 865 (Lorg/apache/http/entity/mime/content/FileBody;) in Lti/modules/titanium/network/TiHTTPClient;\r\n12-01 15:43:07.369: DEBUG/dalvikvm(564): VFY: replacing opcode 0x22 at 0x0062\r\n12-01 15:43:07.379: DEBUG/dalvikvm(564): VFY: dead code 0x000a-0026 in Lti/modules/titanium/network/TiHTTPClient;.addTitaniumFileAsPostData (Ljava/lang/String;Ljava/lang/Object;)I\r\n12-01 15:43:07.379: DEBUG/dalvikvm(564): VFY: dead code 0x0064-0070 in Lti/modules/titanium/network/TiHTTPClient;.addTitaniumFileAsPostData (Ljava/lang/String;Ljava/lang/Object;)I\r\n12-01 15:43:07.439: DEBUG/TiHttpClient(564): (KrollRuntimeThread) [1991,3653] Setting ready state to 1\r\n12-01 15:43:07.450: ERROR/dalvikvm(564): Could not find class 'org.apache.http.entity.mime.MultipartEntity', referenced from method ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run\r\n12-01 15:43:07.450: WARN/dalvikvm(564): VFY: unable to resolve new-instance 863 (Lorg/apache/http/entity/mime/MultipartEntity;) in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;\r\n12-01 15:43:07.450: DEBUG/dalvikvm(564): VFY: replacing opcode 0x22 at 0x00e4\r\n12-01 15:43:07.470: DEBUG/dalvikvm(564): VFY: dead code 0x00e6-016a in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;.run ()V\r\n12-01 15:43:07.470: DEBUG/dalvikvm(564): VFY: dead code 0x01ff-027d in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;.run ()V\r\n12-01 15:43:07.480: DEBUG/dalvikvm(564): VFY: dead code 0x0331-0346 in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;.run ()V\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: HTTPClient - send() creates benign error messages in log", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 1.8.0.1 (11/30/11 17:34 9871cdc...)\r\nPlatform & version: Android 2.2 emulator\r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio, build: 1.0.6.201110251616", "comment": { "comments": [ { "id": "177736", "author": { "name": "arskinner", "key": "arskinner", "displayName": "Andrew Skinner", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Due to the missing class org.apache.http.entity.mime.content.StringBody we are unable to POST files using the HTTPClient. This is critical for our app, and I would think a lot of others. Counter to the poster of the issue, this problem definitely DOES affect functionality of the HTTPClient.", "updateAuthor": { "name": "arskinner", "key": "arskinner", "displayName": "Andrew Skinner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-31T15:37:10.000+0000", "updated": "2011-12-31T15:37:10.000+0000" }, { "id": "178878", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved by [PR #1158|https://github.com/appcelerator/titanium_mobile/pull/1158].", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T10:18:44.000+0000", "updated": "2012-01-11T10:18:44.000+0000" }, { "id": "179209", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120112153134\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201122152\r\nDevice: Droid 3 (2.3.4)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T11:29:40.000+0000", "updated": "2012-01-13T11:29:40.000+0000" }, { "id": "182537", "author": { "name": "bharatdipu", "key": "bharatdipu", "displayName": "Bharat Bhushan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am also facing the same issue............. \r\n\r\nFetching \"app.js\" with Fastdev...\r\nD/dalvikvm( 359): GREF has increased to 201\r\nE/dalvikvm( 359): Could not find class 'org.apache.http.entity.mime.content.StringBody', referenced from method ti.modules.titanium.network.TiHTTPClient.addPostData\r\nW/dalvikvm( 359): VFY: unable to resolve new-instance 695 (Lorg/apache/http/entity/mime/content/StringBody;) in Lti/modules/titanium/network/TiHTTPClient;\r\nD/dalvikvm( 359): VFY: replacing opcode 0x22 at 0x000a\r\nD/dalvikvm( 359): VFY: dead code 0x000c-0014 in Lti/modules/titanium/network/TiHTTPClient;.addPostData (Ljava/lang/String;Ljava/lang/String;)V\r\nE/dalvikvm( 359): Could not find class 'org.apache.http.entity.mime.content.FileBody', referenced from method ti.modules.titanium.network.TiHTTPClient.addTitaniumFileAsPostData\r\nW/dalvikvm( 359): VFY: unable to resolve new-instance 694 (Lorg/apache/http/entity/mime/content/FileBody;) in Lti/modules/titanium/network/TiHTTPClient;\r\nD/dalvikvm( 359): VFY: replacing opcode 0x22 at 0x0008\r\nE/dalvikvm( 359): Could not find class 'org.apache.http.entity.mime.content.FileBody', referenced from method ti.modules.titanium.network.TiHTTPClient.addTitaniumFileAsPostData\r\nW/dalvikvm( 359): VFY: unable to resolve new-instance 694 (Lorg/apache/http/entity/mime/content/FileBody;) in Lti/modules/titanium/network/TiHTTPClient;\r\nD/dalvikvm( 359): VFY: replacing opcode 0x22 at 0x0062\r\nD/dalvikvm( 359): VFY: dead code 0x000a-0026 in Lti/modules/titanium/network/TiHTTPClient;.addTitaniumFileAsPostData (Ljava/lang/String;Ljava/lang/Object;)I\r\nD/dalvikvm( 359): VFY: dead code 0x0064-0070 in Lti/modules/titanium/network/TiHTTPClient;.addTitaniumFileAsPostData (Ljava/lang/String;Ljava/lang/Object;)I\r\nD/TiHttpClient( 359): (KrollRuntimeThread) [449,2153] Setting ready state to 1\r\nE/dalvikvm( 359): Could not find class 'org.apache.http.entity.mime.MultipartEntity', referenced from method ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run\r\nW/dalvikvm( 359): VFY: unable to resolve new-instance 692 (Lorg/apache/http/entity/mime/MultipartEntity;) in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;\r\nD/dalvikvm( 359): VFY: replacing opcode 0x22 at 0x00d0\r\nD/dalvikvm( 359): VFY: dead code 0x00d2-0152 in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;.run ()V\r\nD/dalvikvm( 359): VFY: dead code 0x01e1-025a in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;.run ()V\r\nD/dalvikvm( 359): VFY: dead code 0x0301-0314 in Lti/modules/titanium/network/TiHTTPClient$ClientRunnable;.run ()V\r\nD/dalvikvm( 120): GREF has increased to 201\r\nI/ActivityManager( 62): Starting: Intent { cmp=com.appcelerator.com/ti.modules.titanium.ui.TiTabActivity (has extras) } from pid 359", "updateAuthor": { "name": "bharatdipu", "key": "bharatdipu", "displayName": "Bharat Bhushan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T00:34:28.000+0000", "updated": "2012-02-09T00:34:28.000+0000" }, { "id": "182577", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bharat - Do you see these messages even with the latest master CI build?", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T10:21:09.000+0000", "updated": "2012-02-09T10:21:09.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }