eric-maynard commented on issue #241:
URL: https://github.com/apache/polaris/issues/241#issuecomment-2327034218

   Dumping the errors here:
   ```
   DEBUG [2024-09-03 10:10:17,957 - 546   ] [main] [] 
o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: Create EclipseLink Meta 
Store Session for default-realm 
   [EL Warning]: metadata: 2024-09-03 
10:10:18.063--ServerSession(136011184)--You have specified multiple ids for the 
entity class 
[org.apache.polaris.core.persistence.models.ModelEntityChangeTracking] without 
specifying an @IdClass. By doing this you may lose the ability to find by 
identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:10:18.066--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelGrantRecord] 
without specifying an @IdClass. By doing this you may lose the ability to find 
by identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:10:18.067--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelEntityDropped] 
without specifying an @IdClass. By doing this you may lose the ability to find 
by identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:10:18.067--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelEntity] without 
specifying an @IdClass. By doing this you may lose the ability to find by 
identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Warning]: metadata: 2024-09-03 
10:10:18.068--ServerSession(136011184)--You have specified multiple ids for the 
entity class [org.apache.polaris.core.persistence.models.ModelEntityActive] 
without specifying an @IdClass. By doing this you may lose the ability to find 
by identity, distributed cache support etc. Note: You may however use 
EntityManager find operations by passing a list of primary key fields. Else, 
you will have to use JPQL queries to read your entities. For other id options 
see @PrimaryKey.
   [EL Info]: 2024-09-03 10:10:18.105--ServerSession(136011184)--EclipseLink, 
version: Eclipse Persistence Services - 4.0.3.v202405220658
   [EL Severe]: ejb: 2024-09-03 
10:10:18.169--ServerSession(136011184)--Exception [EclipseLink-4002] (Eclipse 
Persistence Services - 4.0.3.v202405220658): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: com.mysql.cj.jdbc.exceptions.CommunicationsException: 
Communications link failure
   
   The last packet sent successfully to the server was 0 milliseconds ago. The 
driver has not received any packets from the server.
   Error Code: 0
   jakarta.persistence.PersistenceException: Exception [EclipseLink-4002] 
(Eclipse Persistence Services - 4.0.3.v202405220658): 
org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: com.mysql.cj.jdbc.exceptions.CommunicationsException: 
Communications link failure
   
   The last packet sent successfully to the server was 0 milliseconds ago. The 
driver has not received any packets from the server.
   Error Code: 0
        at 
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:855)
        at 
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:221)
        at 
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:199)
        at 
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getDatabaseSession(EntityManagerFactoryImpl.java:534)
        at 
org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:153)
        at 
org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:191)
        at 
jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:80)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.createEntityManagerFactory(PolarisEclipseLinkMetaStoreSessionImpl.java:174)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.PolarisEclipseLinkMetaStoreSessionImpl.<init>(PolarisEclipseLinkMetaStoreSessionImpl.java:115)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.EclipseLinkPolarisMetaStoreManagerFactory.createMetaStoreSession(EclipseLinkPolarisMetaStoreManagerFactory.java:52)
        at 
org.apache.polaris.extension.persistence.impl.eclipselink.EclipseLinkPolarisMetaStoreManagerFactory.createMetaStoreSession(EclipseLinkPolarisMetaStoreManagerFactory.java:35)
        at 
org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.lambda$initializeForRealm$0(LocalPolarisMetaStoreManagerFactory.java:71)
        at 
org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.bootstrapServiceAndCreatePolarisPrincipalForRealm(LocalPolarisMetaStoreManagerFactory.java:167)
        at 
org.apache.polaris.core.persistence.LocalPolarisMetaStoreManagerFactory.bootstrapRealms(LocalPolarisMetaStoreManagerFactory.java:87)
        at 
org.apache.polaris.service.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:69)
        at 
org.apache.polaris.service.BootstrapRealmsCommand.run(BootstrapRealmsCommand.java:40)
        at 
io.dropwizard.core.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.core.cli.Cli.run(Cli.java:78)
        at io.dropwizard.core.Application.run(Application.java:94)
        at 
org.apache.polaris.service.PolarisApplication.main(PolarisApplication.java:121)
   Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 
4.0.3.v202405220658): org.eclipse.persistence.exceptions.DatabaseException
   Internal Exception: com.mysql.cj.jdbc.exceptions.CommunicationsException: 
Communications link failure
   
   The last packet sent successfully to the server was 0 milliseconds ago. The 
driver has not received any packets from the server.
   Error Code: 0
        at 
org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:334)
        at 
org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:329)
        at 
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:113)
        at 
org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:174)
        at 
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.setOrDetectDatasource(DatabaseSessionImpl.java:226)
        at 
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:809)
        at 
org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:259)
        at 
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:770)
        ... 19 more
   Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: 
Communications link failure
   
   The last packet sent successfully to the server was 0 milliseconds ago. The 
driver has not received any packets from the server.
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:165)
        at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:55)
        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:861)
        at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:449)
        at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:234)
        at 
com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:180)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:191)
        at 
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:102)
        ... 24 more
   Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications 
link failure
   
   The last packet sent successfully to the server was 0 milliseconds ago. The 
driver has not received any packets from the server.
        at 
java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
        at 
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
        at 
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
        at 
com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:52)
        at 
com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:95)
        at 
com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:140)
        at 
com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:156)
        at 
com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:597)
        at 
com.mysql.cj.protocol.a.NativeProtocol.readServerCapabilities(NativeProtocol.java:521)
        at 
com.mysql.cj.protocol.a.NativeProtocol.beforeHandshake(NativeProtocol.java:412)
        at 
com.mysql.cj.protocol.a.NativeProtocol.connect(NativeProtocol.java:1338)
        at com.mysql.cj.NativeSession.connect(NativeSession.java:152)
        at 
com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:980)
        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:851)
        ... 30 more
   Caused by: java.io.EOFException: Can not read response from server. Expected 
to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
        at 
com.mysql.cj.protocol.FullReadInputStream.readFully(FullReadInputStream.java:58)
        at 
com.mysql.cj.protocol.a.SimplePacketReader.readHeaderLocal(SimplePacketReader.java:72)
        at 
com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:54)
        at 
com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:36)
        at 
com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:591)
        ... 36 more
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to