You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alessandro Di Bella <al...@fuurou.org> on 2007/04/10 02:26:04 UTC

aspectj error

Hi, 
I'm trying to compile using aspectj and I keep getting the following error:

the parameter thisJoinPoint is not bound in [all branches of] pointcut
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

The plugin is configured as follow:
<plugin>
      		<groupId>org.codehaus.mojo</groupId>
                        <artifactId>aspectj-maven-plugin</artifactId>
                        <executions>
                                <execution>
                                        <goals>
                                                <goal>compile</goal>
                                                <goal>test-compile</goal>
                                        </goals>
                                </execution>
                        </executions>
                        <configuration>
                                <source>1.5</source>
                                <target>1.5</target>
                        </configuration>
                </plugin>

and during the build I get this warning:
[WARNING] bad version number found in /home/amabboni/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar expected 1.5.2a found 1.5.3

I tried with the 1.5.2a version but no luck neither.

Any help would be greatly appreciated.

Thanks

Alessandro


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: aspectj error

Posted by Michal Palička <Mi...@cleverlance.com>.
Hello,

to get rid of the "bad version number found" warning, try to add the correct aspectjtools dependency
to the aspectj-maven-plugin:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>aspectj-maven-plugin</artifactId>
    <configuration>
    ...
    </configuration>
    <executions>
    ...
    </executions>
    <dependencies>
        <dependency>
            <groupId>aspectj</groupId>
            <artifactId>aspectjtools</artifactId>
            <version>1.5.3</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
</plugin>

Hope this helps
Michal Palicka


-----Original Message-----
From: Alessandro Di Bella [mailto:aldib@fuurou.org]
Sent: Tuesday, April 10, 2007 02:26 AM
To: Maven Users List
Subject: aspectj error

Hi,
I'm trying to compile using aspectj and I keep getting the following error:

the parameter thisJoinPoint is not bound in [all branches of] pointcut
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

The plugin is configured as follow:
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                        <artifactId>aspectj-maven-plugin</artifactId>
                        <executions>
                                <execution>
                                        <goals>
                                                <goal>compile</goal>
                                                <goal>test-compile</goal>
                                        </goals>
                                </execution>
                        </executions>
                        <configuration>
                                <source>1.5</source>
                                <target>1.5</target>
                        </configuration>
                </plugin>

and during the build I get this warning:
[WARNING] bad version number found in /home/amabboni/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar expected 1.5.2a found 1.5.3

I tried with the 1.5.2a version but no luck neither.

Any help would be greatly appreciated.

Thanks

Alessandro


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: aspectj error

Posted by Darshan Santani <sa...@gmail.com>.
Hi,

It seems you are having errors in your aspects only, as I cant see any
error(s) in your aspectj-maven-plugin description, it seems perfect to me.
Hope this helps. Thanks.

-dsantani

Re: aspectj error

Posted by Steve Shucker <ss...@vmsinfo.com>.
Like people said, it's probably a bad aspect.  However, I also have
<complianceLevel>1.5</complianceLevel>
in my configuration.

A side note about maven and eclipse integration:  Make sure eclipse has 
ASPECJTRT_LIB on its build path before the maven2 container.  This makes 
sure eclipse uses the version of aspectj that comes with the eclipse 
ajdt plugin and avoids the popups about not getting the expected version.

-Steve

Alessandro Di Bella wrote:
> Hi, 
> I'm trying to compile using aspectj and I keep getting the following error:
>
> the parameter thisJoinPoint is not bound in [all branches of] pointcut
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> The plugin is configured as follow:
> <plugin>
>       		<groupId>org.codehaus.mojo</groupId>
>                         <artifactId>aspectj-maven-plugin</artifactId>
>                         <executions>
>                                 <execution>
>                                         <goals>
>                                                 <goal>compile</goal>
>                                                 <goal>test-compile</goal>
>                                         </goals>
>                                 </execution>
>                         </executions>
>                         <configuration>
>                                 <source>1.5</source>
>                                 <target>1.5</target>
>                         </configuration>
>                 </plugin>
>
> and during the build I get this warning:
> [WARNING] bad version number found in /home/amabboni/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar expected 1.5.2a found 1.5.3
>
> I tried with the 1.5.2a version but no luck neither.
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Alessandro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: aspectj error

Posted by Kaare Nilsen <ka...@gmail.com>.
Hi.

The error you are getting are an error from the ajc compiler and are
because of errors in your aspects, and as far as I can se has nothing
to do with the compiler or the plugin. I would suggest you post your
question on the aspectJ user list and post your aspect in the mail,
and they/I will be able to answer quite fast I would assume.


On 10/04/07, Alessandro Di Bella <al...@fuurou.org> wrote:
> Hi,
> I'm trying to compile using aspectj and I keep getting the following error:
>
> the parameter thisJoinPoint is not bound in [all branches of] pointcut
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> The plugin is configured as follow:
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                         <artifactId>aspectj-maven-plugin</artifactId>
>                         <executions>
>                                 <execution>
>                                         <goals>
>                                                 <goal>compile</goal>
>                                                 <goal>test-compile</goal>
>                                         </goals>
>                                 </execution>
>                         </executions>
>                         <configuration>
>                                 <source>1.5</source>
>                                 <target>1.5</target>
>                         </configuration>
>                 </plugin>
>
> and during the build I get this warning:
> [WARNING] bad version number found in /home/amabboni/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar expected 1.5.2a found 1.5.3
>
> I tried with the 1.5.2a version but no luck neither.
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Alessandro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org