Title: After fixing #60, I noticed that it fails with invalid references (in v2) · Issue #62 · tcalmant/python-javaobj · GitHub
Open Graph Title: After fixing #60, I noticed that it fails with invalid references (in v2) · Issue #62 · tcalmant/python-javaobj
X Title: After fixing #60, I noticed that it fails with invalid references (in v2) · Issue #62 · tcalmant/python-javaobj
Description: This is for javaobj.v2: For the zipfile, I refer to #60: https://github.com/user-attachments/files/20650125/github.zip It's the same file 2025-06-09 11:31:09.924 | DEBUG | Reading new object: handle 7e0066, classdesc [classdesc 0x7e002e:...
Open Graph Description: This is for javaobj.v2: For the zipfile, I refer to #60: https://github.com/user-attachments/files/20650125/github.zip It's the same file 2025-06-09 11:31:09.924 | DEBUG | Reading new object: handl...
X Description: This is for javaobj.v2: For the zipfile, I refer to #60: https://github.com/user-attachments/files/20650125/github.zip It's the same file 2025-06-09 11:31:09.924 | DEBUG | Reading new object: h...
Opengraph URL: https://github.com/tcalmant/python-javaobj/issues/62
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"After fixing #60, I noticed that it fails with invalid references (in v2)","articleBody":"This is for javaobj.v2:\n\nFor the zipfile, I refer to #60: https://github.com/user-attachments/files/20650125/github.zip\nIt's the same file\n\n```\n2025-06-09 11:31:09.924 | DEBUG | Reading new object: handle 7e0066, classdesc [classdesc 0x7e002e: name com.xk72.proxy.ssl.SSLExtension, uid 5472812825558780993]\n2025-06-09 11:31:09.925 | DEBUG | Done reading object handle 7e0066\n2025-06-09 11:31:09.925 | DEBUG | Reading new object: handle 7e0068, classdesc [classdesc 0x7e002e: name com.xk72.proxy.ssl.SSLExtension, uid 5472812825558780993]\n2025-06-09 11:31:09.926 | DEBUG | Done reading object handle 7e0068\n2025-06-09 11:31:09.927 | DEBUG | Reading new object: handle 7e006a, classdesc [classdesc 0x7e002e: name com.xk72.proxy.ssl.SSLExtension, uid 5472812825558780993]\n2025-06-09 11:31:09.928 | DEBUG | Done reading object handle 7e006a\n2025-06-09 11:31:09.929 | DEBUG | Reading new object: handle 7e006c, classdesc [classdesc 0x7e002e: name com.xk72.proxy.ssl.SSLExtension, uid 5472812825558780993]\n2025-06-09 11:31:09.929 | DEBUG | Done reading object handle 7e006c\n2025-06-09 11:31:09.930 | DEBUG | Done reading object handle 7e004b\n2025-06-09 11:31:09.931 | DEBUG | Reading new object: handle 7e0073, classdesc [classdesc 0x7e0071: name java.util.LinkedHashMap, uid 3801124242820219131]\n\n[..]\n\n2025-06-09 11:31:10.029 | DEBUG | Done reading object handle 7e0020\n2025-06-09 11:31:10.030 | DEBUG | Reading new object: handle 7e011e, classdesc [classdesc 0x7e0016: name com.xk72.charles.model.Transaction, uid -8299564089223892536]\n2025-06-09 11:31:10.030 | DEBUG | Error parsing session: Invalid reference handle: 7e006f\n2025-06-09 11:31:10.030 | DEBUG | Parse error: Invalid reference handle: 7e006f\n```\n\nThe weird thing is that the handles are all spaced out by 2: 7e0066 / ~68 / ~6a / ~6c (logically the next would be ~6e). so is there some issue with object counting?\n\nNot exactly a one-of-by, but I'm gessing it would need the hashmap at 7e0073 or so?\n\n\n\u003chr\u003e\n\n\nIn v1 I get:\n```\n2025-06-09 11:36:50.876 | DEBUG | ## New reference handle 0x7E006F: JavaArray -\u003e []\n2025-06-09 11:36:50.877 | DEBUG | size: 32\n2025-06-09 11:36:50.877 | DEBUG | * [ clientProposedSslSessionID: \u003cjavaobj:[B\u003e\n2025-06-09 11:36:50.878 | DEBUG | Reading field: Ljava/lang/String; - clientSslProtocol\n2025-06-09 11:36:50.879 | DEBUG | OpCode: 0x71 -- TC_REFERENCE (at offset 0x21A2)\n2025-06-09 11:36:50.880 | DEBUG | ## Reference handle: 0x7E006E\n\n[ .. ]\n\n2025-06-09 11:36:50.956 | DEBUG | objectAnnotation value: Server Settings\n2025-06-09 11:36:50.957 | DEBUG | OpCode: 0x74 -- TC_STRING (at offset 0x23A8)\n2025-06-09 11:36:50.957 | DEBUG | [string]\n2025-06-09 11:36:50.958 | DEBUG | ## New reference handle 0x7E007D: JavaString -\u003e 'SETTINGS_HEADER_TABLE_SIZE = 4096\\nSETTINGS_ENABLE_PUSH = 1\\nSETTINGS_MAX_CONCURRENT_STREAMS = 25\\nSETTINGS_INITIAL_WINDOW_SIZE = 33554432\\nSETTINGS_MAX_FRAME_SIZE = 18432\\nSETTINGS_MAX_HEADER_LIST_SIZE = unlimited\\n'\n2025-06-09 11:36:50.959 | DEBUG | objectAnnotation value: SETTINGS_HEADER_TABLE_SIZE = 4096\nSETTINGS_ENABLE_PUSH = 1\nSETTINGS_MAX_CONCURRENT_STREAMS = 25\nSETTINGS_INITIAL_WINDOW_SIZE = 33554432\nSETTINGS_MAX_FRAME_SIZE = 18432\nSETTINGS_MAX_HEADER_LIST_SIZE = unlimited\n\n2025-06-09 11:36:50.960 | DEBUG | OpCode: 0x78 -- TC_ENDBLOCKDATA (at offset 0x247D)\n2025-06-09 11:36:50.960 | DEBUG | objectAnnotation value: None\n2025-06-09 11:36:50.961 | DEBUG | java_object.annotations after: ['\\x00\\x00\\x00\\x08\\x00\\x00\\x00\\x05', 'Client Connection', '#1729414940', 'Server Connection', '#1051510635', 'Stream Id', '439', 'Client Settings', 'SETTINGS_HEADER_TABLE_SIZE = 65536\\nSETTINGS_ENABLE_PUSH = 0\\nSETTINGS_MAX_CONCURRENT_STREAMS = unlimited\\nSETTINGS_INITIAL_WINDOW_SIZE = 131072\\nSETTINGS_MAX_FRAME_SIZE = 16384\\nSETTINGS_MAX_HEADER_LIST_SIZE = unlimited\\n', 'Server Settings', 'SETTINGS_HEADER_TABLE_SIZE = 4096\\nSETTINGS_ENABLE_PUSH = 1\\nSETTINGS_MAX_CONCURRENT_STREAMS = 25\\nSETTINGS_INITIAL_WINDOW_SIZE = 33554432\\nSETTINGS_MAX_FRAME_SIZE = 18432\\nSETTINGS_MAX_HEADER_LIST_SIZE = unlimited\\n']\n2025-06-09 11:36:50.962 | DEBUG | Java object has extra loading capability.\n2025-06-09 11:36:50.962 | ERROR | ==Oops state dump=============\n```\n\nSo in v1 it can find the correct reference, not in v2. But in v1 it crashes because of some other stuff...","author":{"url":"https://github.com/svaningelgem","@type":"Person","name":"svaningelgem"},"datePublished":"2025-06-09T09:40:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/62/python-javaobj/issues/62"}
| 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:85dcd1f7-2457-f043-657c-a18f43345c46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B978:2ABCA7:608242:860647:696A78BF |
| html-safe-nonce | d30e61bdeff47d193e1cd5991ae52f3d0e682110e98f953fdae3e6dc0fb0c062 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTc4OjJBQkNBNzo2MDgyNDI6ODYwNjQ3OjY5NkE3OEJGIiwidmlzaXRvcl9pZCI6IjI0MDkxMDEyMzE3MzMyNDIwNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 54c14de8e3c3e4f4056a32ca59727c7c41fc0c1388d0917a290ef472251a4871 |
| hovercard-subject-tag | issue:3129761421 |
| 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/tcalmant/python-javaobj/62/issue_layout |
| twitter:image | https://opengraph.githubassets.com/188cec99390663f5d4c05a32c50d90a97c117720c02ee71aa50d8a6dfe58a912/tcalmant/python-javaobj/issues/62 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/188cec99390663f5d4c05a32c50d90a97c117720c02ee71aa50d8a6dfe58a912/tcalmant/python-javaobj/issues/62 |
| og:image:alt | This is for javaobj.v2: For the zipfile, I refer to #60: https://github.com/user-attachments/files/20650125/github.zip It's the same file 2025-06-09 11:31:09.924 | DEBUG | Reading new object: handl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | svaningelgem |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5b774e44f85c14a75886edd04ddda4e5a25ddebbb241bcbb590b08a3048730e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/tcalmant/python-javaobj git https://github.com/tcalmant/python-javaobj.git |
| octolytics-dimension-user_id | 1540582 |
| octolytics-dimension-user_login | tcalmant |
| octolytics-dimension-repository_id | 15333794 |
| octolytics-dimension-repository_nwo | tcalmant/python-javaobj |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15333794 |
| octolytics-dimension-repository_network_root_nwo | tcalmant/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 | cc5f4eee261b3601c1e98e217ceaf28508b9567e |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width