Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Error: The attribute argNames is undefined
Error: The attribute argNames is undefined [message #58934] Fri, 02 December 2005 01:23 Go to next message
Didier Villevalois is currently offline Didier VillevaloisFriend
Messages: 86
Registered: July 2009
Member
Hello!

All of my aspects were compiling very well a few days ago.

But it seems the last ajdt release (or maybe since one or two days as it
is updated every day) now fails to compile them.

It marks an error in front of every advice telling me that
"The attribute argNames is undefined for the annotation type Around"
and a similar message for the other kinds of advice.

I'm using the following version of AJDT:

Version: 1.3.0
Build id: 20051201090854
AspectJ version: 1.5.0.20051130133549

Did the syntax for advices changed or do you think it is a bug ??

Thanks for your help!
Didier.
Re: Error: The attribute argNames is undefined [message #59012 is a reply to message #58934] Mon, 12 December 2005 15:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andrew.acooke.org

did you find a solution to this?

i have been having problems with my system (win2000) being unstable, so
updated to eclipse 3.1.1, java 1.5.0-06, and the latest ajdt build
(20051208103628), and now see the same problem.

andrew
Re: Error: The attribute argNames is undefined [message #59037 is a reply to message #59012] Mon, 12 December 2005 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

andrew cooke wrote:
>
> did you find a solution to this?
>
> i have been having problems with my system (win2000) being unstable, so
> updated to eclipse 3.1.1, java 1.5.0-06, and the latest ajdt build
> (20051208103628), and now see the same problem.
>
> andrew
>

We discovered that this problem occurs if there are multiple versions of
aspectjrt.jar around. In Didier's case there was a version in the AJEER
framework he was also using. The argNames annotation value only exists
in very recent aspectjrt.jar files. Can you try removing/readding the
aspectj nature to your projects and check it picks up the latest (i.e.
the version from the latest org.aspectj.runtime plugin). Do you have a
copy of aspectjrt.jar anywhere else accessible by your project? Is it
breaking when you build or when you run?

Andy.
Re: Error: The attribute argNames is undefined [message #59062 is a reply to message #59037] Mon, 12 December 2005 17:25 Go to previous message
Eclipse UserFriend
Originally posted by: andrew.acooke.org

perfect - thanks! it was indeed a aspectjrt.jar from a previous version
(i need to work out how to use eclipse better).

cheers,
andrew

ps it was during the ant build, which had a classpath that differed from
eclipse.

pps thanks for the very quick reply - i posted, went down the road for a
beer and sandwich, and then found your answer. :o)
Re: Error: The attribute argNames is undefined [message #591101 is a reply to message #58934] Mon, 12 December 2005 15:57 Go to previous message
Eclipse UserFriend
Originally posted by: andrew.acooke.org

did you find a solution to this?

i have been having problems with my system (win2000) being unstable, so
updated to eclipse 3.1.1, java 1.5.0-06, and the latest ajdt build
(20051208103628), and now see the same problem.

andrew
Re: Error: The attribute argNames is undefined [message #591113 is a reply to message #59012] Mon, 12 December 2005 16:16 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
andrew cooke wrote:
>
> did you find a solution to this?
>
> i have been having problems with my system (win2000) being unstable, so
> updated to eclipse 3.1.1, java 1.5.0-06, and the latest ajdt build
> (20051208103628), and now see the same problem.
>
> andrew
>

We discovered that this problem occurs if there are multiple versions of
aspectjrt.jar around. In Didier's case there was a version in the AJEER
framework he was also using. The argNames annotation value only exists
in very recent aspectjrt.jar files. Can you try removing/readding the
aspectj nature to your projects and check it picks up the latest (i.e.
the version from the latest org.aspectj.runtime plugin). Do you have a
copy of aspectjrt.jar anywhere else accessible by your project? Is it
breaking when you build or when you run?

Andy.
Re: Error: The attribute argNames is undefined [message #591125 is a reply to message #59037] Mon, 12 December 2005 17:25 Go to previous message
Eclipse UserFriend
Originally posted by: andrew.acooke.org

perfect - thanks! it was indeed a aspectjrt.jar from a previous version
(i need to work out how to use eclipse better).

cheers,
andrew

ps it was during the ant build, which had a classpath that differed from
eclipse.

pps thanks for the very quick reply - i posted, went down the road for a
beer and sandwich, and then found your answer. :o)
Previous Topic:Eclipse doesn't recognize introduced method
Next Topic:org.aspectj.ajdt.core.prefs file and environment variables expansion
Goto Forum:
  


Current Time: Thu Nov 27 23:34:33 GMT 2014

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

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