Hi all
I have integrated Kx Developer + KDb+ + kdbsolace dll on windows with visual studio 14 2015 x64 over VS2017 IDE.
Now I try to send message and lean what happen on the kdb database.
the q kx developer is running
C:\workKXdb\kdb\w64>q
KDB+ 4.0 2021.07.12 Copyright (C) 1993-2021 Kx Systems
w64/ 16(16)core 16160MB …
q)DEVELOPER_HOME setenv "C:\\workKXdb\\developer" q)
DEVELOPER_DATA setenv “C:\workKXdb\developer\data”
q)\p localhost:8080
q)\l C:\workKXdb\developer\launcher.q_
[developer] version 1.5.1
[developer] loading…
[developer] port already set, not changing
[developer] successfully loaded
[developer] connect to: http://desktop-5s9po4j:8080/ax or http://localhost:8080/ax with your web browser
and I can see solace functions on the developer web console…
now I compiled the client and I try to connect one of the solace C API introduction helloworld / pub-sub exectutables examples to pass messages to the database.
it fail to connect with error
C:\workKXdb\solace\solclient-7.20.0.6\Intro\vs2015\bin\Win64\Release>HelloWorldSub.exe 127.0.0.1:55555 default ori Hellow
HelloWorldSub initializing…
SDK NOTICE Mon Dec 6 17:10:33.155 2021 solClient.c:10681 (00000fc8) Session ‘(c0,s1)_default’ error attempting transport connection, client name ‘DESKTOP-5S9PO4J/1740/00000001/lXW-KKcjQb’, VPN name ‘default’, peer host ‘127.0.0.1:55555’ address ‘IP 127.0.0.1’, connection ‘tcp_TxRx’ local address ‘IP 0.0.0.0:18408’
SDK NOTICE Mon Dec 6 17:10:33.161 2021 solClient.c:10209 (00000fc8) Protocol or communication error when attempting to login for session ‘(c0,s1)_default’; are session HOST and PORT correct? client name ‘DESKTOP-5S9PO4J/1740/00000001/lXW-KKcjQb’, VPN name ‘default’, peer host ‘127.0.0.1:55555’ address ‘IP 127.0.0.1’, connection ‘tcp_TxRx’ local address ‘IP 0.0.0.0:18408’
Connected.
SDK NOTICE Mon Dec 6 17:10:33.166 2021 solClientSubscription.c:5809 (00003228) Attempt to call solClient_session_topicSubscribeExt when session ‘(c0,s1)_default’ not established
Waiting for message…
the publisher executes and terminate without an error
C:\workKXdb\solace\solclient-7.20.0.6\Intro\vs2015\bin\Win64\Release>HelloWorldPub.exe 127.0.0.1:55555 default ori “Hellow World”
HelloWorldPub initializing…
SDK NOTICE Mon Dec 6 17:08:15.597 2021 solClient.c:10681 (00000d90) Session ‘(c0,s1)_default’ error attempting transport connection, client name ‘DESKTOP-5S9PO4J/10284/00000001/XRbgupK6vw’, VPN name ‘default’, peer host ‘127.0.0.1:55555’ address ‘IP 127.0.0.1’, connection ‘tcp_TxRx’ local address ‘IP 0.0.0.0:12520’
SDK NOTICE Mon Dec 6 17:08:15.605 2021 solClient.c:10209 (00000d90) Protocol or communication error when attempting to login for session ‘(c0,s1)_default’; are session HOST and PORT correct? client name ‘DESKTOP-5S9PO4J/10284/00000001/XRbgupK6vw’, VPN name ‘default’, peer host ‘127.0.0.1:55555’ address ‘IP 127.0.0.1’, connection ‘tcp_TxRx’ local address ‘IP 0.0.0.0:12520’
Connected.
About to send message ‘Hello world!’ to topic ‘Hellow World’…
Message sent. Exiting.
C:\workKXdb\solace\solclient-7.20.0.6\Intro\vs2015\bin\Win64\Release>
can you help me create the connection and fix the “session ‘(c0,s1)_default’ not established” error?
Thanks for advance
Ori