为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:18
【操作系统】:Windows10
【CPU】:Intel® Core™ i7-9700 CPU @ 3.00GHz
【问题描述】*::Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
2023-03-17 10:03:25.622 ERROR 10624 — [nio-8081-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is dm.jdbc.driver.DMException: 网络通信异常] with root cause
有点没搞明Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine(地址在本地计算机上无效,或者端口在远程计算机上无效),解决方案是在url后面加上compatibleMode=oracle这个参数。但是我去搜了一下这个参数,这个管oracle什么事,连接DM数据库为什么要兼容oracle
在配置中加-Djava.net.preferIPv4Stack=true,重启idea后,还是报上述错误
