Announcement Announcement Module
No announcement yet.
org.springframework.jdbc.CannotGetJdbcConnectionException Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • org.springframework.jdbc.CannotGetJdbcConnectionException

    We are using springframework and in our QA and stagging environment we are getting org.springframework.jdbc.CannotGetJdbcConnectionEx ception:
    and tion:.
    We are not getting such exception in unit testing and development environment. Is Spring database connection management is not working???????

  • #2
    Can you post the stack trace? Are you sure that the configuration in your production environment points to a real database?



    • #3
      Thanks for your response. As per your request i am putting stack trace. Actually we have left connection management on Spring, but some how connections are not released back to database.
      17:17:24 04/22/2005 [Servlet.Engine.Transports : 35] ERROR - RHS of #set statement is null. Context will not be modified. general/dump_xml.vm [line 1, column 1]
      17:17:24 04/22/2005 [Servlet.Engine.Transports : 7] WARN org.springframework.web.servlet.DispatcherServlet - Handler execution resulted in exception - forwarding to resolved error view
      org.springframework.jdbc.CannotGetJdbcConnectionEx ception: Could not get JDBC connection; nested exception is tion: Connection not available, Timed out wait
      ing. tion: Connection not available, Timed out waiting.
      at ection( Code))
      at ection( Code))
      at org.springframework.jdbc.datasource.DataSourceUtil s.doGetConnection( Code))
      at org.springframework.jdbc.datasource.DataSourceUtil s.getConnection( Compiled Code))
      at org.springframework.jdbc.datasource.DataSourceUtil s.getConnection( Compiled Code))
      at org.springframework.jdbc.core.JdbcTemplate.execute ( Code))
      at org.springframework.jdbc.core.JdbcTemplate.query(J Code))
      at org.springframework.jdbc.core.JdbcTemplate.query(J Compiled Code))
      at org.springframework.jdbc.core.JdbcTemplate.query(J Compiled Code))
      at org.springframework.jdbc.object.SqlQuery.execute(S Code))
      at org.springframework.jdbc.object.SqlQuery.execute(S
      at java.lang.reflect.Method.invoke(Native Method)
      at org.springframework.web.servlet.mvc.multiaction.Mu ltiActionController.invokeNamedMethod(MultiActionC
      at org.springframework.web.servlet.mvc.multiaction.Mu ltiActionController.handleRequestInternal(MultiAct
      at org.springframework.web.servlet.mvc.AbstractContro ller.handleRequest( d Code))
      at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda Code))
      at org.springframework.web.servlet.DispatcherServlet. doService( Code))
      at org.springframework.web.servlet.FrameworkServlet.s erviceWrapper( Code))
      at org.springframework.web.servlet.FrameworkServlet.d oGet(
      at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
      at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
      at nce.doService( Code))
      at vlet._service( Code))
      at ervice( Code))
      at vlet.service( Compiled Code))
      at rvice( Code))
      at nceState.dispatch( Compiled Code))
      at erence.dispatch( ned Compiled Code))
      at cher.handleWebAppDispatch(WebAppRequestDispatcher. java(Compiled Code))
      at cher.dispatch( d Code))
      at cher.forward( Code))
      at d( Code))
      at vocationHook( Code))
      at ocation.handleInvocation( piled Code))
      at r.dispatchByURI( led Code))
      at patcher.service( Code))
      at Request( Code))
      at t( Code))
      at java(Compiled Code))
      at$ ava:672)


      • #4
        What's your transaction management strategy?


        • #5

          Was there ever a resolution to this issue or was it user error and never closed?