Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Unable to find expression matcher when attempting to invoke action
Unable to find expression matcher when attempting to invoke action [message #375560] Wed, 06 February 2008 21:45 Go to next message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
I haven't posted a bugzilla for this, as I'm not sure that
it is actually a bug :) This is a behaviour that I am seeing
on macosx, and is a bit of a blocker. I'm wondering if any
other mac-based developers may have seen this.

Version of Buck is 1.0.0.r08888

How to reproduce:

File > Open a Component Query...

use

http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.eid/trunk /build/eid.cquery

then 'Resolve and Materialize'. All materializes in the
workspace as expected.

Next step, select the org.eclipse.stp.eid.feature
in the workspace, right-click and...

Buckminster > Invoke action...

then select an action such as feature.exports. The result is
an exception stating that no supported regular expression
matcher can be found (big stack trace below).

The version of the Ant plugin I'm using is 1.7.0.v200706080842 (i.e.
the Europa build of it).

cheers
--oh

/opt/eclipse-3.3/configuration/org.eclipse.osgi/bundles/1032 /1/.cp/org/eclipse
/buckminster/pde/antscripts/build.xml:20:
No supported regular expression matcher found
at org.apache.tools.ant.util.regexp.RegexpFactory.newRegexp(Reg expFactory.
java:85)
at
org.apache.tools.ant.types.RegularExpression.init(RegularExp ression.java:82)
at org.apache.tools.ant.types.RegularExpression.getRegexp(Regul arExpressio
n.java:126)
at org.apache.tools.ant.filters.TokenFilter$ReplaceRegex.initia lize(TokenF
ilter.java:619)
at org.apache.tools.ant.filters.TokenFilter$ReplaceRegex.filter (TokenFilte
r.java:632)
at org.apache.tools.ant.filters.TokenFilter.read(TokenFilter.ja va:113)
at
org.apache.tools.ant.filters.StripLineBreaks.read(StripLineB reaks.java:86)
at
org.apache.tools.ant.filters.BaseFilterReader.read(BaseFilte rReader.java:86)
at java.io.Reader.read(Reader.java:122)
at org.apache.tools.ant.util.FileUtils.readFully(FileUtils.java :1107)
at org.apache.tools.ant.filters.util.ChainReaderHelper.readFull y(ChainRead
erHelper.java:231)
at org.apache.tools.ant.taskdefs.LoadFile.execute(LoadFile.java :155)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential. java:64)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroIns tance.java:378)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecu
tor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets
(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunn
er.java:623)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunn
er.java:456)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccesso
rImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:282 )
at
org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:161)
at org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.
java:122)
at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(Perf
ormManager.java:146)
at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(Perf
ormManager.java:75)
at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(Perf
ormManager.java:64)
at org.eclipse.buckminster.ui.actions.InvokeAction$ActionJob.ru nInWorkspac
e(InvokeAction.java:257)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWo
rkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
--
Oisin Hurley at IONA
http://blogs.iona.com/ohurley/
Re: Unable to find expression matcher when attempting to invoke action [message #375562 is a reply to message #375560] Thu, 07 February 2008 08:02 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070607030605060703080009
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Oisin,
we will have to resolve this using your machine. I don't have access to a Mac at the moment and when
we tried this on another Mac (Bjorns) we were not able to reproduce it.

Could you try to run the attached build.xml file. Both from the command line and from Eclipse. I'm
just curious if regexps work in some settings and not in others and track down where the difference
might occur. Perhaps Buckminster does something wrong when we start the ant-runner.

The expected result from the run is a printout:

"My name is print.thou.self"

Regards,
Thomas Hallgren



Oisin Hurley wrote:
> I haven't posted a bugzilla for this, as I'm not sure that
> it is actually a bug :) This is a behaviour that I am seeing
> on macosx, and is a bit of a blocker. I'm wondering if any
> other mac-based developers may have seen this.
>
> Version of Buck is 1.0.0.r08888
>
> How to reproduce:
>
> File > Open a Component Query...
>
> use
>
> http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.eid/trunk /build/eid.cquery
>
> then 'Resolve and Materialize'. All materializes in the
> workspace as expected.
>
> Next step, select the org.eclipse.stp.eid.feature
> in the workspace, right-click and...
>
> Buckminster > Invoke action...
>
> then select an action such as feature.exports. The result is
> an exception stating that no supported regular expression
> matcher can be found (big stack trace below).
>
> The version of the Ant plugin I'm using is 1.7.0.v200706080842 (i.e.
> the Europa build of it).
>
> cheers
> --oh
>
> /opt/eclipse-3.3/configuration/org.eclipse.osgi/bundles/1032 /1/.cp/org/eclipse
> /buckminster/pde/antscripts/build.xml:20:
> No supported regular expression matcher found
> at org.apache.tools.ant.util.regexp.RegexpFactory.newRegexp(Reg expFactory.
> java:85)
> at
> org.apache.tools.ant.types.RegularExpression.init(RegularExp ression.java:82)
> at org.apache.tools.ant.types.RegularExpression.getRegexp(Regul arExpressio
> n.java:126)
> at org.apache.tools.ant.filters.TokenFilter$ReplaceRegex.initia lize(TokenF
> ilter.java:619)
> at org.apache.tools.ant.filters.TokenFilter$ReplaceRegex.filter (TokenFilte
> r.java:632)
> at org.apache.tools.ant.filters.TokenFilter.read(TokenFilter.ja va:113)
> at
> org.apache.tools.ant.filters.StripLineBreaks.read(StripLineB reaks.java:86)
> at
> org.apache.tools.ant.filters.BaseFilterReader.read(BaseFilte rReader.java:86)
> at java.io.Reader.read(Reader.java:122)
> at org.apache.tools.ant.util.FileUtils.readFully(FileUtils.java :1107)
> at org.apache.tools.ant.filters.util.ChainReaderHelper.readFull y(ChainRead
> erHelper.java:231)
> at org.apache.tools.ant.taskdefs.LoadFile.execute(LoadFile.java :155)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential. java:64)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at
> org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroIns tance.java:378)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
> at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecu
> tor.java:40)
> at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets
> (EclipseDefaultExecutor.java:32)
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunn
> er.java:623)
> at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunn
> er.java:456)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccesso
> rImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:282 )
> at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:161)
> at org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.
> java:122)
> at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(Perf
> ormManager.java:146)
> at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(Perf
> ormManager.java:75)
> at org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(Perf
> ormManager.java:64)
> at org.eclipse.buckminster.ui.actions.InvokeAction$ActionJob.ru nInWorkspac
> e(InvokeAction.java:257)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWo
> rkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


--------------070607030605060703080009
Content-Type: text/xml;
name="build.xml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="build.xml"

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxwcm9q ZWN0IG5hbWU9
Im9yZy5lY2xpcHNlLmJ1Y2ttaW5zdGVyLnBkZS5taXNjIiBkZWZhdWx0PSJw cmludC50aG91
LnNlbGYiPg0KCTx0YXJnZXQgbmFtZT0icHJpbnQudGhvdS5zZWxmIj4NCgkJ PGxvYWRmaWxl
IHByb3BlcnR5PSJ0YXJnZXQubmFtZSIgc3JjZmlsZT0iYnVpbGQueG1sIj4N CgkJCTxmaWx0
ZXJjaGFpbj4NCgkJCQk8c3RyaXBsaW5lYnJlYWtzLz4NCgkJCQk8cmVwbGFj ZXJlZ2V4IHBh
dHRlcm49Il4uKiZsdDt0YXJnZXQgbmFtZT0mcXVvdDsoW14mcXVvdDtdKikm cXVvdDsuKiQi
IHJlcGxhY2U9IlwxIi8+DQoJCQk8L2ZpbHRlcmNoYWluPg0KCQk8L2xvYWRm aWxlPg0KCQk8
ZWNobyBtZXNzYWdlPSJNeSBuYW1lIGlzICR7dGFyZ2V0Lm5hbWV9Ii8+DQoJ PC90YXJnZXQ+
DQo8L3Byb2plY3Q+
--------------070607030605060703080009--
[SOLUTION] Re: Unable to find expression matcher when attempting to invoke action [message #375564 is a reply to message #375562] Thu, 07 February 2008 11:21 Go to previous message
Oisin Hurley is currently offline Oisin HurleyFriend
Messages: 204
Registered: July 2009
Senior Member
Hi Thomas,
I tried the test file - it was ok on the commandline but
caused the same matcher missing error in the IDE. This narrowed
it down to an Eclipse environment issue.

I then checked the Classpath that was associated with the
Ant Build... launcher, and opened up the Ant Home library.
Lo and behold, rather than using the Eclipse Ant plugins,
it had glommed onto some Agitar plugins instead. I removed
these and all was ok :)

Thanks for your attention!

cheers
--oh
Previous Topic:Welcome to eclipse.tools.buckminster
Next Topic:Dealing with an Unbound class container during build
Goto Forum:
  


Current Time: Sat Apr 27 02:55:29 GMT 2024

Powered by FUDForum. Page generated in 0.02318 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top