title: Caused by: org.hibernate.HibernateException: Found shared references to a collection
body: <p>I am running this exception:  </p>
  
  <pre><code>Caused by: org.hibernate.HibernateException: Found shared references to a collection: path.Object.listObjects  
  </code></pre>
  
  <p>This is my code:<br>
  <strong>Object.java</strong>  </p>
  
  <pre><code>protected List&lt;ListedObject&gt; listObjects ;  
  
  ....  
  @OneToMany(cascade=CascadeType.ALL)
      @JoinTable(
              name = "object_list", 
              joinColumns=@JoinColumn(name="object_id", unique=true)  ,
              inverseJoinColumns=@JoinColumn(name="list_id")
      )
      public List&lt;Annotation&gt; getListObjects() {
          return listObjects;
      }
      public void setListObjects(List&lt;ListedObject&gt; listObjects){
          this.listObjects = listObjects;
      }
  </code></pre>
  
  <p><strong>ListedObject.java</strong>  </p>
  
  <pre><code>private Object object;  
  
  ...  
  
  @ManyToOne(cascade=CascadeType.MERGE)
      @JoinTable(name = "object_list", 
              joinColumns=@JoinColumn(name="list_id"),
              inverseJoinColumns=@JoinColumn(name="object_id"))
      public MediaObject getObject() {
          return mediaObject;
      }
  
      public void setObject(Object object) {
          this.object = object;
      }  
  </code></pre>
  
  <p>Could anybody help me on this, please??<br>
  Thanks in advance!</p>
  
  <p><strong>EDIT</strong> the point when the exception starts:  </p>
  
  <pre><code>ctx = new ClassPathXmlApplicationContext("/applicationContext.xml");  
  </code></pre>
  
  <p>And this comes from:  </p>
  
  <pre><code>5088 [main] WARN org.apache.commons.vfs.impl.StandardFileSystemManager - no protocol: VFSproviders.xml
  java.net.MalformedURLException: no protocol: VFSproviders.xml  
  </code></pre>
  
  <p>I don't really know what for is it, but <code>VFSproviders.xml</code>  is in the project, and it holds:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;providers&gt;
      &lt;provider class-name="org.apache.commons.vfs.provider.zip.ZipFileProvider"&gt;
          &lt;scheme name="zip"/&gt;
      &lt;/provider&gt;
      &lt;extension-map extension="zip" scheme="zip"/&gt;
      &lt;mime-type-map mime-type="application/zip" scheme="zip"/&gt;
      &lt;provider class-name="org.apache.commons.vfs.provider.ftp.FtpFileProvider"&gt;
          &lt;scheme name="ftp"/&gt;
          &lt;if-available class-name="org.apache.commons.net.ftp.FTPFile"/&gt;
      &lt;/provider&gt;
      &lt;default-provider class-name="org.apache.commons.vfs.provider.local.DefaultLocalFileProvider"/&gt;
  &lt;/providers&gt;
  </code></pre>
  
  <p>I am completely lost in this part, any help would be really appreciated. Thanks</p>