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

[Error report] java.lang.Throwable: Project location does not match any open project #241

Open
ado2000 opened this issue Dec 31, 2024 · 2 comments

Comments

@ado2000
Copy link

ado2000 commented Dec 31, 2024

Plugin version: 1.4.3
IDE version: IntelliJ IDEA 2024.3.1.1
OS: Mac OS X

Stacktrace:

java.lang.Throwable: Project location does not match any open project
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
	at com.vaadin.plugin.copilot.service.CopilotRestService.execute(CopilotRestService.kt:48)
	at org.jetbrains.ide.RestService.process(RestService.kt:230)
	at org.jetbrains.io.DelegatingHttpRequestHandler.process$checkAndProcess(DelegatingHttpRequestHandler.kt:22)
	at org.jetbrains.io.DelegatingHttpRequestHandler.process$lambda$0(DelegatingHttpRequestHandler.kt:36)
	at org.jetbrains.io.DelegatingHttpRequestHandler.process$lambda$1(DelegatingHttpRequestHandler.kt:35)
	at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.findFirstSafe$intellij_platform_extensions(ExtensionProcessingHelper.kt:27)
	at com.intellij.openapi.extensions.ExtensionPointName.findFirstSafe(ExtensionPointName.kt:66)
	at org.jetbrains.io.DelegatingHttpRequestHandler.process(DelegatingHttpRequestHandler.kt:35)
	at org.jetbrains.io.DelegatingHttpRequestHandlerBase.messageReceived(DelegatingHttpRequestHandlerBase.kt:15)
	at org.jetbrains.io.DelegatingHttpRequestHandlerBase.messageReceived(DelegatingHttpRequestHandlerBase.kt:11)
	at org.jetbrains.io.SimpleChannelInboundHandlerAdapter.channelRead0(SimpleChannelInboundHandlerAdapter.java:21)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.handler.codec.http.cors.CorsHandler.channelRead(CorsHandler.java:97)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at org.jetbrains.io.PortUnificationServerHandler.decode(PortUnificationServerHandler.java:129)
	at org.jetbrains.io.PortUnificationServerHandler.messageReceived(PortUnificationServerHandler.java:77)
	at org.jetbrains.io.Decoder.channelRead(Decoder.java:23)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1357)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:868)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.handle(AbstractNioChannel.java:445)
	at io.netty.channel.nio.NioIoHandler$DefaultNioRegistration.handle(NioIoHandler.java:386)
	at io.netty.channel.nio.NioIoHandler.processSelectedKey(NioIoHandler.java:585)
	at io.netty.channel.nio.NioIoHandler.processSelectedKeysOptimized(NioIoHandler.java:560)
	at io.netty.channel.nio.NioIoHandler.processSelectedKeys(NioIoHandler.java:501)
	at io.netty.channel.nio.NioIoHandler.run(NioIoHandler.java:478)
	at io.netty.channel.SingleThreadIoEventLoop.runIo(SingleThreadIoEventLoop.java:184)
	at io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:156)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1123)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.conc
@MarcinVaadin
Copy link
Member

MarcinVaadin commented Jan 2, 2025

Thanks for reporting, that one is interesting. There is single IntelliJ REST service for all opened projects. Might it be case that you have closed the IDE instance for your running project?

@ado2000
Copy link
Author

ado2000 commented Jan 3, 2025

Hi, it could be possible,

my project is composed of two maven projects.

one used as main library AppFramework ( Vaadin 24.6 ) ( it is not runnable )
One as main project ( Vaadin 26.4 )

this error happened in the IDE, may be cause I'm trying to make copilot run ( At the moment it does not run )

What I see is that in the AppFramework project in the .idea folder I have the file .copilot-plugin but I have not this file in the main project, can it be a problem?

This is the error I see in the main project log.

Any Suggestion?
Thanks

[http-nio-8080-exec-10] 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-10] 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-10] 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-10] 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-10] 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants