jovezhong opened a new issue, #6646: URL: https://github.com/apache/gravitino/issues/6646
### Version main branch ### Describe what's wrong I am using Aiven for Postgres and copied the JDBC URL which includes user name and password I put this in rest server conf and got NullPointer error to list namespace I think it will be better to use the JDBC url to try to connect and if it failed, then check whether the jdbc.user is set or not. ### Error message and/or stacktrace ```json {"error":{"message":"jdbc.user is null","type":"NullPointerException","code":500,"stack":["java.lang.NullPointerException: jdbc.user is null","\tat com.google.common.base.Preconditions.checkNotNull(Preconditions.java:921)","\tat org.apache.gravitino.iceberg.common.utils.IcebergCatalogUtil.loadJdbcCatalog(IcebergCatalogUtil.java:124)","\tat org.apache.gravitino.iceberg.common.utils.IcebergCatalogUtil.loadCatalogBackend(IcebergCatalogUtil.java:191)","\tat org.apache.gravitino.iceberg.common.ops.IcebergCatalogWrapper.<init>(IcebergCatalogWrapper.java:89)","\tat org.apache.gravitino.iceberg.service.CatalogWrapperForREST.<init>(CatalogWrapperForREST.java:73 ``` ### How to reproduce ``` gravitino.iceberg-rest.catalog-backend = jdbc gravitino.iceberg-rest.catalog-backend-name = public gravitino.iceberg-rest.jdbc-driver = org.postgresql.Driver gravitino.iceberg-rest.uri = jdbc:postgresql://demo-timeplus.aivencloud.com:28851/defaultdb?ssl=require&user=avnadmin&password=AVNS123 #gravitino.iceberg-rest.jdbc-user = avnadmin #gravitino.iceberg-rest.jdbc-password = ``` ### Additional context _No response_ -- 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: commits-unsubscr...@gravitino.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org