title: Passing XML as a CLOB to Oracle gives me "ORA-22922: nonexistent LOB value" error
body: <p>I am building a web service, which takes an input XML in the payload and stores it in the database. </p>
  
  <p>In the DAO layer, I am creating a clob object with the XML String like:</p>
  
  <pre><code>CLOB clob = CLOB.createTemporary(conn,false,CLOB.MODE_READWRITE);
              clob.putString(1,inputXml);
  </code></pre>
  
  <p>I pass this clob object to Stored Procedure:</p>
  
  <pre><code>declareParameter(new SqlParameter("i_xml", OracleTypes.CLOB));
  </code></pre>
  
  <p>and in the executable method :</p>
  
  <pre><code>params.put("i_xml",clob);       
  Map&lt;?, ?&gt; result = execute(params);
  </code></pre>
  
  <p>So, when I call this web service, I can see that the XML is being sent to the Oracle DB properly, but I get an error from Database saying :</p>
  
  <pre><code>System Error occured while Creating ORA-22922: nonexistent LOB value
  </code></pre>
  
  <p>Kindly let me know how to fix this issue. Thanks in advance.</p>