title: Pass array from Java to Oracle: java.sql.SQLException: Fail to convert to internal representation:error
body: <p>I have the following in DAO and when I execute, I am getting </p>
  
  <blockquote>
    <p>java.sql.SQLException: 
                 Fail to convert to internal representation: test.Project@843</p>
  </blockquote>
  
  <p>DAO Code</p>
  
  <pre><code>List projectList = new LinkedList();
  
  public void saveRecord(List&lt;Project&gt; project) 
                         throws DatabaseException,SQLException {
  
      for (Project items: project) {
          insertRecord(items);
      }
  }
  
  private void insertRecord(Project project) throws SQLException {
      projectList.add(project);
      try{
          ArrayDescriptor desc = 
                  ArrayDescriptor.createDescriptor("MY_ARRAY", dbConn);
  
          // execpetion in this line
          ARRAY arr = new ARRAY(desc, dbConn, (Object[])projectList.toArray());
  </code></pre>
  
  <p>How can I resolve this issue?</p>
  
  <p><strong>Edit 1</strong></p>
  
  <pre><code>CREATE OR REPLACE TYPE project_type as object( 
  proj_id varchar2 (10),
  proj_title varchar2 (10));
  
  
  create or replace  type my_array as Table of project_type;
  </code></pre>