Return-Path: X-Original-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DFC27592 for ; Fri, 5 Aug 2011 09:42:06 +0000 (UTC) Received: (qmail 8967 invoked by uid 500); 5 Aug 2011 09:42:05 -0000 Delivered-To: apmail-incubator-connectors-dev-archive@incubator.apache.org Received: (qmail 8041 invoked by uid 500); 5 Aug 2011 09:41:55 -0000 Mailing-List: contact connectors-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-dev@incubator.apache.org Received: (qmail 7600 invoked by uid 99); 5 Aug 2011 09:41:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 09:41:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of daddywri@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qy0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 09:41:45 +0000 Received: by qyk4 with SMTP id 4so257102qyk.6 for ; Fri, 05 Aug 2011 02:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=WxfUyXVm1FBlEiVIuU1s9xVYnAi4JeQUnpHgZUFvfwQ=; b=IxmQR8kkGJnclrzMhjPjUcJwKsCjiVAN7D+F57V4rdSAb9KYOVz85KU5NJV/VKI6wg gBIimCsR/q0/RDiNg/VBdD33wmiRtlBDyFXDjdYWndM3VeIsasOkTMNDidiv0zvP19Qz 8cjZumCCRecVZuimDFU0Yp+sfHaEINTrKDAFw= MIME-Version: 1.0 Received: by 10.229.24.193 with SMTP id w1mr1514412qcb.150.1312537284614; Fri, 05 Aug 2011 02:41:24 -0700 (PDT) Received: by 10.229.81.11 with HTTP; Fri, 5 Aug 2011 02:41:24 -0700 (PDT) In-Reply-To: <4E3B8CC8.4040602@farzad.net> References: <4E3B8CC8.4040602@farzad.net> Date: Fri, 5 Aug 2011 05:41:24 -0400 Message-ID: Subject: Re: Strange Anomaly From: Karl Wright To: connectors-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The addOrReplaceDocument method is NEVER called unless the thread context has been set (and not cleared). So that is not the explanation. Karl On Fri, Aug 5, 2011 at 2:25 AM, Farzad Valad wrote: > I wonder if this error is related to the fact that it seems > clearThreadContext is called before my method finished? Or is this a logg= er > anomaly and clearThreadContext was called after the error was tossed? > =A0Thanks! > > DEBUG 2011-08-05 01:14:51,005 [Worker thread '25'] > (DupFinderConnector.java:474) - Releaseing connection handle > ERROR 2011-08-05 01:14:51,042 [Worker thread '25'] (WorkerThread.java:893= ) - > Exception tossed: txn [createtopic] failed with error > java.lang.NullPointerException > org.apache.manifoldcf.core.interfaces.ManifoldCFException: txn [createtop= ic] > failed with error java.lang.NullPointerException > =A0 =A0at com.systemware.ci.sdk.CIConnector.sendTxn(CIConnector.java:277) > =A0 =A0at com.systemware.ci.sdk.CIConnector.sendTxn(CIConnector.java:315) > =A0 =A0at > org.apache.manifoldcf.agents.output.dupfinder.DupFinderConnector.captureU= niqueDoc2CI(DupFinderConnector.java:370) > =A0 =A0at > org.apache.manifoldcf.agents.output.dupfinder.DupFinderConnector.addOrRep= laceDocument(DupFinderConnector.java:195) > =A0 =A0at > org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.addOrR= eplaceDocument(IncrementalIngester.java:1433) > =A0 =A0at > org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.perfor= mIngestion(IncrementalIngester.java:418) > =A0 =A0at > org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.docume= ntIngest(IncrementalIngester.java:313) > =A0 =A0at > org.apache.manifoldcf.crawler.system.WorkerThread$ProcessActivity.ingestD= ocument(WorkerThread.java:1565) > =A0 =A0at > org.apache.manifoldcf.crawler.connectors.filesystem.FileConnector.process= Documents(FileConnector.java:275) > =A0 =A0at > org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.processD= ocuments(BaseRepositoryConnector.java:423) > =A0 =A0at > org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:5= 64) >