Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Location
    Delhi, India
    Posts
    15

    Unanswered: Cannot create PoolableConnectionFactory

    Hi ,

    I am getting following error while getting connection form datasource:
    Please help, what's the reason:


    Code:
    java.lang****ntimeException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Unexpected throwable caught java.lang.StringIndexOutOfBoundsException: String index out of range: 11)
    	at com.nits.auth.RACFClientAuthorizationProvider.getAuthority(RACFClientAuthorizationProvider.java:40)
    	at com.nits.service.ClientAuthorization.getAuthority(ClientAuthorization.java:52)
    	at com.nits.service.ClientAuthorization.getAuthority(ClientAuthorization.java:67)
    	at com.nits.auth.EmlVwrUserCredentials.getAuthority(EmlVwrUserCredentials.java:99)
    	at com.nits.auth.EmlVwrAuthController.onSuccessfulAuthentication(EmlVwrAuthController.java:126)
    	at com.nits.cat.fndt.auth.impl.spring.AuthorizationController.login(AuthorizationController.java:91)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:473)
    	at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:410)
    	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at com.nits.filters.LoggingFilter.doFilter(LoggingFilter.java:136)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at com.nits.filters.ExceptionHandlerFilter.doFilter(ExceptionHandlerFilter.java:90)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread****nIt(LeaderFollowerWorkerThread.java:80)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable****n(ThreadPool.java:684)
    	at java.lang.Thread****n(Thread.java:619)
    Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Unexpected throwable caught java.lang.StringIndexOutOfBoundsException: String index out of range: 11)
    	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
    	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
    	at com.nits.cat.fndt.auth.racf.RACFProfileListUtil.listProfilesForUser(RACFProfileListUtil.java:50)
    	at com.nits.auth.RACFClientAuthorizationProvider.getAuthority(RACFClientAuthorizationProvider.java:35)
    	... 39 more
    Caused by: com.ibm.db2.jcc.c.SqlException: Unexpected throwable caught java.lang.StringIndexOutOfBoundsException: String index out of range: 11
    	at com.ibm.db2.jcc.uw.UWConnection.a(UWConnection.java:484)
    	at com.ibm.db2.jcc.uw.UWConnection.(UWConnection.java:248)
    	at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:236)
    	at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
    	at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
    	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
    	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
    	... 42 more

  2. #2
    Join Date
    Oct 2004
    Location
    DELHI INDIA
    Posts
    338
    you should check the setting at Java end. It can be linked to DB2 provided you are getting any SQL error code like "SQL0270N" etc.

    Jayanta Datta
    DB2 UDB DBA
    IBM India, Global Delivery
    New Delhi

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •