Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 44117 invoked from network); 1 Aug 2010 23:04:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Aug 2010 23:04:09 -0000 Received: (qmail 94512 invoked by uid 500); 1 Aug 2010 23:04:09 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 94451 invoked by uid 500); 1 Aug 2010 23:04:09 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 94443 invoked by uid 99); 1 Aug 2010 23:04:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 23:04:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hirsch.dick@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-ew0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 23:04:01 +0000 Received: by ewy7 with SMTP id 7so1190611ewy.6 for ; Sun, 01 Aug 2010 16:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+S3ax8mWM186Klz/qrmdB/QK28EV1gWT5oO5cz1iAYo=; b=m3JNkAxQ1xoLNf8yzvMHbBK/+a7Yio9RrZCHMINRv8G62QDd326QuMdgJm8mnQTFtR 1X2yHBwTr94sNclj4NIVwq3ZFx/2fOzn3TbiL2cj2DxGf+cV9mFZ4QIDu0NIe1nRtG80 NB7VmCTq8wyqj7Zx5FyFBmD0g24JLZAtf6Sps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=u2Vm01xck+FXQ0VI8e5BxZP8kY7fz97SYqtOzdDHuaenxd5B16fe6RULV/Hrc8qAhS yweNUZ7POzFBq5eGlnmeSkTZR2Xw5wGJyhfPQlYyufVi/RCv5plJZYUy3m0khB9DXX8W 1mFdtMhEa2pJrD2jVQbCEn/QyXPc5J0k/YJs8= MIME-Version: 1.0 Received: by 10.213.63.142 with SMTP id b14mr3324126ebi.33.1280703820866; Sun, 01 Aug 2010 16:03:40 -0700 (PDT) Received: by 10.213.28.129 with HTTP; Sun, 1 Aug 2010 16:03:40 -0700 (PDT) In-Reply-To: References: <5732C36264DE4025868DAD5733027510@imtiaz20100131> <50BF7B0DD0AF471F807AA1326364F792@imtiaz20100131> Date: Sun, 1 Aug 2010 16:03:40 -0700 Message-ID: Subject: Re: Search error when using JDBC for search (was "Metadata handling") From: Richard Hirsch To: esme-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'm checking my email at about the half way point of my vacation. You can duplicate the problem by attempting to use the JDBC driver locally - just copy the JDBC details from Boot.scala. The search results should be the same irregardless of whether you use file or JDBC. I'm assuming that problem is associated more with the use of JBC in compass - ideally you could add better exception handling in Boot.scala. I'm assuming the jdbc-related problem alreadz occurs during start-up but just isn't displayed. On Sat, Jul 31, 2010 at 6:51 AM, Imtiaz Ahmed H E wro= te: > Ethan or anyone else, > > I have a checkout of ESME readonly without local modifications and search= in > the non-jdbc/non-jndi case itself *appears* to be not working on my syste= m ( > i.e., in the file system index case!). > > I think I'm not searching for a term that actually exists. > > So, a basic question, > > If I'm logged in and enter a term in the search box and hit return, where= is > esme supposed to search for the term. I don't know till today. Is it > supposed to look for the term in *all* messages in the db regardless of > user/pool etc. If not, in which subset is it supposed to look? > > Imtiaz > > --- Original Message ----- From: "Anne Kathrine Petter=C5=99e" > > To: > Sent: Friday, July 30, 2010 3:24 PM > Subject: Re: Search error when using JDBC for search (was "Metadata > handling") > > >> Hi, >> >> I am sorry but I cannot help out here either. >> >> Anne >> >> >> On 30 July 2010 09:59, Ethan Jewett wrote: >> >>> Hi Imtiaz, >>> >>> Unfortunately I do not know the answer to either of those questions >>> :-( I think we'll have to wait for Dick to give us more info on how he >>> does the Stax deployment and what worked before. >>> >>> Ethan >>> >>> On Friday, July 30, 2010, Imtiaz Ahmed H E wrote: >>> > Ethan, >>> > >>> > Couple of questions: >>> > >>> > 1. I'm not familiar with the Stax environment, so I wondered if Esme = > >>> > used >>> Derby (JavaDB) there too for the Esme store (nothing to do with search, >>> this >>> question). >>> > >>> > 2. Re search, is it/was it ever working with just jdbc not jndi. i.e, >>> with the setup of the compass config file, compass.jdbc.cfg.xml. >>> > I guess your answer will be the same as in your mail below... >>> > >>> > Imtiaz >>> > >>> > >>> > ----- Original Message ----- From: "Ethan Jewett" >>> > To: >>> > Sent: Thursday, July 29, 2010 5:28 PM >>> > Subject: Re: Search error when using JDBC for search (was "Metadata >>> handling") >>> > >>> > >>> > >>> > Hi Imtiaz, >>> > >>> > Hopefully Dick will see this and answer at some point, because he >>> > really knows. But I do believe that it was working on Stax using the >>> > JDBC connector and then stopped working. Stax has never allowed us to >>> > use the file system, so if it was ever working on Stax then it was >>> > using the JDBC connector. >>> > >>> > Thanks, >>> > Ethan >>> > >>> > On Thu, Jul 29, 2010 at 1:39 PM, Imtiaz Ahmed H E >>> wrote: >>> > >>> > Ethan, >>> > >>> > Need to know - >>> > >>> > Re ESME-205, viz, Search is Broken.... >>> > >>> > Has this been implemented in the first place, with jndi/jdbc I mean..= .? >>> And >>> > if it was, was it ever working ? >>> > >>> > Just getting into all the related stuff along with Lucene... >>> > >>> > Imtiaz >>> > >>> > ----- Original Message ----- From: "Imtiaz Ahmed H E" < >>> in.imtiaz@gmail.com> >>> > To: >>> > Sent: Monday, July 26, 2010 5:03 AM >>> > Subject: Re: Search error when using JDBC for search (was "Metadata >>> > handling") >>> > >>> > >>> > >>> > Will look into this and try and fix it asap. >>> > Getting to know Lucene etc...even bought the Lucene in Action book ! = > >>> > The >>> > Java eco-system never ceases to give you pleasure ! >>> > >>> > Imtiaz >>> > >>> > ----- Original Message ----- From: "Ethan Jewett" >>> > To: >>> > Sent: Thursday, July 22, 2010 12:21 PM >>> > Subject: Re: Search error when using JDBC for search (was "Metadata >>> > handling") >>> > >>> > >>> > Not in front of my computer now, so please forgive mistakes. >>> > >>> > My testing indicated that in the Compass object in Boot.scala the >>> > conf.buildCompass() method call was failing silently during the setup >>> > of the object. >>> > >>> > The exception then occurs later on when the system attempts to use th= e >>> > Compass.compass value, which I believe was never populated. >>> > >>> > So, the actual failure occurs in the SearchMgr object, I think, so it >>> > has Lift methods in the stack trace, but I don't think it's a Lift >>> > issue. I'm not sure why we don't see an exception bubble up from the >>> > buildCompass() method. >>> > >>> > That is unfortunately about as far as far as I got. >>> > >>> > Ethan >>> > >>> > On Thursday, July 22, 2010, Imtiaz Ahmed H E >>> wrote: >>> > >>> > >>> > I mean, is this a compass thing ? but why is the exception name not >>> > printed in the log... >>> > >>> > ----- Original Message ----- From: "Imtiaz Ahmed H E" >>> > >>> > To: >>> > Sent: Thursday, July 22, 2010 11:39 AM >>> > Subject: Re: Search error when using JDBC for search (was "Metadata >>> > handling") >>> > >>> > >>> > >>> > So that I can take a quick step forward, can you tell me, how is the >>> > following trace produced...is this a slf4j produced log message. >>> > >>> > Andwhy is the exception name itself, I mean , what it is, not printed >>> > along with the stack trace, how can I get it printed. >>> > >>> > Enclosing the entire for expression in the 'search' method in >>> > Message.scala in a try/catch expression doesn't seem to result in the >>> > exception being caught by it. Apparently caught earlier, how ? Is thi= s >>> > > a >>> > Lift thing...? >>> > >>> > ERROR - Array(org.apache.esme.model.Message$.search(Message.scala:152= ), >>> > org.apac >>> > >>> > >>> >>> he.esme.lib.SearchMgr$$anonfun$displaySearch$1$$anonfun$apply$1.apply(S= earchMgr. >>> > scala:69), >>> > org.apache.esme.lib.SearchMgr$$anonfun$displaySearch$1$$anonfun$apply >>> > $1.apply(SearchMgr.scala:66), > >>> > net.liftweb.common.Full.map(Box.scala:398), >>> > org.ap >>> > >>> > >>> >>> ache.esme.lib.SearchMgr$$anonfun$displaySearch$1.apply(SearchMgr.scala:= 66), >>> > org. >>> > >>> > >>> >>> apache.esme.lib.SearchMgr$$anonfun$displaySearch$1.apply(SearchMgr.scal= a:65), >>> > ne >>> > >>> > >>> > ----- Original Message ----- From: "Ethan Jewett" >>> > To: >>> > Sent: Wednesday, July 21, 2010 8:43 PM >>> > Subject: Search error when using JDBC for search (was "Metadata >>> > handling") >>> > >>> > >>> > >>> > To recreate the problem, >>> > >>> > 1. Replace the contents of /src/main/resources/props/compass.cfg.xml >>> > with the contents of /src/main/resources/props/compass.jndi.cfg.xml >>> > 2. mvn jetty:run >>> > 3. Point your web browser to http://localhost:8080 >>> > 4. Log in if necessary >>> > 5. Do a search (it won't work and will just redirect you back to the = > >>> > main >>> > page) >>> > 6. You should now have a stack trace on the console >>> > >>> > Ethan >>> > >>> > On Wed, Jul 21, 2010 at 4:48 PM, Imtiaz Ahmed H E >>> > wrote: >>> > >>> > >>> > <<<<<<<<<<<< >>> > >>> > >>> > You don't happen to have any JDBC/JNDI and/or Lucene experience do >>> > you? I'm totally stumped on the issue with search when we have it run >>> > using the database instead of the filesystem (ESME-205). >>> > >>> > >>> > >>> > >>> > No, no experience on those. Except have used JDBC for JavaDB access, = in >>> > my >>> > last job and less than that of it with Oracle 8 years back. >>> > >>> > I just tried out a search which had a result of one match, on my > >>> > system, >>> > and >>> > it worked fine with no exceptions. >>> > >>> > If I could reproduce the bug, I could comment on whether I should be >>> > assigned the Jira ticket...saw the exception trace in the ticket, 205= , >>> > and >>> > the exception seems like a Scala coding problem... >>> > >>> > Imtiaz >>> > >>> > ----- Original Message ----- From: "Ethan Jewett" >>> > To: >>> > Sent: Wednesday, July 21, 2010 7:51 PM >>> > Subject: Re: Metadata handling (was "Release planning") >>> > >>> > >>> > >>> > Sounds good to me, at least until we can figure out what the next >>> > step/problem is on the metadata front. Just ping the list when you've >>> > uploaded the patch. >>> > >>> > You don't happen to have any JDBC/JNDI and/or Lucene experien >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> >> > >