This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes java.sql.SQLException: Protocol violation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "java.sql.SQLException: Protocol violation" Watch "java.sql.SQLException: Protocol violation" New topic
Author

java.sql.SQLException: Protocol violation

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Hi,

I was just wondering if anybody has faced this problem in past when i am trying to get the connection

Also I am trying to connect to Oracle 9i from JSDK 1.4.2_08_b3 and including proper classes12.zip in the classpath



let me know if u have any suggestions.

Cheers,
Rahul


Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Thanks Guys !

I got the solution myself... the problem was my DB connecting password was showing an error ORA-28002: the password will expire within 25 day.

As soon as i reset the password its working fine now.

Cheers,
Rahul
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32635
    
215

Rahul,
Thanks for posting the solution for others who come across this thread in the future!


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
RashMin Gadhavi
Greenhorn

Joined: Feb 12, 2008
Posts: 15
Jeanne Boyarsky wrote:Rahul,
Thanks for posting the solution for others who come across this thread in the future!


Hello Rahul!

It just came across the same problem. Our Oracle Version is 11gR2 and I was getting the same Password expiry problem on Oracle. The DBs were locked, once we reset the password and un-lock the DB, problem got resolved!

Thank a lot !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.sql.SQLException: Protocol violation
 
It's not a secret anymore!