Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Compiling an AspectJ Project
Compiling an AspectJ Project [message #34491] Mon, 19 April 2004 22:43 Go to next message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
I am seeing unusual behavior in my aspectj project in Eclipse. If I try
to build code with AspectJ enabled in the project, no class projects are
produced, even though there are no syntax errors in the program and even
when i do a Rebuild Project.

If I "Remove AspectJ Nature" from said project, and then rebuild the
project, class files are produced for all files in the project that aren't
related to the aspect.

If I delete those class files and add AspectJ Nature to the project, then
once again it doesn't produce any .class files, even though the build
takes longer.

Any ideas?

Thanks in advance,
John
Re: Compiling an AspectJ Project [message #34628 is a reply to message #34491] Tue, 20 April 2004 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luzius.meisser.uk.ibm.com

John Kelty wrote:

> Any ideas?

Maybe there is something wrong with the build configuration file you are
using. Open default.lst to see if all the .java and .aj files are there
and ticked. Then try explicitly using this build configuration (right
click on default.lst and "select this build config"). I hope that helps.

Luzius
Re: Compiling an AspectJ Project [message #34662 is a reply to message #34628] Tue, 20 April 2004 15:30 Go to previous messageGo to next message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Luzius Meisser wrote:

> Maybe there is something wrong with the build configuration file you are
> using. Open default.lst to see if all the .java and .aj files are there
> and ticked. Then try explicitly using this build configuration (right
> click on default.lst and "select this build config"). I hope that helps.

> Luzius

Thanks for the ideas. However, I looked into that default.lst file and it
seems fine. The file has a list of all the .java files to build. The
file looks correct whether or not I have aspectj enabled. I didn't
compare default.lst with aspectj on and again with it off, but the file
looked to be the same.

Also, using the "select this build config" option did not help either.

Regards,
John
Re: Compiling an AspectJ Project [message #34696 is a reply to message #34491] Tue, 20 April 2004 16:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Hi,

Sorry to hear you are having problems, can I check a few things:

Do you get a progress dialog when the project is building with AspectJ
(implying that it is doing a compile/weave)?

In the project properties for the project, I assume you have nothing
specified for the output jar value in the AspectJ tab?

Is there any way we could see your problematic project?

Is the project particularly large? (It may be failing silently with an
OutOfMemory error).

Are you on Eclipse 3.0M8 with AJDT1.1.7?

Finally, are there any entries in the log file that might relate to the
problem. The .log file is in the workspace .metadata directory.

Sorry for all the questions, just trying to think what might be causing
it...

Andy.
Re: Compiling an AspectJ Project [message #34730 is a reply to message #34696] Tue, 20 April 2004 19:04 Go to previous messageGo to next message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Andy Clement wrote:

> Hi,

> Sorry to hear you are having problems, can I check a few things:

> Do you get a progress dialog when the project is building with AspectJ
> (implying that it is doing a compile/weave)?
Yes. The progress bar seems to work normally, and the names of the .java
files supposedly being compiled flash by.

> In the project properties for the project, I assume you have nothing
> specified for the output jar value in the AspectJ tab?
Correct. I searched through jar files in the relevant directories anyway
and couldn't find my files there.

> Is there any way we could see your problematic project?
Perhaps I can package some of it up if nothing works.
> Is the project particularly large? (It may be failing silently with an
> OutOfMemory error).
Yes, it is large. However, I am running with extra memory with the
command line: eclipse.exe -vmargs -Xmx512M so I doubt if memory is the
problem.

> Are you on Eclipse 3.0M8 with AJDT1.1.7?
No. 2.1.1 with AJDT 1.1.4--is either of those versions going to be a
problem?

> Finally, are there any entries in the log file that might relate to the
> problem. The .log file is in the workspace .metadata directory.
Despite my many compiles today, the .log file hasn't been updated today,
so no.

> Sorry for all the questions, just trying to think what might be causing
> it...
No problem, I appreciate the many ideas.
> Andy.
Re: Compiling an AspectJ Project [message #35010 is a reply to message #34696] Wed, 21 April 2004 14:51 Go to previous messageGo to next message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Andy Clement wrote:
> Finally, are there any entries in the log file that might relate to the
> problem. The .log file is in the workspace .metadata directory.
I created a new build configuration with just a few files selected, and
tried a build using that. That did produce an error in the .log file which
I copied below:

!ENTRY org.eclipse.ajdt.ui 4 0 Apr 21, 2004 08:54:13.993
!MESSAGE NullPointerException thrown: null
!STACK 0
java.lang.NullPointerException
at
org.aspectj.weaver.ResolvedTypeMunger.matches(ResolvedTypeMu nger.java:53)
at
org.aspectj.weaver.ConcreteTypeMunger.matches(ConcreteTypeMu nger.java:52)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:291)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:228)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.completeTypeBindings(AjLookupEnvironment.java:109)
at
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Co mpiler.java:310)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler. java:324)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.perfor mCompilation(AjBuildManager.java:373)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:125)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchB uild(AjBuildManager.java:70)
at
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:103)
at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:165)

Perhaps that will help shed some light on this problem.

Thanks again,
John
Re: Compiling an AspectJ Project [message #35078 is a reply to message #35010] Thu, 22 April 2004 07:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Could you possibly try with AJDT 1.1.6 - this is a dev version of AJDT for
Eclipse 2.1 (and 3.0 versions up to milestone 4). I created it to have an
AJDT with a more up to date AspectJ compiler inside - and the error you
just attached in your previous append is an internal compiler problem.

You can find the update site URL for it at the bottom of our download page
(I think its)

http://download.eclipse.org/technology/ajdt/dev/update

With the switch to Eclipse 3 for AJDT 1.1.7 - we still haven't worked out
the best way to continue the codebase for Eclipse 2 users... Are you able
to move up to Eclipse 3 or is there some reason you can't (maybe you are
using WebSphere Studio or some other toolset with Eclipse 2.1 at its
core?)

Andy.
Re: Compiling an AspectJ Project [message #35235 is a reply to message #35078] Fri, 23 April 2004 14:59 Go to previous message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Andy Clement wrote:

> Could you possibly try with AJDT 1.1.6 - this is a dev version of AJDT for
> Eclipse 2.1 (and 3.0 versions up to milestone 4). I created it to have an
> AJDT with a more up to date AspectJ compiler inside - and the error you
> just attached in your previous append is an internal compiler problem.

Thanks again for your assisstance, Andy. Version 1.1.6 did fix the null
pointer exception but did not allow the .class files to be created.

Eclipse 3.0, however, reversed that situation: at one point I could
create .class files sucessfully, but now I get a null pointer exception on
pretty much any Aspect J compile so I'm no better off:

!SESSION Apr 23, 2004 07:54:46.186
---------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.core.resources 2 1 Apr 23, 2004 07:54:46.216
!MESSAGE Skipping builder org.eclipse.ajdt.ui.ajbuilder for project AOP.
Either the builder is missing from the install, or it belongs to a project
nature that is missing or disabled.
!SESSION Apr 23, 2004 08:53:33.213
---------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ajdt.ui 4 0 Apr 23, 2004 08:53:33.213
!MESSAGE NullPointerException thrown: null
!STACK 0
java.lang.NullPointerException
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:207)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.increm entalBuild(AjBuildManager.java:101)
at
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:103)
at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:165)

Any further ideas on getting either version to work?

Thanks,
John
Re: Compiling an AspectJ Project [message #578799 is a reply to message #34491] Tue, 20 April 2004 09:50 Go to previous message
Luzius Meisser is currently offline Luzius MeisserFriend
Messages: 5
Registered: July 2009
Junior Member
John Kelty wrote:

> Any ideas?

Maybe there is something wrong with the build configuration file you are
using. Open default.lst to see if all the .java and .aj files are there
and ticked. Then try explicitly using this build configuration (right
click on default.lst and "select this build config"). I hope that helps.

Luzius
Re: Compiling an AspectJ Project [message #578815 is a reply to message #34628] Tue, 20 April 2004 15:30 Go to previous message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Luzius Meisser wrote:

> Maybe there is something wrong with the build configuration file you are
> using. Open default.lst to see if all the .java and .aj files are there
> and ticked. Then try explicitly using this build configuration (right
> click on default.lst and "select this build config"). I hope that helps.

> Luzius

Thanks for the ideas. However, I looked into that default.lst file and it
seems fine. The file has a list of all the .java files to build. The
file looks correct whether or not I have aspectj enabled. I didn't
compare default.lst with aspectj on and again with it off, but the file
looked to be the same.

Also, using the "select this build config" option did not help either.

Regards,
John
Re: Compiling an AspectJ Project [message #578869 is a reply to message #34491] Tue, 20 April 2004 16:40 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Hi,

Sorry to hear you are having problems, can I check a few things:

Do you get a progress dialog when the project is building with AspectJ
(implying that it is doing a compile/weave)?

In the project properties for the project, I assume you have nothing
specified for the output jar value in the AspectJ tab?

Is there any way we could see your problematic project?

Is the project particularly large? (It may be failing silently with an
OutOfMemory error).

Are you on Eclipse 3.0M8 with AJDT1.1.7?

Finally, are there any entries in the log file that might relate to the
problem. The .log file is in the workspace .metadata directory.

Sorry for all the questions, just trying to think what might be causing
it...

Andy.
Re: Compiling an AspectJ Project [message #578880 is a reply to message #34696] Tue, 20 April 2004 19:04 Go to previous message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Andy Clement wrote:

> Hi,

> Sorry to hear you are having problems, can I check a few things:

> Do you get a progress dialog when the project is building with AspectJ
> (implying that it is doing a compile/weave)?
Yes. The progress bar seems to work normally, and the names of the .java
files supposedly being compiled flash by.

> In the project properties for the project, I assume you have nothing
> specified for the output jar value in the AspectJ tab?
Correct. I searched through jar files in the relevant directories anyway
and couldn't find my files there.

> Is there any way we could see your problematic project?
Perhaps I can package some of it up if nothing works.
> Is the project particularly large? (It may be failing silently with an
> OutOfMemory error).
Yes, it is large. However, I am running with extra memory with the
command line: eclipse.exe -vmargs -Xmx512M so I doubt if memory is the
problem.

> Are you on Eclipse 3.0M8 with AJDT1.1.7?
No. 2.1.1 with AJDT 1.1.4--is either of those versions going to be a
problem?

> Finally, are there any entries in the log file that might relate to the
> problem. The .log file is in the workspace .metadata directory.
Despite my many compiles today, the .log file hasn't been updated today,
so no.

> Sorry for all the questions, just trying to think what might be causing
> it...
No problem, I appreciate the many ideas.
> Andy.
Re: Compiling an AspectJ Project [message #579073 is a reply to message #34696] Wed, 21 April 2004 14:51 Go to previous message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Andy Clement wrote:
> Finally, are there any entries in the log file that might relate to the
> problem. The .log file is in the workspace .metadata directory.
I created a new build configuration with just a few files selected, and
tried a build using that. That did produce an error in the .log file which
I copied below:

!ENTRY org.eclipse.ajdt.ui 4 0 Apr 21, 2004 08:54:13.993
!MESSAGE NullPointerException thrown: null
!STACK 0
java.lang.NullPointerException
at
org.aspectj.weaver.ResolvedTypeMunger.matches(ResolvedTypeMu nger.java:53)
at
org.aspectj.weaver.ConcreteTypeMunger.matches(ConcreteTypeMu nger.java:52)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:291)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.weaveInterTypeDeclarations(AjLookupEnvironment.java:228)
at
org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironmen t.completeTypeBindings(AjLookupEnvironment.java:109)
at
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Co mpiler.java:310)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler. java:324)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.perfor mCompilation(AjBuildManager.java:373)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:125)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchB uild(AjBuildManager.java:70)
at
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:103)
at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:165)

Perhaps that will help shed some light on this problem.

Thanks again,
John
Re: Compiling an AspectJ Project [message #579125 is a reply to message #35010] Thu, 22 April 2004 07:32 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Could you possibly try with AJDT 1.1.6 - this is a dev version of AJDT for
Eclipse 2.1 (and 3.0 versions up to milestone 4). I created it to have an
AJDT with a more up to date AspectJ compiler inside - and the error you
just attached in your previous append is an internal compiler problem.

You can find the update site URL for it at the bottom of our download page
(I think its)

http://download.eclipse.org/technology/ajdt/dev/update

With the switch to Eclipse 3 for AJDT 1.1.7 - we still haven't worked out
the best way to continue the codebase for Eclipse 2 users... Are you able
to move up to Eclipse 3 or is there some reason you can't (maybe you are
using WebSphere Studio or some other toolset with Eclipse 2.1 at its
core?)

Andy.
Re: Compiling an AspectJ Project [message #579235 is a reply to message #35078] Fri, 23 April 2004 14:59 Go to previous message
John Kelty is currently offline John KeltyFriend
Messages: 10
Registered: July 2009
Junior Member
Andy Clement wrote:

> Could you possibly try with AJDT 1.1.6 - this is a dev version of AJDT for
> Eclipse 2.1 (and 3.0 versions up to milestone 4). I created it to have an
> AJDT with a more up to date AspectJ compiler inside - and the error you
> just attached in your previous append is an internal compiler problem.

Thanks again for your assisstance, Andy. Version 1.1.6 did fix the null
pointer exception but did not allow the .class files to be created.

Eclipse 3.0, however, reversed that situation: at one point I could
create .class files sucessfully, but now I get a null pointer exception on
pretty much any Aspect J compile so I'm no better off:

!SESSION Apr 23, 2004 07:54:46.186
---------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.core.resources 2 1 Apr 23, 2004 07:54:46.216
!MESSAGE Skipping builder org.eclipse.ajdt.ui.ajbuilder for project AOP.
Either the builder is missing from the install, or it belongs to a project
nature that is missing or disabled.
!SESSION Apr 23, 2004 08:53:33.213
---------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ajdt.ui 4 0 Apr 23, 2004 08:53:33.213
!MESSAGE NullPointerException thrown: null
!STACK 0
java.lang.NullPointerException
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuil d(AjBuildManager.java:207)
at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.increm entalBuild(AjBuildManager.java:101)
at
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAd apter.java:103)
at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread .run(AspectJBuildManager.java:165)

Any further ideas on getting either version to work?

Thanks,
John
Previous Topic:CTRL+ALT+PARADIGM SHIFT
Next Topic:Using AspectJ in plugin
Goto Forum:
  


Current Time: Tue Mar 19 03:53:11 GMT 2024

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

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

Back to the top