title: Getting error java.sql.SQLException: Protocol violation
body: <p>From last few days I am scratching my head because of an exception mentioned below.
  First of all I would request you <strong>not to mark it as duplicate</strong> as I already went through 
  hundreds of Q &amp; A and only in few cases answers are provided which didnt work out in my case. </p>
  
  <p>Currently I an facing Protocol Violation Exception</p>
  
  <p><strong>Stack Trace :</strong></p>
  
  <blockquote>
    <p>java.sql.SQLException: Protocol violation at
    oracle.jdbc.dbaccess.DBError.check_error(DBError.java:418) at
    oracle.jdbc.ttc7.Oclose.receive(Oclose.java:136) at
    oracle.jdbc.ttc7.TTC7Protocol.closeQuery(TTC7Protocol.java:406) at
    oracle.jdbc.driver.OracleResultSet.internal_close(OracleResultSet.java:145)
    at oracle.jdbc.driver.OracleResultSet.next(OracleResultSet.java:81) at
    org.apache.jsp.ditLogin_005f2_jsp._jspService(ditLogin_005f2_jsp.java:171)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p>
  </blockquote>
  
  <p>Its occurring in only one environment/server whereas in other environment/server its working fine
  though both the servers are having same configuration.</p>
  
  <p><strong>Configuration :</strong></p>
  
  <p><strong>Database : Oracle 11G</strong></p>
  
  <p><strong>JVM  : 64 Bit</strong></p>
  
  <p><strong>Driver (OJDBC) : ojdbc6.jar</strong></p>
  
  <p><strong>JDK : 1.6</strong></p>
  
  <p>In some websites I found that password expiry date could be the reason. But in 
  both the servers its null which means unlimited I guess.
  So any other configuration left in which I have to look into ?
  Please help me. Thanks in advance.</p>