-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server closes connection while creating tables through "JavaPlay Ebeans ORM" #1652
Comments
@azeemshahzad thank you for trying out our YSQL API! Seeing this in your log:
Can you confirm which release you're using? We've landed basic foreign key support in our 1.2.10 release. cc @m-iancu in case there are still pending work items there that might be prevent Play from working ok... |
I was using 1.2.9. before. Now installed latest version 1.2.11 and getting different error. [ERROR] from org.jdbcdslog.StatementLogger in play-dev-mode-akka.actor.default-dispatcher-11 - java.sql.Statement.execute: |
@azeemshahzad The |
Closing this issue out, most of these should be resolved with the newer versions. |
YugaByte closes connection while creating tables through "JavaPlay Ebeans ORM". Ebean entity and exception stack given below
@entity
@table(name = "orders")
public class Order extends Model {
@id
@GeneratedValue(strategy = GenerationType.AUTO)
public UUID orderId;
}
Exception:
[warn] c.z.h.p.ProxyConnection - HikariPool-1 - Connection org.postgresql.jdbc42.Jdbc42Connection@1effc9ca marked as broken because of SQLSTATE(0A000), ErrorCode(0)
org.postgresql.util.PSQLException: ERROR: FOREIGN KEY constraint not supported yet
Hint: See #1129. Click '+' on the description to raise its priority
Position: 53
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:645)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:481)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:473)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] o.j.StatementLogger - java.sql.Statement.execute: alter table orders add constraint fk_orders_user_id foreign key (user_id) references users (user_id) on delete restrict on update restrict;
throws exception: org.postgresql.util.PSQLException: ERROR: FOREIGN KEY constraint not supported yet
Hint: See #1129. Click '+' on the description to raise its priority
Position: 53
org.postgresql.util.PSQLException: ERROR: FOREIGN KEY constraint not supported yet
Hint: See #1129. Click '+' on the description to raise its priority
Position: 53
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:645)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:481)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:473)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:95)
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] o.j.ConnectionLogger - java.sql.Connection.prepareStatement:
throws exception: java.sql.SQLException: Connection is closed
java.sql.SQLException: Connection is closed
at com.zaxxer.hikari.pool.ProxyConnection$ClosedConnection.lambda$getClosedConnection$0(ProxyConnection.java:489)
at com.sun.proxy.$Proxy28.prepareStatement(Unknown Source)
at com.zaxxer.hikari.pool.ProxyConnection.prepareStatement(ProxyConnection.java:311)
at com.zaxxer.hikari.pool.HikariProxyConnection.prepareStatement(HikariProxyConnection.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jdbcdslog.GenericLoggingHandler.invoke(GenericLoggingHandler.java:30)
at com.sun.proxy.$Proxy27.prepareStatement(Unknown Source)
[error] application -
! @7cb39290p - Internal server error, for (POST) [/users] ->
The text was updated successfully, but these errors were encountered: