技术文章 - CS259038
连接服务器无法启动,并在 ThingWorx 连接服务器中出现错误“自定义提供程序中的错误,java.lang.IllegalArgumentException:端口超出范围:-1”
已修改: 23-Jun-2022
适用于
- ThingWorx Connection Server 7.1 to 7.2
说明
- ThingWorx 连接服务器无法启动并出现错误
[main] 错误 ctcConnectionServer - 无法启动 ConnectionServer
com.google.inject.CreationException: 无法创建注入器,看到如下错误:
1) 自定义提供程序出错,java.lang.IllegalArgumentException:端口超出范围:-1
同时定位 com.thingworx.connectionserver.FabricBytesChannelProvider
在 com.thingworx.connectionserver.ConnectionServerModule.configure(ConnectionServerModule.java:34)
同时定位 com.thingworx.fabric.FabricBytesChannel
对于 com.thingworx.connectionserver.PlatformImpl.<init>(PlatformImpl.java:47) 处的参数 2
同时定位 com.thingworx.connectionserver.PlatformImpl
在 com.thingworx.connectionserver.ConnectionServerModule.configure(ConnectionServerModule.java:32)
同时定位 com.thingworx.connectionserver.protocol.services.Platform
引起:java.lang.IllegalArgumentException:端口超出范围:-1
在 java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
在 java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
在 io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:97)
在 com.thingworx.sdk.impl.transport.netty.NettyBytesChannel.startConnect(NettyBytesChannel.java:297)
在 com.thingworx.sdk.impl.transport.netty.NettyBytesChannel.connect(NettyBytesChannel.java:72)
在 com.thingworx.sdk.impl.transport.MuxingBytesChannel.reconnectChannels(MuxingBytesChannel.java:180)
在 com.thingworx.sdk.impl.transport.MuxingBytesChannel.connect(MuxingBytesChannel.java:140)
这是文章 259038 的 PDF 版本,可能已过期。最新版本 CS259038