You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Woolf, Ross" <Ro...@BMC.com> on 2010/01/12 19:28:22 UTC

Exception invoking MultiPhraseQuery

I can't invoke MultiPhraseQuery.  It produces the error:
com.sun.jdi.InvocationException occurred invoking method

Here is the code:
MultiPhraseQuery mpq = new MultiPhraseQuery();

In the eclipse debugger when I try to inspect mpq after instantiating it shows the error.

I'm on Lucene 2.9.1 with Java 1.5 on Windows XP.  Is MultiPhraseQuery bad in 2.9.1?  Does anyone know how I can find out why it is having the invocation exception?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: Exception invoking MultiPhraseQuery

Posted by "Woolf, Ross" <Ro...@BMC.com>.
Thanks, I'll try that.  As for the stack trace
"com.sun.jdi.InvocationException occurred invoking method"

is the total of the error I get.  And I only see this when I select "mpq" in the Variables window and that is displayed instead of showing the mpq object.  I've tried catching the exception but it is not catchable.  I only get the invocation exception displayed and can't inspect mpq.

-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: Tuesday, January 12, 2010 11:49 AM
To: java-user@lucene.apache.org
Subject: Re: Exception invoking MultiPhraseQuery

I'd try running it outside of Eclipse, and/or checking each and every
of the many configuration options in Eclipse to see if you have an old
jar that Eclipse is using, from jars you've made accessible via the
"java build path" window to projects referenced to......

Alternately, you can look for all the Lucene jars on your machine and
delete (or move) any old ones.

And if none of this helps, can you post the entire stack trace?

HTH
Erick

On Tue, Jan 12, 2010 at 1:28 PM, Woolf, Ross <Ro...@bmc.com> wrote:

> I can't invoke MultiPhraseQuery.  It produces the error:
> com.sun.jdi.InvocationException occurred invoking method
>
> Here is the code:
> MultiPhraseQuery mpq = new MultiPhraseQuery();
>
> In the eclipse debugger when I try to inspect mpq after instantiating it
> shows the error.
>
> I'm on Lucene 2.9.1 with Java 1.5 on Windows XP.  Is MultiPhraseQuery bad
> in 2.9.1?  Does anyone know how I can find out why it is having the
> invocation exception?
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Exception invoking MultiPhraseQuery

Posted by Erick Erickson <er...@gmail.com>.
I'd try running it outside of Eclipse, and/or checking each and every
of the many configuration options in Eclipse to see if you have an old
jar that Eclipse is using, from jars you've made accessible via the
"java build path" window to projects referenced to......

Alternately, you can look for all the Lucene jars on your machine and
delete (or move) any old ones.

And if none of this helps, can you post the entire stack trace?

HTH
Erick

On Tue, Jan 12, 2010 at 1:28 PM, Woolf, Ross <Ro...@bmc.com> wrote:

> I can't invoke MultiPhraseQuery.  It produces the error:
> com.sun.jdi.InvocationException occurred invoking method
>
> Here is the code:
> MultiPhraseQuery mpq = new MultiPhraseQuery();
>
> In the eclipse debugger when I try to inspect mpq after instantiating it
> shows the error.
>
> I'm on Lucene 2.9.1 with Java 1.5 on Windows XP.  Is MultiPhraseQuery bad
> in 2.9.1?  Does anyone know how I can find out why it is having the
> invocation exception?
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>