title: String length issue in java
body: <p>I am getting data from a DB procedure that returns an XML in an output param, When I execute this procedure into DB it returns the complete XML, but when I execute it using java, it only prints 4000 characters. Here is my code:</p>
  
  <pre><code>String sql = "{call SP_NAME(?)}";
  try {
      CallableStatement stmt = DataAccess.databaseConnection
              .prepareCall(sql);
      stmt.registerOutParameter(1,java.sql.Types.VARCHAR);
  
      stmt.execute();
      String result=(String)stmt.getNString(1);               
      S.O.P(result);//Printing result
  } catch (Exception e) {
      System.out.println(e);
  }
  </code></pre>
  
  <p>What is the reason for this? Can anyone help me to find out the issue?</p>