自从将MacOS更新至12 / Monterey版本后,在开发模式下运行我的应用程序时遇到了错误。
为了验证问题,我从start.vaadin.com创建了一个全新的Starter App。我使用JDK 11和Vaadin 21来进行开发,因为这是我其他项目所使用的。
我使用IntelliJ Ultimate进行开发。
当我像之前多次那样试图从IntelliJ中启动项目时,项目开始启动,通常会编译前端代码并输出“Frontend compiled successfully”,但随后失败,并出现以下错误信息。
为了验证问题,我从start.vaadin.com创建了一个全新的Starter App。我使用JDK 11和Vaadin 21来进行开发,因为这是我其他项目所使用的。
我使用IntelliJ Ultimate进行开发。
当我像之前多次那样试图从IntelliJ中启动项目时,项目开始启动,通常会编译前端代码并输出“Frontend compiled successfully”,但随后失败,并出现以下错误信息。
2021-11-05 08:29:09.589 ERROR 11463 --- [ webpack] c.v.base.devserver.DevModeHandlerImpl : Error when reading manifest.json from webpack-dev-server
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na]
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:669) ~[na:na]
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) ~[na:na]
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) ~[na:na]
at java.base/java.net.Socket.connect(Socket.java:645) ~[na:na]
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177) ~[na:na]
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:497) ~[na:na]
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:600) ~[na:na]
at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:246) ~[na:na]
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:351) ~[na:na]
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:372) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1299) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1232) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1120) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1051) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1653) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1577) ~[na:na]
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527) ~[na:na]
at com.vaadin.base.devserver.DevModeHandlerImpl.readManifestPaths(DevModeHandlerImpl.java:556) ~[vaadin-dev-server-8.0.3.jar:na]
at com.vaadin.base.devserver.DevModeHandlerImpl.processLine(DevModeHandlerImpl.java:492) ~[vaadin-dev-server-8.0.3.jar:na]
at com.vaadin.base.devserver.DevModeHandlerImpl.readLinesLoop(DevModeHandlerImpl.java:457) ~[vaadin-dev-server-8.0.3.jar:na]
at com.vaadin.base.devserver.DevModeHandlerImpl.lambda$logStream$2(DevModeHandlerImpl.java:428) ~[vaadin-dev-server-8.0.3.jar:na]
at java.base/java.lang.Thread.run(Thread.java:831) ~[na:na]
我无法访问该网页。当我从命令行以生产模式启动时,一切都正常。
有人能告诉我出了什么问题吗?