Title: java.lang.IllegalArgumentException: Bad position on Android 4.x · Issue #405 · msgpack/msgpack-java · GitHub
Open Graph Title: java.lang.IllegalArgumentException: Bad position on Android 4.x · Issue #405 · msgpack/msgpack-java
X Title: java.lang.IllegalArgumentException: Bad position on Android 4.x · Issue #405 · msgpack/msgpack-java
Description: simple packString causes exception on Android 4.x, Android 5.x and later works fine (MsgPack 0.8.11) String sampleText = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's stan...
Open Graph Description: simple packString causes exception on Android 4.x, Android 5.x and later works fine (MsgPack 0.8.11) String sampleText = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. ...
X Description: simple packString causes exception on Android 4.x, Android 5.x and later works fine (MsgPack 0.8.11) String sampleText = "Lorem Ipsum is simply dummy text of the printing and typesetting indus...
Opengraph URL: https://github.com/msgpack/msgpack-java/issues/405
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"java.lang.IllegalArgumentException: Bad position on Android 4.x","articleBody":"simple packString causes exception on Android 4.x, Android 5.x and later works fine (MsgPack 0.8.11)\r\n\r\n```\r\nString sampleText = \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\";\r\n Map\u003cString, String\u003e sampleMap = new HashMap\u003c\u003e();\r\n for(int i=0; i\u003c100; i++) {\r\n sampleMap.put(String.valueOf(i), sampleText);\r\n }\r\n ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n MessagePacker packer = MessagePack.newDefaultPacker(out);\r\n packer.packMapHeader(sampleMap.size());\r\n for (Map.Entry\u003cString, String\u003e entry : sampleMap.entrySet()) {\r\n packer.packString(entry.getKey());\r\n packer.packString(entry.getValue());\r\n }\r\n```\r\nException stackTrace:\r\n```\r\njava.lang.IllegalArgumentException: Bad position (limit 7621): -568\r\n\tat java.nio.Buffer.positionImpl(Buffer.java:364)\r\n\tat java.nio.Buffer.position(Buffer.java:358)\r\n\tat java.nio.charset.CharsetEncoderICU.setPosition(CharsetEncoderICU.java:249)\r\n\tat java.nio.charset.CharsetEncoderICU.implFlush(CharsetEncoderICU.java:159)\r\n\tat java.nio.charset.CharsetEncoder.flush(CharsetEncoder.java:526)\r\n\tat org.msgpack.core.MessagePacker.encodeStringToBufferAt(MessagePacker.java:490)\r\n\tat org.msgpack.core.MessagePacker.packString(MessagePacker.java:549)\r\n\t...\r\n```","author":{"url":"https://github.com/dmitrychistyakov","@type":"Person","name":"dmitrychistyakov"},"datePublished":"2016-12-19T10:55:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/405/msgpack-java/issues/405"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a4462a8-d7ba-23df-8012-470f49f7d36d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA34:3C08FE:F617A:1483A7:6A5589C9 |
| html-safe-nonce | 6e2b1e036dedc157489cca50afaadf5ff0f582ff184a179899b1deb1674de5cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTM0OjNDMDhGRTpGNjE3QToxNDgzQTc6NkE1NTg5QzkiLCJ2aXNpdG9yX2lkIjoiNzM0NzQxMDgyMDAyMzAyODE2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1cf3a0c863860b737a6089f27c1989d8ad4186c372c44c49c9f2ec4057d6eb8a |
| hovercard-subject-tag | issue:196384897 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/msgpack/msgpack-java/405/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2afe2ca65ad4cd3f564c1fb91122dd229cc7c505543d1625cee10fbdf9dadfe9/msgpack/msgpack-java/issues/405 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2afe2ca65ad4cd3f564c1fb91122dd229cc7c505543d1625cee10fbdf9dadfe9/msgpack/msgpack-java/issues/405 |
| og:image:alt | simple packString causes exception on Android 4.x, Android 5.x and later works fine (MsgPack 0.8.11) String sampleText = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dmitrychistyakov |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 1971346 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1971346 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3215163789b3dc58dba97bd78a30c20c949f477f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width