【发布时间】:2019-03-27 02:03:06
【问题描述】:
当我尝试针对我的远程数据库生成代码时,我不断得到以下变化:
[ERROR] Failed to execute goal org.jooq:jooq-codegen-maven:3.11.5:generate (default) on project vaadinwebsite: Error running jOOQ code generation tool: Communications link failure
[ERROR]
[ERROR] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Operation timed out
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
这是在 Eclipse 中或从命令行。我知道我可以从这台机器连接到这个数据库,因为我在 Eclipse 中将它添加为数据源。添加 -X 和 -e 并没有真正告诉我太多。如何找出问题所在?
【问题讨论】:
-
您的客户端工作站和数据库之间的连接速度有多快?例如。两者之间有明显的滞后吗?
-
好问题。老实说,不完全确定。但我最终放弃了,只是决定直接在我的服务器上创建一个 jar(所以没有远程访问,相同的网络),效果很好。
标签: java mysql maven jdbc jooq