Uploaded image for project: 'Teiid Tools'
  1. Teiid Tools
  2. TEIIDTOOLS-994

IllegalStateException on dv language server publishDiagnostics

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Q220
    • Component/s: teiid-syndesis
    • Labels:
      None
    • Sprint:
      DV Sprint 63
    • Story Points:
      2
    • Steps to Reproduce:
      Hide

      Edit a view's DDL, change some names, add some invalid keywords to generate error diagnostics, then check the DV pod log in your console.

      Show
      Edit a view's DDL, change some names, add some invalid keywords to generate error diagnostics, then check the DV pod log in your console.

      Description

      The DdlDiagnostics.java class analyzes validity of DV DDL/SQL and publishes it to the registered language client via an async() call.

      Currently some of the calls are logging the following warning of an IllegalStateException

      <code>
      16:33:53.447 [http-nio-8080-exec-1] WARN o.e.lsp4j.jsonrpc.RemoteEndpoint - Unmatched cancel notification for request id 37
      16:33:54.327 [Thread-79] WARN o.e.lsp4j.jsonrpc.RemoteEndpoint - Failed to send notification message.
      java.lang.IllegalStateException: The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method
      at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1234)
      at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.textStart(WsRemoteEndpointImplBase.java:1196)
      at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendStringByCompletion(WsRemoteEndpointImplBase.java:209)
      at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendStringByFuture(WsRemoteEndpointImplBase.java:197)
      at org.apache.tomcat.websocket.WsRemoteEndpointAsync.sendText(WsRemoteEndpointAsync.java:53)
      at org.eclipse.lsp4j.websocket.WebSocketMessageConsumer.sendMessage(WebSocketMessageConsumer.java:57)
      at org.eclipse.lsp4j.websocket.WebSocketMessageConsumer.consume(WebSocketMessageConsumer.java:47)
      at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.notify(RemoteEndpoint.java:126)
      at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:88)
      at com.sun.proxy.$Proxy224.publishDiagnostics(Unknown Source)
      at io.syndesis.dv.lsp.diagnostics.DdlDiagnostics.lambda$doAsyncPublishDiagnostics$0(DdlDiagnostics.java:76)
      at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
      at java.lang.Thread.run(Thread.java:748)
      </code>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                blafond Barry LaFond
                Reporter:
                blafond Barry LaFond
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours Time Not Required
                  3h