Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi, I have installed ThingWorx platform 9.3.0 (enabled SSL/TLS) and installed connection server 9.2.0 on the same VM and done cxserver.conf changes as per the documentation but when I run the connection server from CMD, nothing got shown and in cxserver.txt I can see below error.
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:44)
Can someone help me to understand what went wrong here. I have created truststore and provided the details as part of CONNECTION_SERVER_OPTS too.
Solved! Go to Solution.
I think there's something wrong with your YAML. Please check it with http://www.yamllint.com/ before starting the connector.
The -2
Also do note that cx-server.protocol.port is the port where CX server accepts connections. Meaning it should be an open port, not used by anything in the machine.
Under cx-server.transport.websockets you should note your platform IP, port etc. The statement you were unsure above means that you must add the port in this setting even if you use ws or wss.
I assume you are already familiar with the content from the help center, https://support.ptc.com/help/thingworx/connection_services/en/#page/thingworx_cx_services/connection_server_docs/c_cx_server_minimal_configuration.html#
Hi,
Read this article - "Connection Server fails to start with error "Error in custom provider, java.lang.IllegalArgumentException: port out of range:-1" in ThingWorx Connection Server": https://www.ptc.com/en/support/article/CS259038
Hi VladimirN,
I reviewed all relevant articles before reaching out here but it didn't help. This article is for old version of connection server but I hope it works for new version too but it didn't solve my issue.
I have one question on below statement.
I have configured TWX SSL so when I mentioned the port 443 explicitly, it's giving a different error. If I remove this port, it's going to next level and failing at
cx-server {
protocol.port = 8443
. . .
}
Whatever the port I give here, I am getting the port out of range error.
I think there's something wrong with your YAML. Please check it with http://www.yamllint.com/ before starting the connector.
The -2
Also do note that cx-server.protocol.port is the port where CX server accepts connections. Meaning it should be an open port, not used by anything in the machine.
Under cx-server.transport.websockets you should note your platform IP, port etc. The statement you were unsure above means that you must add the port in this setting even if you use ws or wss.
I assume you are already familiar with the content from the help center, https://support.ptc.com/help/thingworx/connection_services/en/#page/thingworx_cx_services/connection_server_docs/c_cx_server_minimal_configuration.html#
Hi VladimirRosu,
Thanks for your comments. Somehow this is working after specifying the port (443) in cx-server.transport.websockets.platforms though I see few more errors in the logs.