Title: Failed to get variables. Reason: com.sun.jdi.InvalidStackFrameException · Issue #767 · microsoft/vscode-java-debug · GitHub
Open Graph Title: Failed to get variables. Reason: com.sun.jdi.InvalidStackFrameException · Issue #767 · microsoft/vscode-java-debug
X Title: Failed to get variables. Reason: com.sun.jdi.InvalidStackFrameException · Issue #767 · microsoft/vscode-java-debug
Description: The locals are not loading in the debugger (in this case, not always). Environment Operating System: Win10 JDK version: Visual Studio Code version: 1.41.1 Java extension version: 0.55.1 Java Debugger extension version: 0.24.0 Steps To Re...
Open Graph Description: The locals are not loading in the debugger (in this case, not always). Environment Operating System: Win10 JDK version: Visual Studio Code version: 1.41.1 Java extension version: 0.55.1 Java Debugg...
X Description: The locals are not loading in the debugger (in this case, not always). Environment Operating System: Win10 JDK version: Visual Studio Code version: 1.41.1 Java extension version: 0.55.1 Java Debugg...
Opengraph URL: https://github.com/microsoft/vscode-java-debug/issues/767
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failed to get variables. Reason: com.sun.jdi.InvalidStackFrameException","articleBody":"The locals are not loading in the debugger (in this case, not always).\r\n\r\n##### Environment\r\n- Operating System: Win10\r\n- JDK version: \r\n- Visual Studio Code version: 1.41.1\r\n- Java extension version: 0.55.1\r\n- Java Debugger extension version: 0.24.0\r\n\r\n##### Steps To Reproduce\r\n\r\n[sample project reproducing the error](https://github.com/spottedmahn/experiments-2020/tree/master/failed-to-get-variables)\r\n\r\n##### demo of problem\r\n\r\n\r\n\r\n1. Debug the test\r\n1. Put a breakpoint on `when(restHighLevelClient.indexAsync(any(), any(), any()))`\r\n1. After the breakpoint is hit, enable Caught Exceptions\r\n1. F5\r\n1. Wait for the exception, inspect the debugger window\r\n\r\n[java-lang-server.log](https://github.com/microsoft/vscode-java-debug/files/4256577/java-lang-server.log)\r\n\r\n##### Current Result\r\n\r\n\r\n\r\n##### Expected Result\r\nVariables to load\r\n\r\n##### Additional Informations\r\n\r\n\r\n\r\n##### Exception from Java Server Log\r\n\r\n\u003e!ENTRY java-debug 4 0 2020-02-26 10:06:40.711\r\n!MESSAGE [error response][variables]: Failed to get variables. Reason: com.sun.jdi.InvalidStackFrameException\r\n!STACK 0\r\ncom.microsoft.java.debug.core.DebugException: Failed to get variables. Reason: com.sun.jdi.InvalidStackFrameException\r\n\tat com.microsoft.java.debug.core.adapter.AdapterUtils.createCompletionException(AdapterUtils.java:255)\r\n\tat com.microsoft.java.debug.core.adapter.handler.VariablesRequestHandler.handle(VariablesRequestHandler.java:118)\r\n\tat com.microsoft.java.debug.core.adapter.DebugAdapter.lambda$dispatchRequest$0(DebugAdapter.java:87)\r\n\tat java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106)\r\n\tat java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235)\r\n\tat com.microsoft.java.debug.core.adapter.DebugAdapter.dispatchRequest(DebugAdapter.java:86)\r\n\tat com.microsoft.java.debug.core.adapter.ProtocolServer.dispatchRequest(ProtocolServer.java:118)\r\n\tat com.microsoft.java.debug.core.protocol.AbstractProtocolServer.lambda$new$0(AbstractProtocolServer.java:78)\r\n\tat io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:60)\r\n\tat io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:200)\r\n\tat io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:252)\r\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:61)\r\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:52)\r\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\r\n\tat java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n\tat java.base/java.lang.Thread.run(Thread.java:834)\r\nCaused by: com.sun.jdi.InvalidStackFrameException\r\n\tat org.eclipse.jdi.internal.MirrorImpl.defaultReplyErrorHandler(MirrorImpl.java:294)\r\n\tat org.eclipse.jdi.internal.StackFrameImpl.getValues(StackFrameImpl.java:142)\r\n\tat org.eclipse.jdi.internal.StackFrameImpl.getValue(StackFrameImpl.java:78)\r\n\tat com.microsoft.java.debug.core.adapter.variables.VariableUtils.listLocalVariables(VariableUtils.java:153)\r\n\tat com.microsoft.java.debug.core.adapter.handler.VariablesRequestHandler.handle(VariablesRequestHandler.java:109)\r\n\t... 16 more\r\n","author":{"url":"https://github.com/spottedmahn","@type":"Person","name":"spottedmahn"},"datePublished":"2020-02-26T15:36:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/767/vscode-java-debug/issues/767"}
| 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:33acff79-6e92-fd3e-7334-4f9917e258ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9676:57A3F:1FC05D7:2A1012B:6A5B009F |
| html-safe-nonce | 09097dcdbb3da5a75509176fe1dea45dae02a7e461980231352e5ce77b43761c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Njc2OjU3QTNGOjFGQzA1RDc6MkExMDEyQjo2QTVCMDA5RiIsInZpc2l0b3JfaWQiOiI3ODUxOTc4ODI2NjAyOTA3MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f782273a1d5f3c78af0f60fbbb4c33784b91c1ddb6f22a3d3a0e23d8f09b52c |
| hovercard-subject-tag | issue:571472448 |
| 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/vscode-java-debug/767/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f9b09753d781a4189aced385280d448c0be1019c188ee0a8c78987e97e46f65/microsoft/vscode-java-debug/issues/767 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f9b09753d781a4189aced385280d448c0be1019c188ee0a8c78987e97e46f65/microsoft/vscode-java-debug/issues/767 |
| og:image:alt | The locals are not loading in the debugger (in this case, not always). Environment Operating System: Win10 JDK version: Visual Studio Code version: 1.41.1 Java extension version: 0.55.1 Java Debugg... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spottedmahn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-java-debug git https://github.com/microsoft/vscode-java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102584737 |
| octolytics-dimension-repository_nwo | microsoft/vscode-java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102584737 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width