Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0
Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0 [message #49776] Thu, 10 March 2005 17:24 Go to next message
Eclipse UserFriend
Originally posted by: sdelap.metamatrix.com

I'm attempting to convert our Eclipse plugin based application to Eclipse
3.x. I'm using Eclipse 3.1 M5 as my IDE with the latest version of AJDT
installed. When I run our application I get:

java.lang.NoSuchFieldError: ajc$cflowCounter$0
at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)

PackageImpl.java:1 is only a comment of course which is no help. It
appears that other AspectJ related code in our application is working
fine. Where should I start to determine what is causing this problem?
I've searched around on Google and the Eclipse site but didnt' really find
anything.
Re: Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0 [message #49834 is a reply to message #49776] Thu, 10 March 2005 17:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Hi Scott,

Changes in AspectJ between pre-eclipse 3.0 based code and 3.1 based
code are likely to be the problem - can you rebuild all the AspectJ
code with the same compiler? We put in some performance improvements
for cflow and you appear to have one 'end' of your cflow being built
to include the optimization but the other end still using the old
style. You ought to see some performance benefit if you can do
this rebuild (depending on how often you use cflow...)

Moving forward we are working on our binary compatibility so we get
into this kind of situation less and less.

(I can supply more gory details on request...)

cheers,
Andy.

Scott Delap wrote:
> I'm attempting to convert our Eclipse plugin based application to
> Eclipse 3.x. I'm using Eclipse 3.1 M5 as my IDE with the latest version
> of AJDT installed. When I run our application I get:
>
> java.lang.NoSuchFieldError: ajc$cflowCounter$0
> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)
>
> PackageImpl.java:1 is only a comment of course which is no help. It
> appears that other AspectJ related code in our application is working
> fine. Where should I start to determine what is causing this problem?
> I've searched around on Google and the Eclipse site but didnt' really
> find anything.
Re: Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0 [message #49864 is a reply to message #49834] Thu, 10 March 2005 17:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sdelap.metamatrix.com

Andy,

I've cleaned/rebuilt everything several times in our project already. We
have the aspectj project in our workspace so I also made sure and imported
the new version. Anything I need to manually clean out?

Scott

Andy Clement wrote:

> Hi Scott,

> Changes in AspectJ between pre-eclipse 3.0 based code and 3.1 based
> code are likely to be the problem - can you rebuild all the AspectJ
> code with the same compiler? We put in some performance improvements
> for cflow and you appear to have one 'end' of your cflow being built
> to include the optimization but the other end still using the old
> style. You ought to see some performance benefit if you can do
> this rebuild (depending on how often you use cflow...)

> Moving forward we are working on our binary compatibility so we get
> into this kind of situation less and less.

> (I can supply more gory details on request...)

> cheers,
> Andy.

> Scott Delap wrote:
>> I'm attempting to convert our Eclipse plugin based application to
>> Eclipse 3.x. I'm using Eclipse 3.1 M5 as my IDE with the latest version
>> of AJDT installed. When I run our application I get:
>>
>> java.lang.NoSuchFieldError: ajc$cflowCounter$0
>> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)
>>
>> PackageImpl.java:1 is only a comment of course which is no help. It
>> appears that other AspectJ related code in our application is working
>> fine. Where should I start to determine what is causing this problem?
>> I've searched around on Google and the Eclipse site but didnt' really
>> find anything.
Re: Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0 [message #49894 is a reply to message #49864] Fri, 11 March 2005 09:45 Go to previous message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

hmmm... so everything affected by aspects is self contained in your
eclipse project? There are no external dependencies on code that
has been woven?

From your original message it looks like this class must be rebuilt:
>>> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)

Is that in the project?

If you run javap against that class - do you see any ajc$cflowCounter
fields? Do you see any ajc$cflowStack fields?

cheers,
Andy.

Scott Delap wrote:
> Andy,
>
> I've cleaned/rebuilt everything several times in our project already.
> We have the aspectj project in our workspace so I also made sure and
> imported the new version. Anything I need to manually clean out?
>
> Scott
>
> Andy Clement wrote:
>
>> Hi Scott,
>
>
>> Changes in AspectJ between pre-eclipse 3.0 based code and 3.1 based
>> code are likely to be the problem - can you rebuild all the AspectJ
>> code with the same compiler? We put in some performance improvements
>> for cflow and you appear to have one 'end' of your cflow being built
>> to include the optimization but the other end still using the old
>> style. You ought to see some performance benefit if you can do
>> this rebuild (depending on how often you use cflow...)
>
>
>> Moving forward we are working on our binary compatibility so we get
>> into this kind of situation less and less.
>
>
>> (I can supply more gory details on request...)
>
>
>> cheers,
>> Andy.
>
>
>> Scott Delap wrote:
>>
>>> I'm attempting to convert our Eclipse plugin based application to
>>> Eclipse 3.x. I'm using Eclipse 3.1 M5 as my IDE with the latest
>>> version of AJDT installed. When I run our application I get:
>>>
>>> java.lang.NoSuchFieldError: ajc$cflowCounter$0
>>> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)
>>>
>>> PackageImpl.java:1 is only a comment of course which is no help. It
>>> appears that other AspectJ related code in our application is working
>>> fine. Where should I start to determine what is causing this
>>> problem? I've searched around on Google and the Eclipse site but
>>> didnt' really find anything.
>
>
>
Re: Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0 [message #587411 is a reply to message #49776] Thu, 10 March 2005 17:38 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Hi Scott,

Changes in AspectJ between pre-eclipse 3.0 based code and 3.1 based
code are likely to be the problem - can you rebuild all the AspectJ
code with the same compiler? We put in some performance improvements
for cflow and you appear to have one 'end' of your cflow being built
to include the optimization but the other end still using the old
style. You ought to see some performance benefit if you can do
this rebuild (depending on how often you use cflow...)

Moving forward we are working on our binary compatibility so we get
into this kind of situation less and less.

(I can supply more gory details on request...)

cheers,
Andy.

Scott Delap wrote:
> I'm attempting to convert our Eclipse plugin based application to
> Eclipse 3.x. I'm using Eclipse 3.1 M5 as my IDE with the latest version
> of AJDT installed. When I run our application I get:
>
> java.lang.NoSuchFieldError: ajc$cflowCounter$0
> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)
>
> PackageImpl.java:1 is only a comment of course which is no help. It
> appears that other AspectJ related code in our application is working
> fine. Where should I start to determine what is causing this problem?
> I've searched around on Google and the Eclipse site but didnt' really
> find anything.
Re: Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0 [message #587429 is a reply to message #49834] Thu, 10 March 2005 17:53 Go to previous message
Scott Delap is currently offline Scott DelapFriend
Messages: 24
Registered: July 2009
Junior Member
Andy,

I've cleaned/rebuilt everything several times in our project already. We
have the aspectj project in our workspace so I also made sure and imported
the new version. Anything I need to manually clean out?

Scott

Andy Clement wrote:

> Hi Scott,

> Changes in AspectJ between pre-eclipse 3.0 based code and 3.1 based
> code are likely to be the problem - can you rebuild all the AspectJ
> code with the same compiler? We put in some performance improvements
> for cflow and you appear to have one 'end' of your cflow being built
> to include the optimization but the other end still using the old
> style. You ought to see some performance benefit if you can do
> this rebuild (depending on how often you use cflow...)

> Moving forward we are working on our binary compatibility so we get
> into this kind of situation less and less.

> (I can supply more gory details on request...)

> cheers,
> Andy.

> Scott Delap wrote:
>> I'm attempting to convert our Eclipse plugin based application to
>> Eclipse 3.x. I'm using Eclipse 3.1 M5 as my IDE with the latest version
>> of AJDT installed. When I run our application I get:
>>
>> java.lang.NoSuchFieldError: ajc$cflowCounter$0
>> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)
>>
>> PackageImpl.java:1 is only a comment of course which is no help. It
>> appears that other AspectJ related code in our application is working
>> fine. Where should I start to determine what is causing this problem?
>> I've searched around on Google and the Eclipse site but didnt' really
>> find anything.
Re: Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0 [message #587443 is a reply to message #49864] Fri, 11 March 2005 09:45 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
hmmm... so everything affected by aspects is self contained in your
eclipse project? There are no external dependencies on code that
has been woven?

From your original message it looks like this class must be rebuilt:
>>> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)

Is that in the project?

If you run javap against that class - do you see any ajc$cflowCounter
fields? Do you see any ajc$cflowStack fields?

cheers,
Andy.

Scott Delap wrote:
> Andy,
>
> I've cleaned/rebuilt everything several times in our project already.
> We have the aspectj project in our workspace so I also made sure and
> imported the new version. Anything I need to manually clean out?
>
> Scott
>
> Andy Clement wrote:
>
>> Hi Scott,
>
>
>> Changes in AspectJ between pre-eclipse 3.0 based code and 3.1 based
>> code are likely to be the problem - can you rebuild all the AspectJ
>> code with the same compiler? We put in some performance improvements
>> for cflow and you appear to have one 'end' of your cflow being built
>> to include the optimization but the other end still using the old
>> style. You ought to see some performance benefit if you can do
>> this rebuild (depending on how often you use cflow...)
>
>
>> Moving forward we are working on our binary compatibility so we get
>> into this kind of situation less and less.
>
>
>> (I can supply more gory details on request...)
>
>
>> cheers,
>> Andy.
>
>
>> Scott Delap wrote:
>>
>>> I'm attempting to convert our Eclipse plugin based application to
>>> Eclipse 3.x. I'm using Eclipse 3.1 M5 as my IDE with the latest
>>> version of AJDT installed. When I run our application I get:
>>>
>>> java.lang.NoSuchFieldError: ajc$cflowCounter$0
>>> at org.eclipse.uml2.impl.PackageImpl.eSet(PackageImpl.java:1)
>>>
>>> PackageImpl.java:1 is only a comment of course which is no help. It
>>> appears that other AspectJ related code in our application is working
>>> fine. Where should I start to determine what is causing this
>>> problem? I've searched around on Google and the Eclipse site but
>>> didnt' really find anything.
>
>
>
Previous Topic:newbie question
Next Topic:Job AOP AspectJ AJDT Developer
Goto Forum:
  


Current Time: Thu Mar 28 19:36:06 GMT 2024

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

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

Back to the top