title: java.sql.SQLException: ORA-03115: unsupported network datatype or representation
body: <p>I'm Using Oracle 11g database. When i try to access data from db it was showing the error java.sql.SQLException: ORA-03115: unsupported network datatype or representation. I'm not understanding what this error means..</p>
  
  <p>my code is :</p>
  
  <pre><code> String uname,pass;
      ResultSet rs = null;
      response.setContentType("text/html");
      PrintWriter out=response.getWriter();
    try
    {
      uname=request.getParameter("uname");
      pass=request.getParameter("pass");
      Connection con=prepareConnection();
      String Query="select uname from passmanager where pass=?";
      PreparedStatement ps=con.prepareStatement(Query);
      ps.setString(1,pass);
      rs=ps.executeQuery(Query);
      if (rs.next() &amp;&amp; uname.equalsIgnoreCase(rs.getString("uname")) || uname.equalsIgnoreCase(rs.getString("email"))) {
      HttpSession session = request.getSession(true);
      session.setAttribute("uname", rs.getString(1));
  
      ServletContext context = getServletContext();
      RequestDispatcher dispatcher = context
                      .getRequestDispatcher("/profile");
      dispatcher.forward(request, response);
    }
  </code></pre>
  
  <p>Any one help me to solve this problem..</p>