commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neuman, Ben J., A&M IRM" <bjneu...@hq.afis.osd.mil>
Subject RE: DBCP: getConnection() ArrayIndexOutOfBoundsException
Date Thu, 22 Jul 2004 20:13:08 GMT
Thank you!!! I did some searching but I guess I'm Google challenged. 
I love open source support!

-----Original Message-----
From: Charles Hudak [mailto:charles.hudak@cardionet.com]
Sent: Thursday, July 22, 2004 4:08 PM
To: Jakarta Commons Users List
Subject: RE: DBCP: getConnection() ArrayIndexOutOfBoundsException


Google is your friend....

http://www.orafaq.com/msgboard/java/messages/1488.htm

-----Original Message-----
From: Neuman, Ben J., A&M IRM [mailto:bjneuman@hq.afis.osd.mil] 
Sent: Thursday, July 22, 2004 12:57 PM
To: 'commons-user@jakarta.apache.org'
Subject: DBCP: getConnection() ArrayIndexOutOfBoundsException


Hi. Hope someone can help me out with this one. I am getting an
ArrayIndexOutOfBoundsException at datasource.getConnection().
 
I am using DBCP 1.2.1 with Tomcat 5, Oracle 9i.
 
The following is stripped from my tomcat context config...
 
<Resource name="jdbc/xxxDS" auth="Container"
              type="javax.sql.DataSource"/> 
 
    <ResourceParams name="jdbc/xxxDS">
        <parameter>
            <name>factory</name>
 
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
        </parameter>
        <parameter>
            <name>driverClassName</name>
            <value>oracle.jdbc.driver.OracleDriver</value>
        </parameter>
        <parameter>
            <name>url</name>
            <value>jdbc:oracle:thin:@xxx:1521:oasdpa</value>
        </parameter>
        <parameter>
            <name>username</name>
            <value>xxx</value>
        </parameter>
        <parameter>
            <name>password</name>
            <value>xxx</value>
        </parameter>
        <parameter>
            <name>maxActive</name>
            <value>2</value>
        </parameter>
        <parameter>
            <name>maxIdle</name>
            <value>1</value>
        </parameter>
        <parameter>
            <name>maxWait</name>
            <value>-1</value>
        </parameter>        
    </ResourceParams> 
 
Then there is my web.xml...
 
<resource-ref>
    <description>HRMS Oracle Datasource</description>
    <res-ref-name>jdbc/hrmsDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>
 
Finally, here is the exception....
 
java.lang.ArrayIndexOutOfBoundsException: 7
        at oracle.security.o3logon.C0.r(C0)
        at oracle.security.o3logon.C0.l(C0)
        at oracle.security.o3logon.C1.c(C1)
        at
oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelp
er)
        at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)
        at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)
        at
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)
        at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:
365)
        at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
        at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverC
onne
ctionFactory.java:37)
        at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableCon
nect
ionFactory.java:290)
        at
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicD
ataS
ource.java:877)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.jav
a:851)
        at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:5
40)
        at
oasd.servlets.ImageServlet.getConnection(ImageServlet.java:94)

Any help would be greatly appreciated!
 
 
 
Ben Neuman, Ctr.
Impact Innovations Group, LLC
Software Developer
OASD(PA)-IRM
703 428-0239
 <mailto:bjneuman@hq.afis.osd.mil> bjneuman@hq.afis.osd.mil
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message