473,569 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java.lang.Array IndexOutOfBound sException 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.r egisterDriver(n ew oracle.jdbc.dri ver.OracleDrive r());
Connection conn =
DriverManager.g etConnection("j dbc:oracle:thin :@139.165.123.1 98:1521:fultran s
","fultrans","g 4g8888v");

.... blah ....
EXCEPTION
----------------
java.lang.Array IndexOutOfBound sException: 0
at oracle.jdbc.uti l.CryptDES.scru nch(CryptDES.ja va)
at oracle.jdbc.uti l.CryptDES.des_ dec(CryptDES.ja va)
at oracle.jdbc.uti l.WorkBench.dec rypt(WorkBench. java)
at oracle.jdbc.ttc 7.O3log.(O3log. java)
at oracle.jdbc.ttc 7.TTC7Protocol. logon(TTC7Proto col.java)
at oracle.jdbc.dri ver.OracleConne ction.(OracleCo nnection.java)
at oracle.jdbc.dri ver.OracleDrive r.getConnection Instance(Oracle Driver.java)
at oracle.jdbc.dri ver.OracleDrive r.connect(Oracl eDriver.java)
at java.sql.Driver Manager.getConn ection(DriverMa nager.java:512)
at java.sql.Driver Manager.getConn ection(DriverMa nager.java:171)
at
org.apache.jsp. SelectPersUtilS sSaisie_jsp._js pService(Select PersUtilSsSaisi e
_jsp.java:55)
Jul 19 '05 #1
1 10671
In article <c1********@aix 4.segi.ulg.ac.b e>, 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.dri ver.OracleDrive r());
Connection conn =
DriverManager. getConnection(" jdbc:oracle:thi n:@139.165.123. 198:1521:fultra ns
","fultrans"," g4g8888v");

... blah ....
EXCEPTION
----------------
java.lang.Arra yIndexOutOfBoun dsException: 0
at oracle.jdbc.uti l.CryptDES.scru nch(CryptDES.ja va)
at oracle.jdbc.uti l.CryptDES.des_ dec(CryptDES.ja va)
at oracle.jdbc.uti l.WorkBench.dec rypt(WorkBench. java)
at oracle.jdbc.ttc 7.O3log.(O3log. java)
at oracle.jdbc.ttc 7.TTC7Protocol. logon(TTC7Proto col.java)
at oracle.jdbc.dri ver.OracleConne ction.(OracleCo nnection.java)
at oracle.jdbc.dri ver.OracleDrive r.getConnection Instance(Oracle Driver.java)
at oracle.jdbc.dri ver.OracleDrive r.connect(Oracl eDriver.java)
at java.sql.Driver Manager.getConn ection(DriverMa nager.java:512)
at java.sql.Driver Manager.getConn ection(DriverMa nager.java:171)
at
org.apache.jsp .SelectPersUtil SsSaisie_jsp._j spService(Selec tPersUtilSsSais ie
_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
5645
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 connect to the DB I get the following exception at java.lang.ClassLoader$NativeLibrary.load(Native Method) at...
12
5899
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 says: usage: java fit.FitServer host port socketTicket -v verbose I think this is because I do not understand the jython mechanism for...
6
6461
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: java.lang.ExceptionInInitializerError:
2
6937
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
22
40981
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 Queue" run Producent queue1 queue2 queue3 queue4 maybe you will se something i dont see
1
234
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
9773
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 array. Thus i'm converting a byte array to sbyte array and sending through web service. The converted SByte contains negative numbers wihch are resulting...
2
3740
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 when i do the following. if you add a contact with up to 13 fields it will be stored in a data structure. i have a tabbed pane that will show six of...
0
7931
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8139
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7682
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7984
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
954
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.