Trafodion Troubleshooting-Certificate file error

本文介绍了解决Trafodion数据库通过JDBC连接时报错的问题,该问题通常与证书缺失有关。文章提供了具体的分析过程及解决方法,即在各节点上重新生成必要的证书文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

现象

使用JDBC连续Trafodion数据库时,有时候会报以下错误,如下图(注:下图来源于Trafodion社区用户截图)
这里写图片描述

分析

从以上错误可以发现,问题跟certificate有关。Trafodion安装完毕后,在每个Trafodion的/home/trafodion/sqcert正常应该会生成两个文件,server.crt及server.key,如果节点上这两个文件不存在,可能会造成以上错误。

解决

解决方法为在每个Trafodion节点重新sqcertgen,sqcertgen可以在当前节点重新生成server.crt及server.key文件,输出如下
这里写图片描述

driver = webdriver.Edge() url = "https://www.4399.com" driver.get(url) time.sleep(20) driver.close() 上面的代码在jupyter中出现以下提示: Exception managing MicrosoftEdge: Wrong browser/driver version --------------------------------------------------------------------------- InvalidSessionIdException Traceback (most recent call last) Cell In[16], line 5 3 driver.get(url) 4 time.sleep(20) ----> 5 driver.close() File ~\AppData\Roaming\Python\Python313\site-packages\selenium\webdriver\remote\webdriver.py:602, in WebDriver.close(self) 595 def close(self) -> None: 596 """Closes the current window. 597 598 Example: 599 -------- 600 >>> driver.close() 601 """ --> 602 self.execute(Command.CLOSE) File ~\AppData\Roaming\Python\Python313\site-packages\selenium\webdriver\remote\webdriver.py:454, in WebDriver.execute(self, driver_command, params) 451 response = cast(RemoteConnection, self.command_executor).execute(driver_command, params) 453 if response: --> 454 self.error_handler.check_response(response) 455 response["value"] = self._unwrap_value(response.get("value", None)) 456 return response File ~\AppData\Roaming\Python\Python313\site-packages\selenium\webdriver\remote\errorhandler.py:232, in ErrorHandler.check_response(self, response) 230 alert_text = value["alert"].get("text") 231 raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here --> 232 raise exception_class(message, screen, stacktrace) InvalidSessionIdException: Message: invalid session id: session deleted as the browser has closed the connection from disconnected: not connected to DevTools (Session info: MicrosoftEdge=138.0.3351.121); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#invalidsessionidexception Stacktrace: GetHandleVerifier [0x0x7ff71a898c55+23461] (No symbol) [0x0x7ff71a7ecd40] GetHandleVerifier [0x0x7ff71ab10b88+2611928] (No symbol) [0x0x7ff71a5ab91c] (No symbol) [0x0x7ff71a5ac86f] (No symbol) [0x0x7ff71a5bd44c] (No symbol) [0x0x7ff71a59cd35] (No symbol) [0x0x7ff71a6381b8] (No symbol) [0x0x7ff71a62a680] (No symbol) [0x0x7ff71a5fea86] (No symbol) [0x0x7ff71a5fdd11] (No symbol) [0x0x7ff71a5fe8b3] (No symbol) [0x0x7ff71a6fe6fd] (No symbol) [0x0x7ff71a70ba88] GetHandleVerifier [0x0x7ff71a978a9b+940523] GetHandleVerifier [0x0x7ff71a9817f1+976705] (No symbol) [0x0x7ff71a7fa931] (No symbol) [0x0x7ff71a7f3314] (No symbol) [0x0x7ff71a7f3463] (No symbol) [0x0x7ff71a7e4f06] BaseThreadInitThunk [0x0x7ffb8ae4e8d7+23] RtlUserThreadStart [0x0x7ffb8b65c34c+44] 同时又能打开浏览器
最新发布
08-09
上述代码任然无法正常运行,请你优化。要能正常运行后再发给我。上述代码无法正常运行,终端显示为:PS C:\Users\14743\Desktop\PY> & "D:/py anzhuangbao/python.exe" c:/Users/14743/Desktop/6.7爬虫作业.py DevTools listening on ws://127.0.0.1:49660/devtools/browser/014a93f0-9c97-4a34-91b3-7fa1882fb4bf [16968:23176:0607/092500.308:ERROR:chrome\browser\importer\edge_china_browsers\edge_qqbrowser_importer_utils_win.cc:198] QQBrowser profile preference file doesn't exist [19760:6684:0607/092500.766:ERROR:net\socket\ssl_client_socket_impl.cc:892] handshake failed; returned -1, SSL error code 1, net_error -101 [19760:6684:0607/092500.934:ERROR:net\socket\ssl_client_socket_impl.cc:892] handshake failed; returned -1, SSL error code 1, net_error -101 Traceback (most recent call last): File "c:\Users\14743\Desktop\6.7爬虫作业.py", line 22, in <module> first_category = driver.find_element(By.XPATH, '//*[@id="nav"]/li[1]/a') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\py anzhuangbao\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 914, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\py anzhuangbao\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 447, in execute self.error_handler.check_response(response) File "D:\py anzhuangbao\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="nav"]/li[1]/a"} (Session info: MicrosoftEdge=137.0.3296.62); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception Stacktrace: GetHandleVerifier [0x0x7ff736c33915+25605] (No symbol) [0x0x7ff736b83a20] Microsoft::Applications::Events::EventProperty::to_string [0x0x7ff736eb6f2a+1962506] (No symbol) [0x0x7ff7369986c4] (No symbol) [0x0x7ff73699898b] (No symbol) [0x0x7ff7369d9af7] (No symbol) [0x0x7ff7369b9e8f] (No symbol) [0x0x7ff73698ea5d] (No symbol) [0x0x7ff7369d75df] (No symbol) [0x0x7ff7369b9bb3] (No symbol) [0x0x7ff73698df56] (No symbol) [0x0x7ff73698d463] (No symbol) [0x0x7ff73698dd83] (No symbol) [0x0x7ff736a8e10d] (No symbol) [0x0x7ff736a9dce8] Microsoft::Applications::Events::EventProperty::to_string [0x0x7ff736d188e9+265161] Microsoft::Applications::Events::EventProperty::to_string [0x0x7ff736d201c1+296097] (No symbol) [0x0x7ff736b921c1] (No symbol) [0x0x7ff736b8a664] (No symbol) [0x0x7ff736b8a7b3] (No symbol) [0x0x7ff736b7b986] BaseThreadInitThunk [0x0x7ff87f13e8d7+23] RtlUserThreadStart [0x0x7ff88069c5dc+44]
06-09
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

数据源的港湾

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值