472,143 Members | 1,113 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

java.lang.ArrayIndexOutOfBoundsException when i want connect me to Oracle 9i

CM
Hi,

when i want connect me in my BD with a JSP (with this simple code),
this exception is throw.

Thank's for ur help
Mathieu

CODE of my JSP
---------------------
.... blah ....
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@139 .165.123.198:1521:fultrans
","fultrans","g4g8888v");

.... blah ....
EXCEPTION
----------------
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.jdbc.util.CryptDES.scrunch(CryptDES.java)
at oracle.jdbc.util.CryptDES.des_dec(CryptDES.java)
at oracle.jdbc.util.WorkBench.decrypt(WorkBench.java)
at oracle.jdbc.ttc7.O3log.(O3log.java)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.j ava)
at oracle.jdbc.driver.OracleConnection.(OracleConnect ion.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInsta nce(OracleDriver.java)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriv er.java)
at java.sql.DriverManager.getConnection(DriverManager .java:512)
at java.sql.DriverManager.getConnection(DriverManager .java:171)
at
org.apache.jsp.SelectPersUtilSsSaisie_jsp._jspServ ice(SelectPersUtilSsSaisie
_jsp.java:55)
Jul 19 '05 #1
1 10505
In article <c1********@aix4.segi.ulg.ac.be>, CM says...

Hi,

when i want connect me in my BD with a JSP (with this simple code),
this exception is throw.

Thank's for ur help
Mathieu

CODE of my JSP
---------------------
... blah ....
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@13 9.165.123.198:1521:fultrans
","fultrans","g4g8888v");

... blah ....
EXCEPTION
----------------
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.jdbc.util.CryptDES.scrunch(CryptDES.java)
at oracle.jdbc.util.CryptDES.des_dec(CryptDES.java)
at oracle.jdbc.util.WorkBench.decrypt(WorkBench.java)
at oracle.jdbc.ttc7.O3log.(O3log.java)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.j ava)
at oracle.jdbc.driver.OracleConnection.(OracleConnect ion.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInsta nce(OracleDriver.java)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriv er.java)
at java.sql.DriverManager.getConnection(DriverManager .java:512)
at java.sql.DriverManager.getConnection(DriverManager .java:171)
at
org.apache.jsp.SelectPersUtilSsSaisie_jsp._jspSer vice(SelectPersUtilSsSaisie
_jsp.java:55)

Sounds like a bug to me. I don't see how your code could cause this error. I
would get the latest version of the Oracle client code for your version
(whatever it is) and try the connection again. If you have the latest and you
have a support contract, I would contact Oracle Support for the help.

Rick

Rick Wessman
Oracle Corporation
The opinions expressed above are mine and do not necessarily reflect
those of Oracle Corporation.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Mark Fink | last post: by
2 posts views Thread by yeshello54 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.