LinkedBlockingQueue doenst accept all elements
<p>I've got a pretty weird problem.</p>

<p>I am building a linkchecker for a coremedia website. It should check ExternalPageLinks and LinkObjects. 
I get the documents from the contentserver and make checkitems out of these documents. 
In this case I get 11 documents to check. But when I will put them all in the queue, I have the problem, once i put one item in the queue, the queues empties itself the next moment. </p>

<p>this happens for the first five elements. for every loop run the queue's size is set to 0. But if get to the sixt element, from now on the items are stored correctly in the queue.</p>

<p>I dont get why. Colleaques cant help me either. </p>

<p>Here is the relevant code.</p>

<pre><code>try {
      documents = getMipBeanTools().queryMipBeansByPathsAndType(mandants, ExternalPageMB.CONTENTTYPE_EXTERNALPAGE, " blnSearch=1", true, ExternalPageMB.class);
      iter = documents.iterator();
      if (getLog().isDebug()) {
        getLog().debug("got " + documents.size() + " items for client " + getMandant());
      }
      while (iter.hasNext()) {
        try {
          extPage = (ExternalPageMB) iter.next();
          if (!isLinkCheckerEnabled(extPage)) {
            if (getLog().isDebug()) {
              getLog().debug("linkchecker is disabled for  ExternalPage " + extPage + " in client " + getMandant());
            }
            continue;
          }
          CheckItem lce = getLinkCheckItem(extPage);
          queue.add(lce);
        } catch (Throwable t) {
          if (getLog().isError()) {
            getLog().error("failed to process ExternalPage " + extPage , t);
          }  
          continue;
        }
      }
    }   
</code></pre>
