0

Hi All,

I am able to connect to the database from backend that is toad.But from the java application i can't . The error is from the line

Connection conn =

      DriverManager.getConnection

      ("jdbc:oracle:thin:@vrs1.india.mitey.com:1591:dapps");

I am getting the following error:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7
	at oracle.security.o3logon.C1.r(C1)
	at oracle.security.o3logon.C1.l(C1)
	at oracle.security.o3logon.C0.e(C0)
	at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelper)
	at oracle.jdbc.ttc7.O3log.<init>(O3log.java:287)
	at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:227)
	at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
	at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
	at java.sql.DriverManager.getConnection(DriverManager.java:525)
	at java.sql.DriverManager.getConnection(DriverManager.java:171)
	at parts.JdbcTest.main(JdbcTest.java:43)

Pl. kindly help if any ideas pl.kindly suggest.

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by palavi
0

Hi,

Thank you for your response.. i tried deleting the entire project.. i changed context.xml and web.xml...

I copied the entire project newly from SVN... Still throwing same error
for others its in other machine database is working but not in my system.

all data is corecct in web.xm context.aml and tns.ora also .. all required jar files are present..

I am not able to figure out what s causing problem in connection to this DATABASE..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.