Skip to content

Missing ActionHandlers? modelserver-glspjava-emf-theia #58

@nestabentum

Description

@nestabentum

I am currently trying to run the modelserver-glspjava-emf-theia template. When opening the Theia Instance in the browser, the diagram for example.tasklist is not displayed.

Before opening the local Theia Instance I did the following:

  1. Run yarn build
  2. Run Launch TaskList Model Server [DEBUG]
  3. Run Launch TaskList GLSP Server [DEBUG]
  4. Run Launch TaskList Theia Backend [DEBUG] (External GLSP Server)
  5. Open localhost:3000

The Debug console for Launch TaskList Theia Backend [DEBUG] (External GLSP Server) then shows

2023-10-30T14:11:48.365Z root WARN 15:11:48 tasklist-diagram_0 GLSPActionDispatcher: Missing handler for action {
severity: 'ERROR',
message: '[GLSP-Server] Could not process message:ActionMessage [action=requestModel, clientId=tasklist-diagram:file://redacted/path/example.tasklist]',
details: 'java.lang.IllegalArgumentException: No handler registered for action: Action [kind=requestBounds]\n' +
'java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: No handler registered for action: Action [kind=requestBounds]\n' +
'\tat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)\n' +
'\tat java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:747)\n' +
'\tat java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)\n' +
'\tat java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2214)\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleAction(DefaultActionDispatcher.java:178)\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleNextAction(DefaultActionDispatcher.java:163)\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runThread(DefaultActionDispatcher.java:149)\n' +
'\tat java.base/java.lang.Thread.run(Thread.java:1623)\n' +
'Caused by: java.lang.IllegalArgumentException: No handler registered for action: Action [kind=requestBounds]\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runAction(DefaultActionDispatcher.java:193)\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleAction(DefaultActionDispatcher.java:176)\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.dispatch(DefaultActionDispatcher.java:105)\n' +
'\tat org.eclipse.glsp.server.actions.ActionDispatcher.lambda$dispatchAll$0(ActionDispatcher.java:51)\n' +
'\tat java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)\n' +
'\tat java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)\n' +
'\tat java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)\n' +
'\tat java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)\n' +
'\tat java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)\n' +
'\tat java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\n' +
'\tat java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)\n' +
'\tat org.eclipse.glsp.server.actions.ActionDispatcher.dispatchAll(ActionDispatcher.java:51)\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runAction(DefaultActionDispatcher.java:201)\n' +
'\tat org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleAction(DefaultActionDispatcher.java:176)\n' +
'\t... 3 more\n' +
'\tSuppressed: java.lang.IllegalArgumentException: No handler registered for action: Action [kind=setDirtyState]\n' +
'\t\t... 17 more\n',
kind: 'message',
receivedFromClient: false,
__receivedFromServer: true
}

I tried to pinpoint the source of this error but I could not make sense of it. Am I missing something when launching all components?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodelserverEMF.cloud Model Server GLSP Integration

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions