Title: List
Open Graph Title: List
X Title: List
Description: In Java I create an ArrayList of two Integers, e.g., List
Open Graph Description: In Java I create an ArrayList of two Integers, e.g., List
X Description: In Java I create an ArrayList of two Integers, e.g., List<Integer> data = new ArrayList<>(); data.add(1) data.add(2) which serializes to b'\xac\xed\x00\x05sr\x00\x13java.util.ArrayL...
Opengraph URL: https://github.com/vbuell/python-javaobj/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"List\u003cInteger\u003e RuntimeError: Unknown OpCode in the stream: 0x0 (at offset 0x8C)","articleBody":"In Java I create an ArrayList of two Integers, e.g.,\n\n``` java\nList\u003cInteger\u003e data = new ArrayList\u003c\u003e();\ndata.add(1)\ndata.add(2)\n```\n\nwhich serializes to\n\n```\nb'\\xac\\xed\\x00\\x05sr\\x00\\x13java.util.ArrayListx\\x81\\xd2\\x1d\\x99\\xc7a\\x9d\\x03\\x00\\x01I\\x00\\x04sizexp\\x00\\x00\\x00\\x02w\\x04\\x00\\x00\\x00\\x02sr\\x00\\x11java.lang.Integer\\x12\\xe2\\xa0\\xa4\\xf7\\x81\\x878\\x02\\x00\\x01I\\x00\\x05valuexr\\x00\\x10java.lang.Number\\x86\\xac\\x95\\x1d\\x0b\\x94\\xe0\\x8b\\x02\\x00\\x00xp\\x00\\x00\\x00\\x01sq\\x00~\\x00\\x02\\x00\\x00\\x00\\x02x'\n```\n\njavaobj.loads(bytes)\n\n```\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"javaobj.py\", line 190, in loads\n ignore_remaining_data=ignore_remaining_data)\n File \"javaobj.py\", line 171, in load\n return marshaller.readObject(ignore_remaining_data=ignore_remaining_data)\n File \"javaobj.py\", line 501, in readObject\n _, res = self._read_and_exec_opcode(ident=0)\n File \"javaobj.py\", line 568, in _read_and_exec_opcode\n return opid, handler(ident=ident)\n File \"javaobj.py\", line 833, in do_object\n opcode, obj = self._read_and_exec_opcode(ident=ident + 1)\n File \"javaobj.py\", line 564, in _read_and_exec_opcode\n .format(opid, position))\nRuntimeError: Unknown OpCode in the stream: 0x0 (at offset 0x8C)\n```\n\nIf I only have one integer in the list then it loads fine. I have the problem with Doubles as well as Integers. Strings seem to work fine though.\n","author":{"url":"https://github.com/skotep","@type":"Person","name":"skotep"},"datePublished":"2016-05-09T19:37:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/python-javaobj/issues/5"}
| 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:38aabd48-b18f-9d89-6ea2-3b453ab44e8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95B0:12343F:297450E:368F8D4:696B247B |
| html-safe-nonce | 5ed8312138637bbdb12a485d672e25328135d0069bca28f65d5759363937779e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUIwOjEyMzQzRjoyOTc0NTBFOjM2OEY4RDQ6Njk2QjI0N0IiLCJ2aXNpdG9yX2lkIjoiMjIwNzkyMTM0NzIyNjE4Mjc3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0c36fb2a9daa52297b9618b0b44becc167c2c6844f9e152a5f117b273f49116a |
| hovercard-subject-tag | issue:153852488 |
| 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/vbuell/python-javaobj/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c82feeb4edf23d283c100b24043eb225a3a8bd0761fb418b5bb836b37b50fc68/vbuell/python-javaobj/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c82feeb4edf23d283c100b24043eb225a3a8bd0761fb418b5bb836b37b50fc68/vbuell/python-javaobj/issues/5 |
| og:image:alt | In Java I create an ArrayList of two Integers, e.g., List |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skotep |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/vbuell/python-javaobj git https://github.com/vbuell/python-javaobj.git |
| octolytics-dimension-user_id | 82733 |
| octolytics-dimension-user_login | vbuell |
| octolytics-dimension-repository_id | 32634132 |
| octolytics-dimension-repository_nwo | vbuell/python-javaobj |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32634132 |
| octolytics-dimension-repository_network_root_nwo | vbuell/python-javaobj |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width