Hi, just migrating an app from Flow 14 to 24.6 , I’m having an error with copilot, can you help?
Thanks
[http-nio-8080-exec-1] ERROR com.vaadin.copilot.ide.CopilotIDEPlugin - Unable to communicate with IDE plugin
java.io.IOException: Unexpected response (400) communicating with the IDE plugin:
at com.vaadin.copilot.ide.CopilotIDEPlugin.sendRestSync(CopilotIDEPlugin.java:342)
at com.vaadin.copilot.ide.CopilotIDEPlugin.send(CopilotIDEPlugin.java:323)
at com.vaadin.copilot.ide.CopilotIDEPlugin.getModulePaths(CopilotIDEPlugin.java:307)
at com.vaadin.copilot.JavaSourcePathDetector.detectSourceFoldersUsingIDEPlugin(JavaSourcePathDetector.java:83)
at com.vaadin.copilot.JavaSourcePathDetector.detectProjectPaths(JavaSourcePathDetector.java:72)
at com.vaadin.copilot.ProjectFileManager.getProjectPaths(ProjectFileManager.java:362)
at com.vaadin.copilot.ProjectFileManager.getSourceFolders(ProjectFileManager.java:348)
at com.vaadin.copilot.ProjectManager.getSourceFolders(ProjectManager.java:180)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.startSourceFileWatchers(SourceSyncChecker.java:67)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.(SourceSyncChecker.java:52)
at com.vaadin.copilot.CopilotSession.(CopilotSession.java:82)
at com.vaadin.copilot.Copilot.lambda$handleConnect$1(Copilot.java:43)
at java.base/java.util.Map.computeIfAbsent(Map.java:1066)
at java.base/java.util.Collections$SynchronizedMap.computeIfAbsent(Collections.java:2980)
at com.vaadin.copilot.Copilot.handleConnect(Copilot.java:41)
at com.vaadin.base.devserver.DebugWindowConnection.handleConnect(DebugWindowConnection.java:208)
at com.vaadin.base.devserver.DebugWindowConnection.onConnect(DebugWindowConnection.java:188)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$4(PushHandler.java:625)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$5(PushHandler.java:624)
at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:237)
at com.vaadin.flow.server.communication.PushHandler.onConnect(PushHandler.java:621)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onConnect(PushAtmosphereHandler.java:103)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:213)
at org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:254)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:947)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
Hi, 24.6 should work perfectly with IntelliJ plugin 1.4.3. One difference is that maybe application deployed on app container cannot do localhost rest requests directly - but that’s my blind guess.
the error I receive seems regarding the rest communication
[http-nio-8080-exec-4] ERROR com.vaadin.copilot.ide.CopilotIDEPlugin - Unable to communicate with IDE plugin
java.io.IOException: Unexpected response (400) communicating with the IDE plugin:
at com.vaadin.copilot.ide.CopilotIDEPlugin.sendRestSync(CopilotIDEPlugin.java:342)
at com.vaadin.copilot.ide.CopilotIDEPlugin.send(CopilotIDEPlugin.java:323)
at com.vaadin.copilot.ide.CopilotIDEPlugin.getModulePaths(CopilotIDEPlugin.java:307)
at com.vaadin.copilot.JavaSourcePathDetector.detectSourceFoldersUsingIDEPlugin(JavaSourcePathDetector.java:83)
at com.vaadin.copilot.JavaSourcePathDetector.detectProjectPaths(JavaSourcePathDetector.java:72)
at com.vaadin.copilot.ProjectFileManager.getProjectPaths(ProjectFileManager.java:362)
at com.vaadin.copilot.ProjectFileManager.getSourceFolders(ProjectFileManager.java:348)
at com.vaadin.copilot.ProjectManager.getSourceFolders(ProjectManager.java:180)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.startSourceFileWatchers(SourceSyncChecker.java:67)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.(SourceSyncChecker.java:52)
at com.vaadin.copilot.CopilotSession.(CopilotSession.java:82)
at com.vaadin.copilot.Copilot.lambda$handleConnect$1(Copilot.java:43)
at java.base/java.util.Map.computeIfAbsent(Map.java:1066)
at java.base/java.util.Collections$SynchronizedMap.computeIfAbsent(Collections.java:2980)
at com.vaadin.copilot.Copilot.handleConnect(Copilot.java:41)
at com.vaadin.base.devserver.DebugWindowConnection.handleConnect(DebugWindowConnection.java:208)
at com.vaadin.base.devserver.DebugWindowConnection.onConnect(DebugWindowConnection.java:188)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$4(PushHandler.java:625)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$5(PushHandler.java:624)
at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:237)
at com.vaadin.flow.server.communication.PushHandler.onConnect(PushHandler.java:621)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onConnect(PushAtmosphereHandler.java:103)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:213)
at org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:254)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:947)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
[http-nio-8080-exec-4] WARN org.atmosphere.websocket.DefaultWebSocketProcessor - Failed invoking AtmosphereFramework.doCometSupport()
java.lang.NullPointerException: Cannot invoke “elemental.json.JsonObject.getObject(String)” because “sourcePathResponse” is null
at com.vaadin.copilot.JavaSourcePathDetector.detectSourceFoldersUsingIDEPlugin(JavaSourcePathDetector.java:84)
at com.vaadin.copilot.JavaSourcePathDetector.detectProjectPaths(JavaSourcePathDetector.java:72)
at com.vaadin.copilot.ProjectFileManager.getProjectPaths(ProjectFileManager.java:362)
at com.vaadin.copilot.ProjectFileManager.getSourceFolders(ProjectFileManager.java:348)
at com.vaadin.copilot.ProjectManager.getSourceFolders(ProjectManager.java:180)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.startSourceFileWatchers(SourceSyncChecker.java:67)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.(SourceSyncChecker.java:52)
at com.vaadin.copilot.CopilotSession.(CopilotSession.java:82)
at com.vaadin.copilot.Copilot.lambda$handleConnect$1(Copilot.java:43)
at java.base/java.util.Map.computeIfAbsent(Map.java:1066)
at java.base/java.util.Collections$SynchronizedMap.computeIfAbsent(Collections.java:2980)
at com.vaadin.copilot.Copilot.handleConnect(Copilot.java:41)
at com.vaadin.base.devserver.DebugWindowConnection.handleConnect(DebugWindowConnection.java:208)
at com.vaadin.base.devserver.DebugWindowConnection.onConnect(DebugWindowConnection.java:188)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$4(PushHandler.java:625)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$5(PushHandler.java:624)
at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:237)
at com.vaadin.flow.server.communication.PushHandler.onConnect(PushHandler.java:621)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onConnect(PushAtmosphereHandler.java:103)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:213)
at org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:254)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:947)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
[http-nio-8080-exec-4] WARN org.atmosphere.websocket.protocol.SimpleHttpProtocol - java.lang.NullPointerException: Cannot invoke “elemental.json.JsonObject.getObject(String)” because “sourcePathResponse” is null. Unable to deliver the websocket messages to installed component. Status 500 Message Server Error
[http-nio-8080-exec-4] WARN org.atmosphere.websocket.DefaultWebSocketProcessor - Failed invoking AtmosphereFramework.doCometSupport()
java.lang.NullPointerException: Cannot invoke “com.vaadin.copilot.CopilotSession.handleMessage(String, elemental.json.JsonObject, com.vaadin.base.devserver.DevToolsInterface)” because the return value of “java.util.Map.get(Object)” is null
at com.vaadin.copilot.Copilot.handleMessage(Copilot.java:62)
at com.vaadin.base.devserver.DebugWindowConnection.onMessage(DebugWindowConnection.java:336)
at com.vaadin.flow.server.communication.PushHandler.handleDebugWindowMessage(PushHandler.java:670)
at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:237)
at com.vaadin.flow.server.communication.PushHandler.onMessage(PushHandler.java:646)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onMessage(PushAtmosphereHandler.java:90)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:79)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
at org.atmosphere.websocket.DefaultWebSocketProcessor.lambda$dispatch$2(DefaultWebSocketProcessor.java:326)
at org.atmosphere.util.VoidExecutorService.execute(VoidExecutorService.java:101)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:323)
at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:428)
at org.atmosphere.container.JSR356Endpoint.lambda$onOpen$2(JSR356Endpoint.java:261)
at org.apache.tomcat.websocket.WsFrameBase.sendMessageText(WsFrameBase.java:390)
at org.apache.tomcat.websocket.server.WsFrameServer.sendMessageText(WsFrameServer.java:130)
at org.apache.tomcat.websocket.WsFrameBase.processDataText(WsFrameBase.java:484)
at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:284)
at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:130)
at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:85)
at org.apache.tomcat.websocket.server.WsFrameServer.doOnDataAvailable(WsFrameServer.java:184)
at org.apache.tomcat.websocket.server.WsFrameServer.notifyDataAvailable(WsFrameServer.java:164)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(WsHttpUpgradeHandler.java:152)
at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(UpgradeProcessorInternal.java:60)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:57)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
[http-nio-8080-exec-4] WARN org.atmosphere.websocket.protocol.SimpleHttpProtocol - java.lang.NullPointerException: Cannot invoke “com.vaadin.copilot.CopilotSession.handleMessage(String, elemental.json.JsonObject, com.vaadin.base.devserver.DevToolsInterface)” because the return value of “java.util.Map.get(Object)” is null. Unable to deliver the websocket messages to installed component. Status 500 Message Server Error
[http-nio-8080-exec-4] ERROR com.vaadin.copilot.ide.CopilotIDEPlugin - Unable to communicate with IDE plugin
java.io.IOException: Unexpected response (400) communicating with the IDE plugin:
at com.vaadin.copilot.ide.CopilotIDEPlugin.sendRestSync(CopilotIDEPlugin.java:342)
at com.vaadin.copilot.ide.CopilotIDEPlugin.send(CopilotIDEPlugin.java:323)
at com.vaadin.copilot.ide.CopilotIDEPlugin.getModulePaths(CopilotIDEPlugin.java:307)
is an indication that something earlier on went wrong. The 400 response code is typically sent when the IntelliJ rest endpoint is flooded with more than ~30 requests per minute and a known cause for this is some unspecific problem in detecting the source folders for the project (also indicated by the error originating in getModulePaths.
To more easily figure out the source of the problem, the first exception would be useful to have, as it most likely is something else than only “bad request returned by the server”
[http-nio-8080-exec-8] ERROR com.vaadin.copilot.ide.CopilotIDEPlugin - Unable to communicate with IDE plugin
java.io.IOException: Unexpected response (400) communicating with the IDE plugin:
at com.vaadin.copilot.ide.CopilotIDEPlugin.sendRestSync(CopilotIDEPlugin.java:342)
at com.vaadin.copilot.ide.CopilotIDEPlugin.send(CopilotIDEPlugin.java:323)
at com.vaadin.copilot.ide.CopilotIDEPlugin.getModulePaths(CopilotIDEPlugin.java:307)
at com.vaadin.copilot.JavaSourcePathDetector.detectSourceFoldersUsingIDEPlugin(JavaSourcePathDetector.java:83)
at com.vaadin.copilot.JavaSourcePathDetector.detectProjectPaths(JavaSourcePathDetector.java:72)
at com.vaadin.copilot.ProjectFileManager.getProjectPaths(ProjectFileManager.java:362)
at com.vaadin.copilot.ProjectFileManager.getSourceFolders(ProjectFileManager.java:348)
at com.vaadin.copilot.ProjectManager.getSourceFolders(ProjectManager.java:180)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.startSourceFileWatchers(SourceSyncChecker.java:67)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.(SourceSyncChecker.java:52)
at com.vaadin.copilot.CopilotSession.(CopilotSession.java:82)
at com.vaadin.copilot.Copilot.lambda$handleConnect$1(Copilot.java:43)
at java.base/java.util.Map.computeIfAbsent(Map.java:1066)
at java.base/java.util.Collections$SynchronizedMap.computeIfAbsent(Collections.java:2980)
at com.vaadin.copilot.Copilot.handleConnect(Copilot.java:41)
at com.vaadin.base.devserver.DebugWindowConnection.handleConnect(DebugWindowConnection.java:208)
at com.vaadin.base.devserver.DebugWindowConnection.onConnect(DebugWindowConnection.java:188)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$4(PushHandler.java:625)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$5(PushHandler.java:624)
at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:237)
at com.vaadin.flow.server.communication.PushHandler.onConnect(PushHandler.java:621)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onConnect(PushAtmosphereHandler.java:103)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:213)
at org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:254)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:947)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
[http-nio-8080-exec-8] WARN org.atmosphere.websocket.DefaultWebSocketProcessor - Failed invoking AtmosphereFramework.doCometSupport()
java.lang.NullPointerException: Cannot invoke “elemental.json.JsonObject.getObject(String)” because “sourcePathResponse” is null
at com.vaadin.copilot.JavaSourcePathDetector.detectSourceFoldersUsingIDEPlugin(JavaSourcePathDetector.java:84)
at com.vaadin.copilot.JavaSourcePathDetector.detectProjectPaths(JavaSourcePathDetector.java:72)
at com.vaadin.copilot.ProjectFileManager.getProjectPaths(ProjectFileManager.java:362)
at com.vaadin.copilot.ProjectFileManager.getSourceFolders(ProjectFileManager.java:348)
at com.vaadin.copilot.ProjectManager.getSourceFolders(ProjectManager.java:180)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.startSourceFileWatchers(SourceSyncChecker.java:67)
at com.vaadin.copilot.javarewriter.SourceSyncChecker.(SourceSyncChecker.java:52)
at com.vaadin.copilot.CopilotSession.(CopilotSession.java:82)
at com.vaadin.copilot.Copilot.lambda$handleConnect$1(Copilot.java:43)
at java.base/java.util.Map.computeIfAbsent(Map.java:1066)
at java.base/java.util.Collections$SynchronizedMap.computeIfAbsent(Collections.java:2980)
at com.vaadin.copilot.Copilot.handleConnect(Copilot.java:41)
at com.vaadin.base.devserver.DebugWindowConnection.handleConnect(DebugWindowConnection.java:208)
at com.vaadin.base.devserver.DebugWindowConnection.onConnect(DebugWindowConnection.java:188)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$4(PushHandler.java:625)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$5(PushHandler.java:624)
at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:237)
at com.vaadin.flow.server.communication.PushHandler.onConnect(PushHandler.java:621)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onConnect(PushAtmosphereHandler.java:103)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:213)
at org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:254)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:947)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
[http-nio-8080-exec-8] WARN org.atmosphere.websocket.protocol.SimpleHttpProtocol - java.lang.NullPointerException: Cannot invoke “elemental.json.JsonObject.getObject(String)” because “sourcePathResponse” is null. Unable to deliver the websocket messages to installed component. Status 500 Message Server Error
[Thread-848] ERROR com.vaadin.copilot.ide.CopilotIDEPlugin - Unable to communicate with IDE plugin
java.io.IOException: Unexpected response (400) communicating with the IDE plugin:
at com.vaadin.copilot.ide.CopilotIDEPlugin.sendRestSync(CopilotIDEPlugin.java:342)
at com.vaadin.copilot.ide.CopilotIDEPlugin.send(CopilotIDEPlugin.java:323)
at com.vaadin.copilot.ide.CopilotIDEPlugin.getModulePaths(CopilotIDEPlugin.java:307)
at com.vaadin.copilot.JavaSourcePathDetector.detectSourceFoldersUsingIDEPlugin(JavaSourcePathDetector.java:83)
at com.vaadin.copilot.JavaSourcePathDetector.detectProjectPaths(JavaSourcePathDetector.java:72)
at com.vaadin.copilot.ProjectFileManager.getProjectPaths(ProjectFileManager.java:362)
at com.vaadin.copilot.ProjectFileManager.getSourceFolders(ProjectFileManager.java:348)
at com.vaadin.copilot.ProjectFileManager.getFileForClass(ProjectFileManager.java:327)
at com.vaadin.copilot.ProjectFileManager.getFileForClass(ProjectFileManager.java:311)
at com.vaadin.copilot.HotswapListener.lambda$anyClassInProject$1(HotswapListener.java:51)
at java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
at java.base/java.util.HashMap$KeySpliterator.tryAdvance(HashMap.java:1736)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:632)
at com.vaadin.copilot.HotswapListener.anyClassInProject(HotswapListener.java:50)
at com.vaadin.copilot.HotswapListener.onHotswapComplete(HotswapListener.java:27)
at com.vaadin.flow.hotswap.Hotswapper.onHotswapInternal(Hotswapper.java:273)
at com.vaadin.flow.hotswap.Hotswapper.onHotswap(Hotswapper.java:145)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.hotswap.agent.command.ReflectionCommand.doExecuteReflectionCommand(ReflectionCommand.java:207)
at org.hotswap.agent.command.ReflectionCommand.executeCommand(ReflectionCommand.java:168)
at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:43)
[http-nio-8080-exec-8] WARN org.atmosphere.websocket.DefaultWebSocketProcessor - Failed invoking AtmosphereFramework.doCometSupport()
java.lang.NullPointerException: Cannot invoke “com.vaadin.copilot.CopilotSession.handleMessage(String, elemental.json.JsonObject, com.vaadin.base.devserver.DevToolsInterface)” because the return value of “java.util.Map.get(Object)” is null
at com.vaadin.copilot.Copilot.handleMessage(Copilot.java:62)
at com.vaadin.base.devserver.DebugWindowConnection.onMessage(DebugWindowConnection.java:336)
at com.vaadin.flow.server.communication.PushHandler.handleDebugWindowMessage(PushHandler.java:670)
at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:237)
at com.vaadin.flow.server.communication.PushHandler.onMessage(PushHandler.java:646)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onMessage(PushAtmosphereHandler.java:90)
at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:79)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
at org.atmosphere.websocket.DefaultWebSocketProcessor.lambda$dispatch$2(DefaultWebSocketProcessor.java:326)
at org.atmosphere.util.VoidExecutorService.execute(VoidExecutorService.java:101)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:323)
at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:428)
at org.atmosphere.container.JSR356Endpoint.lambda$onOpen$2(JSR356Endpoint.java:261)
at org.apache.tomcat.websocket.WsFrameBase.sendMessageText(WsFrameBase.java:390)
at org.apache.tomcat.websocket.server.WsFrameServer.sendMessageText(WsFrameServer.java:130)
at org.apache.tomcat.websocket.WsFrameBase.processDataText(WsFrameBase.java:484)
at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:284)
at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:130)
at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:85)
at org.apache.tomcat.websocket.server.WsFrameServer.doOnDataAvailable(WsFrameServer.java:184)
at org.apache.tomcat.websocket.server.WsFrameServer.notifyDataAvailable(WsFrameServer.java:164)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(WsHttpUpgradeHandler.java:152)
at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(UpgradeProcessorInternal.java:60)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:57)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
[http-nio-8080-exec-8] WARN org.atmosphere.websocket.protocol.SimpleHttpProtocol - java.lang.NullPointerException: Cannot invoke “com.vaadin.copilot.CopilotSession.handleMessage(String, elemental.json.JsonObject, com.vaadin.base.devserver.DevToolsInterface)” because the return value of “java.util.Map.get(Object)” is null. Unable to deliver the websocket messages to installed component. Status 500 Message Server Error
[Thread-847] ERROR com.vaadin.copilot.ide.CopilotIDEPlugin - Unable to communicate with IDE plugin
java.io.IOException: Unexpected response (400) communicating with the IDE plugin:
at com.vaadin.copilot.ide.CopilotIDEPlugin.sendRestSync(CopilotIDEPlugin.java:342)
at com.vaadin.copilot.ide.CopilotIDEPlugin.send(CopilotIDEPlugin.java:323)
at com.vaadin.copilot.ide.CopilotIDEPlugin.getModulePaths(CopilotIDEPlugin.java:307)
at com.vaadin.copilot.JavaSourcePathDetector.detectSourceFoldersUsingIDEPlugin(JavaSourcePathDetector.java:83)
at com.vaadin.copilot.JavaSourcePathDetector.detectProjectPaths(JavaSourcePathDetector.java:72)
at com.vaadin.copilot.ProjectFileManager.getProjectPaths(ProjectFileManager.java:362)
at com.vaadin.copilot.ProjectFileManager.getSourceFolders(ProjectFileManager.java:348)
at com.vaadin.copilot.ProjectFileManager.getFileForClass(ProjectFileManager.java:327)
at com.vaadin.copilot.ProjectFileManager.getFileForClass(ProjectFileManager.java:311)
at com.vaadin.copilot.HotswapListener.lambda$anyClassInProject$1(HotswapListener.java:51)
at java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
at java.base/java.util.HashMap$KeySpliterator.tryAdvance(HashMap.java:1736)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:632)
at com.vaadin.copilot.HotswapListener.anyClassInProject(HotswapListener.java:50)
at com.vaadin.copilot.HotswapListener.onHotswapComplete(HotswapListener.java:27)
at com.vaadin.flow.hotswap.Hotswapper.onHotswapInternal(Hotswapper.java:273)
at com.vaadin.flow.hotswap.Hotswapper.onHotswap(Hotswapper.java:145)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.hotswap.agent.command.ReflectionCommand.doExecuteReflectionCommand(ReflectionCommand.java:207)
at org.hotswap.agent.command.ReflectionCommand.executeCommand(ReflectionCommand.java:168)
at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:43)