473,396 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 10642
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
6
by: ganesh.m | last post by:
Hi, I am new to DB2. I am getting this error while loading the DB2Driver. I don't have any idea about where i might have gone wrong. please help me. Below is the stack trace. Stack Trace:...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
22
oll3i
by: oll3i | last post by:
i get Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 at Producent.main(producent.java:605) when i run it from bat @start "Supply Chain Management-Producer to...
1
by: CM | last post by:
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 ---------------------
2
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte...
2
by: yeshello54 | last post by:
so here is my problem...in a contact manager i am trying to complete i have ran into an error..we have lots of code because we have some from class which we can use...anyways i keep getting an error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.