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.

Recommended Answers

All 3 Replies

Hi Pallavi,
Please try deleting driver info & re-create again.
Some data might have been deleted.

Find the complete list of providers here.

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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.