Skip to content
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

java.sql.SQLException: [Amazon][JDBC](11380) Null pointer exception. #471

Open
jayakumarim opened this issue Apr 3, 2023 · 0 comments
Open

Comments

@jayakumarim
Copy link

I am getting below Exception while connecting to PostgreSQL. Please help to fix it.
I have correct values for URL. user& password.

java.sql.SQLException: [Amazon]JDBC Null pointer exception.
at com.amazon.redshift.client.PGClient.startSession(Unknown Source) ~[?:?]
at com.amazon.redshift.client.PGClient.(Unknown Source) ~[?:?]
at com.amazon.redshift.core.PGJDBCConnection.connect(Unknown Source) ~[?:?]
at com.amazon.jdbc.common.BaseConnectionFactory.doConnect(Unknown Source) ~[?:?]
at com.amazon.jdbc.common.AbstractDriver.connect(Unknown Source) ~[?:?]
at com.amazon.redshift.jdbc.Driver.connect(Unknown Source) ~[RedshiftJDBC42-1.2.10.1009.jar:?]
at java.sql.DriverManager.getConnection(DriverManager.java:677) ~[java.sql:?]
at java.sql.DriverManager.getConnection(DriverManager.java:228) ~[java.sql:?]
at com.alacriti.yaf.db.ConnectionSource.createConnection(ConnectionSource.java:224) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.db.ConnectionSource.createPoolObject(ConnectionSource.java:154) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.pool.Pool.initialize(Pool.java:95) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.pool.Pool.(Pool.java:62) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.db.ConnectionSource.init(ConnectionSource.java:128) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.db.ConnectionSources.init(ConnectionSources.java:70) [yaf-0.0.0-SNAPSHOT.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at com.alacriti.yaf.resources.Resources.createHandlerInstance(Resources.java:851) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.resources.Resources.createObject(Resources.java:585) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.resources.Resources.initObjects(Resources.java:572) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.resources.Resources.initResources(Resources.java:512) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.resources.Resources.initBootFile(Resources.java:388) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.yaf.resources.Resources.init(Resources.java:207) [yaf-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.etl.daemon.listener.ResourceInitServlet.initYAFconfig(ResourceInitServlet.java:999) [etl-daemon-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.etl.daemon.listener.ResourceInitServlet.initAll(ResourceInitServlet.java:236) [etl-daemon-0.0.0-SNAPSHOT.jar:?]
at com.alacriti.etl.daemon.listener.ResourceInitServlet.init(ResourceInitServlet.java:110) [etl-daemon-0.0.0-SNAPSHOT.jar:?]
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:250) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:133) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:565) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:536) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:578) [undertow-servlet-1.4.18.Final.jar:1.4.18.Final]
at com.alacriti.serverless.undertow.server.ServicesServer.deployServletsToContainer(ServicesServer.java:477) [undertow-server-1.0.0.jar:?]
at com.alacriti.serverless.undertow.server.ServicesServer.start(ServicesServer.java:272) [undertow-server-1.0.0.jar:?]
at com.alacriti.serverless.undertow.server.ServicesServer.main(ServicesServer.java:794) [undertow-server-1.0.0.jar:?]
Caused by: java.lang.NullPointerException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant