Error 12667 running SonicMQ ClientConnect after starting the PASOE instance with tcman
An error 12667 message appears when connecting to Sonic with Clientconnect if the Pacific AppServer is started with the tcman.sh command. If started with OpenEdge Management on windows the message is sent to Sonic without any errors. When the error 12667 appears the message does not reach its Sonic destination. The code to publish the message is:
/* Publishes a text message. */
DEFINE VARIABLE hMessage AS HANDLE NO-UNDO.
DEFINE VARIABLE hPubSubSession AS HANDLE NO-UNDO.
/* Creates a session object. */
RUN jms/pubsubsession.p PERSISTENT SET hPubSubSession ("-SMQConnect"). /*("-H localhost -S 5162 ").*/
RUN setBrokerURL IN hPubSubSession ("localhost:2608").
RUN setUser IN hPubSubSession ("Administrator").
RUN setPassword IN hPubSubSession ("Administrator").
RUN beginSession IN hPubSubSession.
/* Create a text message */
RUN createTextMessage IN hPubSubSession (OUTPUT hMessage).
RUN setText IN hMessage ("Golf shoes on sale today").
/* Publish the message on the "GolfTopic" topic */
RUN publish IN hPubSubSession ("GolfTopic", hMessage, ?, ?, ?).
RUN deleteMessage IN hMessage.
RUN deleteSession IN hPubSubSession.
It doesn’t matter if the tcman.sh command is run as root or any other user. When the failure happens the are no errors in the PASOE instance logs, but with additional ClientConnect logging there is an exception sending the message:
[15/06/04@12:31:29.539+0200] P-027869 T-Main 1 --- --- cc.broker-25573.log opened.
[15/06/04@12:31:29.539+0200] P-027869 T-Main 1 --- --- Logging level set to = 4
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- Unhandled exception while dispatching messages
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- java.lang.IllegalArgumentException: port out of range:-1
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at java.net.InetSocketAddress.<init>(InetSocketAddress.java:185)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at java.net.InetSocketAddress.<init>(InetSocketAddress.java:166)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.DebuggerWorker.startServer(DebuggerWorker.java:468)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.DebugServer.doStartServer(DebugServer.java:272)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.StartServer.run(StartServer.java:27)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.DebugSession.dispatchMessages(DebugSession.java:69)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.DebuggerWorker.dispatchMessages(DebuggerWorker.java:217)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.DebuggerWorker.mainline(DebuggerWorker.java:126)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.DebuggerWorker.run(DebuggerWorker.java:82)
[15/06/04@12:31:34.163+0200] P-027869 T-Broker debugger 1 UB ----------- at com.progress.ubroker.debugger.ubDebuggerThread.run(ubDebuggerThread.java:80)