我一直在关注Solace JavaRTO [低延迟]的教程
https://dev.solace.com/samples/solace-samples-javarto/publish-subscribe/
但是,当我进入为句柄创建会话的部分时,遇到了以下错误。
com.solacesystems.solclientj.core.impl.util.SolLogger log
WARNING: solClientSession.c:3715 (00002888) Bad context pointer (0000000000000000) in solClient_session_create
Dec 17, 2018 4:04:52 PM com.solacesystems.solclientj.core.impl.util.SolLogger critical
SEVERE: a uncaught exception was encountered on Thread Thread[main,5,main]
com.solacesystems.solclientj.core.SolclientException: errorStr [solClientSession.c:3715 (00002888) Bad context pointer (0000000000000000) in solClient_session_create] subCode [2:PARAM_NULL_PTR] responseCode [0] returnCode [-1:FAIL]
at com.solacesystems.solclientj.core.impl.util.ExceptionGuard.assertReturnCode(Unknown Source)
at com.solacesystems.solclientj.core.impl.util.ExceptionGuard.assertReturnCode(Unknown Source)
at com.solacesystems.solclientj.core.impl.ContextHandleImpl.createSessionForHandle(Unknown Source)
没有实际来源,我无法进一步调试以尝试查找问题,但听起来某些参数可能不正确或为null。但是,我已经能够使用与普通Java API相同的参数成功连接,发布和订阅Solace。
有人知道低延迟JavaRTO API是否有特定的属性或其他任何可能导致此问题的属性吗?
答案 0 :(得分:1)
教程工作正常,我忽略了先前的语句,该语句过早关闭了上下文处理程序。