Title: Breakpoint condition fails with ObjectCollectedException · Issue #568 · microsoft/java-debug · GitHub
Open Graph Title: Breakpoint condition fails with ObjectCollectedException · Issue #568 · microsoft/java-debug
X Title: Breakpoint condition fails with ObjectCollectedException · Issue #568 · microsoft/java-debug
Description: In a function with 2nd parameter being a String name a conditional breakpoint on the first statement with name.contains("xyz") results in Breakpoint condition 'name.contains("xyz")' error: com.sun.jdi.ObjectCollectedException occurred in...
Open Graph Description: In a function with 2nd parameter being a String name a conditional breakpoint on the first statement with name.contains("xyz") results in Breakpoint condition 'name.contains("xyz")' error: com.sun....
X Description: In a function with 2nd parameter being a String name a conditional breakpoint on the first statement with name.contains("xyz") results in Breakpoint condition 'name.contains("xyz...
Opengraph URL: https://github.com/microsoft/java-debug/issues/568
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Breakpoint condition fails with ObjectCollectedException","articleBody":"In a [function](https://github.com/tonihele/OpenKeeper/blob/master/src/toniarts/openkeeper/tools/convert/conversion/task/ConvertModels.java#L184) with 2nd parameter being a `String name` a conditional breakpoint on the first statement with `name.contains(\"xyz\")` results in\r\n```\r\nBreakpoint condition 'name.contains(\"xyz\")' error: com.sun.jdi.ObjectCollectedException occurred invoking method.\r\n```\r\nThe expression does work on the same line in Debug Console.\r\nA BP with `!name.isEmpty()` does work.\r\n`.startsWith(\"xyz\")` also throws.\r\n\r\nThe Java LSP logs contain:\r\n```\r\ncom.microsoft.java.debug.core.adapter.handler.SetBreakpointsRequestHandler handleEvaluationResult\r\nSEVERE: [ConditionalBreakpoint]: com.sun.jdi.ObjectCollectedException occurred invoking method.\r\norg.eclipse.debug.core.DebugException: com.sun.jdi.ObjectCollectedException occurred invoking method.\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.invokeFailed(JDIThread.java:1257)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.invokeFailed(JDIThread.java:1226)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.invokeMethod(JDIThread.java:1026)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIObjectValue.sendMessage(JDIObjectValue.java:162)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.instructions.SendMessage.execute(SendMessage.java:60)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.Interpreter.execute(Interpreter.java:69)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable$1EvaluationRunnable.run(ASTEvaluationEngine.java:843)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:832)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:896)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:3490)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\r\nCaused by: com.sun.jdi.ObjectCollectedException\r\n\tat org.eclipse.jdi.internal.MirrorImpl.defaultReplyErrorHandler(MirrorImpl.java:294)\r\n\tat org.eclipse.jdi.internal.ObjectReferenceImpl.referenceType(ObjectReferenceImpl.java:530)\r\n\tat org.eclipse.jdi.internal.ObjectReferenceImpl.type(ObjectReferenceImpl.java:547)\r\n\tat org.eclipse.jdi.internal.ValueImpl.checkValue(ValueImpl.java:196)\r\n\tat org.eclipse.jdi.internal.ValueImpl.checkValues(ValueImpl.java:172)\r\n\tat org.eclipse.jdi.internal.ObjectReferenceImpl.invokeMethod(ObjectReferenceImpl.java:414)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.invokeMethod(JDIThread.java:1009)\r\n\t... 8 more\r\n\r\ncom.microsoft.java.debug.core.UsageDataSession recordResponse\r\nWARNING: abnormal response\r\n```\r\neclipse_adoptium-21-amd64-windows.2","author":{"url":"https://github.com/Trass3r","@type":"Person","name":"Trass3r"},"datePublished":"2024-09-03T20:06:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/568/java-debug/issues/568"}
| 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:c37f8d2a-a3a4-c805-1448-fce1a1013cdf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0CE:3381E4:23AA47A:322D24F:6970F5E6 |
| html-safe-nonce | ac98e2897a79e58386b79b7fc121e35ec0e4ca6fa7ff719ab3f2a18ac5a83fd8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMENFOjMzODFFNDoyM0FBNDdBOjMyMkQyNEY6Njk3MEY1RTYiLCJ2aXNpdG9yX2lkIjoiNDY2NTA1NzIyMDg0Njc0NTA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | db50462157469368d33cba8c69fde31df8addc65bafd05f754676b11df7ddb39 |
| hovercard-subject-tag | issue:2503690476 |
| 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/microsoft/java-debug/568/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd916ae3abbb2f57fef398b627af60e4333bd8cd5c1372f648c12f5d295d3ed3/microsoft/java-debug/issues/568 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd916ae3abbb2f57fef398b627af60e4333bd8cd5c1372f648c12f5d295d3ed3/microsoft/java-debug/issues/568 |
| og:image:alt | In a function with 2nd parameter being a String name a conditional breakpoint on the first statement with name.contains("xyz") results in Breakpoint condition 'name.contains("xyz")' error: com.sun.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Trass3r |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b239ebed690c3053869ff31a3b7597834c25673659d63e7b6fd6a9b5d7853de |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/java-debug git https://github.com/microsoft/java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102583752 |
| octolytics-dimension-repository_nwo | microsoft/java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102583752 |
| octolytics-dimension-repository_network_root_nwo | microsoft/java-debug |
| 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 | aeacfd55297f3de5395c83f200ac35d1f474115e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width