javax.persistence.QueryTimeoutException: Could not open connection] with root cause **java.sql.SQLException: ORA-01017: invalid username/password; logon denied**

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Place datasource password outside context.xml

    Stack Overflow | 3 years ago | rickygrimes
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
  2. 0

    Need help in Oracle OS Authentication

    Stack Overflow | 4 years ago | Abhimanyu garg
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
  3. 0

    Not able to connect to oracle database using JDBC if password is having special characters

    Stack Overflow | 3 years ago | Anjali
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied</p> <pre><code> at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tomcat 6, hibernate, oracle 11 logon denied

    Stack Overflow | 7 years ago | Daler
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
  6. 0

    Weblogic Server 12.1.3 doesn't start - Force Shut Down

    Oracle Community | 2 years ago | 2632950
    java.security.PrivilegedActionException: java.sql.SQLException: ORA-01017: inval id username/password; logon denied

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.persistence.QueryTimeoutException

      Could not open connection] with root cause **java.sql.SQLException: ORA-01017: invalid username/password; logon denied**

      at oracle.jdbc.driver.T4CTTIoer.processError()
    2. Oracle jdbc
      OracleDataSource.getConnection
      1. oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
      2. oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
      3. oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)
      4. oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:573)
      5. oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:431)
      6. oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
      7. oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
      8. oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:366)
      9. oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:752)
      10. oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:366)
      11. oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
      12. oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
      13. oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
      14. oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
      15. oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)
      16. oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207)
      17. oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:157)
      17 frames
    3. Hibernate EJB
      InjectedDataSourceConnectionProvider.getConnection
      1. org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:70)
      1 frame
    4. Hibernate
      LogicalConnectionImpl.getConnection
      1. org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:278)
      2. org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297)
      3. org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)
      3 frames
    5. org.hibernate.engine
      AbstractProxyHandler.invoke
      1. org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler.extractPhysicalConnection(ConnectionProxyHandler.java:82)
      2. org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler.continueInvocation(ConnectionProxyHandler.java:138)
      3. org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
      3 frames
    6. Unknown
      $Proxy36.prepareStatement
      1. $Proxy36.prepareStatement(Unknown Source)
      1 frame
    7. Hibernate
      QueryImpl.list
      1. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:147)
      2. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:166)
      3. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:145)
      4. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1720)
      5. org.hibernate.loader.Loader.doQuery(Loader.java:828)
      6. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)
      7. org.hibernate.loader.Loader.doList(Loader.java:2447)
      8. org.hibernate.loader.Loader.doList(Loader.java:2433)
      9. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2263)
      10. org.hibernate.loader.Loader.list(Loader.java:2258)
      11. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:470)
      12. org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:355)
      13. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:195)
      14. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1215)
      15. org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
      15 frames
    8. Hibernate EJB
      CriteriaQueryCompiler$3.getSingleResult
      1. org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:284)
      2. org.hibernate.ejb.criteria.CriteriaQueryCompiler$3.getSingleResult(CriteriaQueryCompiler.java:258)
      2 frames
    9. mycompany.services.impl
      JobServiceImpl.getNumberOfJobs
      1. mycompany.services.impl.JobServiceImpl.getNumberOfJobs(JobServiceImpl.java:51)
      1 frame
    10. mycompany.controller
      ExecJobController.execJobList
      1. mycompany.controller.ExecJobController.execJobList(ExecJobController.java:78)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    12. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
      2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
      2 frames
    13. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      8. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      8 frames
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      2 frames
    15. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      10 frames
    16. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
      3 frames
    17. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames