简体   繁体   中英

jooq code generation mysql remote db maven

When I try to generate code against my remote DB, I keep getting some variation on the below:

[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

This is in Eclipse or from the command line. I know I can connect to this DB from this machine because I added it as a data source in Eclipse. Adding -X and -e did not really tell me much. How do I find out what the problem is?

Jooq code generation plugin needs to connect to DB server during its work to read schema definitions and generate java code based on these definitions.

The mistake is obvious here: The driver has not received any packets from the server. Operation timed out

So its a network issue

For debugging purposes and to eliminate credential related issues consider giving it wrong credentials just to see that it fails with a different error (the chances it will do so).

I can say that in my job we indeed work with a locally installed database in a similar case and have never seen issues like this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM