Article - CS259038
Connection Server fails to start with error "Error in custom provider, java.lang.IllegalArgumentException: port out of range:-1" in ThingWorx Connection Server
Modified: 21-Mar-2017
Applies To
- ThingWorx Connection Server 7.1 to 7.2
Description
- ThingWorx Connection Server fails to start with error
[main] ERROR c.t.c.ConnectionServer - Unable to start ConnectionServer
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) Error in custom provider, java.lang.IllegalArgumentException: port out of range:-1
while locating com.thingworx.connectionserver.FabricBytesChannelProvider
at com.thingworx.connectionserver.ConnectionServerModule.configure(ConnectionServerModule.java:34)
while locating com.thingworx.fabric.FabricBytesChannel
for parameter 2 at com.thingworx.connectionserver.PlatformImpl.<init>(PlatformImpl.java:47)
while locating com.thingworx.connectionserver.PlatformImpl
at com.thingworx.connectionserver.ConnectionServerModule.configure(ConnectionServerModule.java:32)
while locating com.thingworx.connectionserver.protocol.services.Platform
Caused by: java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:97)
at com.thingworx.sdk.impl.transport.netty.NettyBytesChannel.startConnect(NettyBytesChannel.java:297)
at com.thingworx.sdk.impl.transport.netty.NettyBytesChannel.connect(NettyBytesChannel.java:72)
at com.thingworx.sdk.impl.transport.MuxingBytesChannel.reconnectChannels(MuxingBytesChannel.java:180)
at com.thingworx.sdk.impl.transport.MuxingBytesChannel.connect(MuxingBytesChannel.java:140)
This is a printer-friendly version of Article 259038 and may be out of date. For the latest version click CS259038