Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nestabentum opened this issue Oct 30, 2023 · 0 comments
Open

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

nestabentum opened this issue Oct 30, 2023 · 0 comments
Labels
bug Something isn't working modelserver EMF.cloud Model Server GLSP Integration

Comments

@nestabentum
Copy link

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?

@nestabentum nestabentum added bug Something isn't working modelserver EMF.cloud Model Server GLSP Integration labels Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working modelserver EMF.cloud Model Server GLSP Integration
Projects
None yet
Development

No branches or pull requests

1 participant