Error para subir api de spring boot con JWT en render

Buenas tardes, necesito ayuda con un error que tengo para subir mi proyecto de Spring Boot con JWT en render, adjunto una captura y agradecería que me den una mano porque no encuentro donde esta el problema, ya busque por todos los medios.

Dec 29 08:25:22 PM Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
Dec 29 08:25:22 PM
Dec 29 08:25:22 PM The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:829) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:449) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:242) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-4.0.3.jar!/:na]
Dec 29 08:25:22 PM at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364) ~[HikariCP-4.0.3.jar!/:na]
Dec 29 08:25:22 PM at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) ~[HikariCP-4.0.3.jar!/:na]
Dec 29 08:25:22 PM at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476) ~[HikariCP-4.0.3.jar!/:na]
Dec 29 08:25:22 PM at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) ~[HikariCP-4.0.3.jar!/:na]
Dec 29 08:25:22 PM at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) ~[HikariCP-4.0.3.jar!/:na]
Dec 29 08:25:22 PM at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) ~[HikariCP-4.0.3.jar!/:na]
Dec 29 08:25:22 PM at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) ~[hibernate-core-5.6.8.Final.jar!/:5.6.8.Final]
Dec 29 08:25:22 PM at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:181) ~[hibernate-core-5.6.8.Final.jar!/:5.6.8.Final]
Dec 29 08:25:22 PM at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:44) ~[hibernate-core-5.6.8.Final.jar!/:5.6.8.Final]
Dec 29 08:25:22 PM … 148 common frames omitted
Dec 29 08:25:22 PM Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
Dec 29 08:25:22 PM
Dec 29 08:25:22 PM The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Dec 29 08:25:22 PM at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
Dec 29 08:25:22 PM at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[na:na]
Dec 29 08:25:22 PM at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]
Dec 29 08:25:22 PM at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[na:na]
Dec 29 08:25:22 PM at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[na:na]
Dec 29 08:25:22 PM at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.NativeSession.connect(NativeSession.java:120) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:949) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:819) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM … 161 common frames omitted
Dec 29 08:25:22 PM Caused by: java.net.ConnectException: Connection refused
Dec 29 08:25:22 PM at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na]
Dec 29 08:25:22 PM at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[na:na]
Dec 29 08:25:22 PM at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) ~[na:na]
Dec 29 08:25:22 PM at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) ~[na:na]
Dec 29 08:25:22 PM at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[na:na]
Dec 29 08:25:22 PM at java.base/java.net.Socket.connect(Socket.java:633) ~[na:na]
Dec 29 08:25:22 PM at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:156) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
Dec 29 08:25:22 PM … 164 common frames omitted
Dec 29 08:25:22 PM
Dec 29 08:25:53 PM
Dec 29 08:25:53 PM . ____ _ __ _ _
Dec 29 08:25:53 PM /\ / __ _ () __ __ _ \ \ \
Dec 29 08:25:53 PM ( ( )_
_ | '_ | '| | ’ / ` | \ \ \
Dec 29 08:25:53 PM \/ )| |)| | | | | || (| | ) ) ) )
Dec 29 08:25:53 PM ’ |
| .__|| ||| |_, | / / / /
Dec 29 08:25:53 PM =========|
|==============|/=////
Dec 29 08:25:53 PM :: Spring Boot :: (v2.6.7)
Dec 29 08:25:53 PM

hola, pudiste subir tu aplicacion ?

Aún no pude subir la Api a render, me creé un proyecto nuevo porque avisaron que con jdk17 ahí inconvenientes, entonces me creé uno con jdk11 pero aún no puedo subirlo.

No tengo ninguno de esos errores sino que cuando finaliza todo me indica que falló, ¿vos también tenes una api con spring boot para subir en render?,para que me des una mano si ya lo subiste

Igual tengo java 11, spring boot, la imagen del docker carga, no tengo ningún error, pero al final se detiene y genera el Failed

Hi,

Other community members may be able to reply in Spanish, however, Render support is currently only able to reply in English.

From what I can see in the shared logs, it appears there may be an issue connecting to your MySQL database:

Caused by: java.net.ConnectException: Connection refused

Alan

Me pasa exactamente lo mismo ahora finaliza todo bien y se completa pero al final termina con el failled y no encuentro una solución.

No se si hay que configurar otras variables para el jwt

Gracias por responder, ese error ya no lo tengo, como había comentado ya cambie toda la estructura de nuevo.

Ahora lo que sucede es que se completa todo en render, pero al final termina diciendo que fallo

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.