Skip to content

Conditional Breakpoint got error code in reply:504 #1250

Closed
microsoft/java-debug
#453

Description

!MESSAGE [ConditionalBreakpoint]: Got error code in reply:504
!STACK 1
org.eclipse.debug.core.DebugException: Got error code in reply:504
	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:920)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:3481)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: com.sun.jdi.InternalException: Got error code in reply:504
	at org.eclipse.jdi.internal.MirrorImpl.defaultReplyErrorHandler(MirrorImpl.java:302)
	at org.eclipse.jdi.internal.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:286)
	at com.microsoft.java.debug.core.adapter.StackFrameManager.lambda$reloadStackFrames$0(StackFrameManager.java:40)
	at java.base/java.util.HashMap.compute(HashMap.java:1316)
	at com.microsoft.java.debug.core.adapter.StackFrameManager.reloadStackFrames(StackFrameManager.java:35)
	at com.microsoft.java.debug.plugin.internal.eval.JdtEvaluationProvider$1.invokeComplete(JdtEvaluationProvider.java:320)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread.invokeMethod(JDIThread.java:1018)
	at org.eclipse.jdt.internal.debug.core.model.JDIObjectValue.sendMessage(JDIObjectValue.java:162)
	at org.eclipse.jdt.internal.debug.eval.ast.instructions.SendMessage.execute(SendMessage.java:60)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.Interpreter.execute(Interpreter.java:69)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable$1EvaluationRunnable.run(ASTEvaluationEngine.java:842)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:821)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:895)
	... 2 more
!SUBENTRY 1 org.eclipse.jdt.debug 4 0 2022-10-31 11:09:23.701
!MESSAGE Got error code in reply:504
!STACK 0
com.sun.jdi.InternalException: Got error code in reply:504
	at org.eclipse.jdi.internal.MirrorImpl.defaultReplyErrorHandler(MirrorImpl.java:302)
	at org.eclipse.jdi.internal.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:286)
	at com.microsoft.java.debug.core.adapter.StackFrameManager.lambda$reloadStackFrames$0(StackFrameManager.java:40)
	at java.base/java.util.HashMap.compute(HashMap.java:1316)
	at com.microsoft.java.debug.core.adapter.StackFrameManager.reloadStackFrames(StackFrameManager.java:35)
	at com.microsoft.java.debug.plugin.internal.eval.JdtEvaluationProvider$1.invokeComplete(JdtEvaluationProvider.java:320)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread.invokeMethod(JDIThread.java:1018)
	at org.eclipse.jdt.internal.debug.core.model.JDIObjectValue.sendMessage(JDIObjectValue.java:162)
	at org.eclipse.jdt.internal.debug.eval.ast.instructions.SendMessage.execute(SendMessage.java:60)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.Interpreter.execute(Interpreter.java:69)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable$1EvaluationRunnable.run(ASTEvaluationEngine.java:842)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:821)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:895)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:3481)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Activity

  1. testforstephen commented on Oct 31, 2022

    @testforstephen
    ContributorAuthor

    Reproduce steps:

    public class Demo {
        public static String getName(String value) {
            return value; // Add a conditional breakpoint with the expression value.equals("m2")
        }
    
        public static void main(String[] args) {
            call("me");
            System.out.println(getName("m2"));
        }
    
        public static void call(String value) {
            System.out.println(getName(value));
        }
    }

    Debug this program, it will get an error as follows.
    image

  2. exetroncorp commented on Mar 1, 2023

    @exetroncorp

    Hello i have got the same error with vscode debuger on local variable panel Failed to get variables. Reason: com.sun.jdi.InternalException: Got error code in reply:35.

    Any idea ? using java 17.0.6 and latest vscode and extension , simple hello world spring boot.

    image

    [Error - 2:00:36 PM] Mar 2, 2023, 2:00:36 PM [error response][variables]: Failed to get variables. Reason: com.sun.jdi.InternalException: Got error code in reply:34
    Failed to get variables. Reason: com.sun.jdi.InternalException: Got error code in reply:34
    com.microsoft.java.debug.core.DebugException: Failed to get variables. Reason: com.sun.jdi.InternalException: Got error code in reply:34
    at com.microsoft.java.debug.core.adapter.AdapterUtils.createCompletionException(AdapterUtils.java:266)
    at com.microsoft.java.debug.core.adapter.handler.VariablesRequestHandler.handle(VariablesRequestHandler.java:161)
    at com.microsoft.java.debug.core.adapter.DebugAdapter.lambda$dispatchRequest$0(DebugAdapter.java:93)
    at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
    at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309)
    at com.microsoft.java.debug.core.adapter.DebugAdapter.dispatchRequest(DebugAdapter.java:92)
    at com.microsoft.java.debug.core.adapter.ProtocolServer.dispatchRequest(ProtocolServer.java:118)
    at com.microsoft.java.debug.core.protocol.AbstractProtocolServer.lambda$new$0(AbstractProtocolServer.java:81)
    at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63)
    at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:201)
    at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
    at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
    at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
    Caused by: com.sun.jdi.InternalException: Got error code in reply:34
    at org.eclipse.jdi.internal.MirrorImpl.defaultReplyErrorHandler(MirrorImpl.java:315)
    at org.eclipse.jdi.internal.StackFrameImpl.getValues(StackFrameImpl.java:142)
    at com.microsoft.java.debug.core.adapter.variables.VariableUtils.lambda$listLocalVariables$4(VariableUtils.java:181)
    at com.microsoft.java.debug.core.adapter.variables.VariableUtils.bulkFetchValues(VariableUtils.java:457)
    at com.microsoft.java.debug.core.adapter.variables.VariableUtils.listLocalVariables(VariableUtils.java:180)
    at com.microsoft.java.debug.core.adapter.handler.VariablesRequestHandler.handle(VariablesRequestHandler.java:151)
    ... 16 more

  3. christianapopoola commented on Mar 29, 2023

    @christianapopoola

    I'm also having this issue, with the error. Any ideas on how to fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions