在芭蕾舞演员作曲家中运行一个简单的示例失败,但出现以下异常。
[2018-06-13 11:01:29,024] ERROR {org.ballerinalang.launcher.Main} - failed to connect to localhost:5010
java.lang.RuntimeException: failed to connect to localhost:5010
at org.ballerinalang.logging.BLogManager.setHttpTraceLogHandler(BLogManager.java:163)
at org.ballerinalang.logging.BLogManager.loadUserProvidedLogConfiguration(BLogManager.java:111)
at org.ballerinalang.launcher.LauncherUtils.loadConfigurations(LauncherUtils.java:313)
at org.ballerinalang.launcher.LauncherUtils.runProgram(LauncherUtils.java:79)
at org.ballerinalang.launcher.Main$RunCmd.execute(Main.java:256)
at java.util.Optional.ifPresent(Unknown Source)
at org.ballerinalang.launcher.Main.main(Main.java:66)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.util.logging.SocketHandler.connect(Unknown Source)
at java.util.logging.SocketHandler.<init>(Unknown Source)
at org.ballerinalang.logging.BLogManager.setHttpTraceLogHandler(BLogManager.java:157)
... 6 more
因为从控制台手动启动ballerina run hello-world.bal
确实没有问题。
从作曲家运行时这里有什么问题?
- 环境:ballerina-0.970.1,Windows 10,Java 8