Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Problems using AspectJ in WSAD

I got the answer!

The problem is with variable expansion. In our project, rt.jar is defined as: SERVERJDK_50_PLUGINDIR/jre/lib/rt.jar and expands to c:\wsad5.1\runtimes\base_v5\java\jre\lib\rt.jar

If I point the classpath directly to c:\wsad5.1\runtimes\base_v5\java\jre\lib\rt.jar, then everything works fine.

-------Original Message-------
> From: Dale Asberry <lists@xxxxxxxxxxxxxxx>
> Subject: Re: Re: [aspectj-users] Problems using AspectJ in WSAD
> Sent: 29 Jun 2004 07:47:58
>
> I'm not sure that I can... in fact, I am now getting the second error and don't know what I did to cause it to happen.
>
> I have more info about it from the eclipse .log file:
>
> !ENTRY org.eclipse.ajdt.ui 4 0 Jun 28, 2004 15:35:20.05
> !MESSAGE Compile failed.
> !STACK 0
> java.lang.NullPointerException
> at org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryResolver.resolveLibraryLocations(JRERuntimeClasspathEntryResolver.java:51)
> at org.eclipse.jdt.internal.launching.JRERuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry(JRERuntimeClasspathEntryResolver.java:43)
> at org.eclipse.jdt.internal.launching.RuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry(RuntimeClasspathEntryResolver.java:81)
> at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:886)
> at org.eclipse.ajdt.internal.ui.ajde.ProjectProperties.getClasspath(ProjectProperties.java:205)
> at org.eclipse.ajdt.internal.builder.Builder.build(Builder.java:150)
> at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
> at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Inlined Compiled Code))
> at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
> at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
> at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Inlined Compiled Code))
> at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)
> at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:265)
> at org.eclipse.core.internal.resources.Project.build(Project.java:85)
> at org.eclipse.ui.actions.BuildAction.invokeOperation(BuildAction.java:156)
> at org.eclipse.ui.actions.WorkspaceAction.execute(WorkspaceAction.java:122)
> at org.eclipse.ui.actions.WorkspaceAction$1.execute(WorkspaceAction.java:279)
> at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
> at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
>
>
> As for the first problem, (until 2 got me) I was able to reproduce it with any pointcut. An additional configuration point, though, is that the aspect is one project and it is applied using the Input Jars (aspects) on the other projects. The aspect jar that is applied is saved to the project that contains the EAR's jar dependencies.
>
> Thanks!
> Dale
>
>
> -------Original Message-------
> > From: George Harley1 <GHARLEY@xxxxxxxxxx>
> > Subject: Re: [aspectj-users] Problems using AspectJ in WSAD
> > Sent: 29 Jun 2004 03:58:43
> >
> > Hi Dale,
> >
> > Would it be possible for you to distil
> > your code into a small test case so that others can try and verify the
> > error ? I will be happy to try and chase this up for you.
> >
> > Best regards,
> > George
> > ________________________________________
> > George C. Harley
> >
> >
> >
> >
> >
> >
> > "Dale Asberry"
> > <lists@xxxxxxxxxxxxxxx>
> > Sent by: aspectj-users-admin@xxxxxxxxxxx
> > 28/06/2004 16:50
> >
> >
> >
> > Please respond to
> > aspectj-users
> >
> >
> >
> >
> >
> > To
> > "aspectj-users@xxxxxxxxxxx"
> > <aspectj-users@xxxxxxxxxxx>
> >
> >
> > cc
> >
> >
> >
> > Subject
> > [aspectj-users] Problems
> > using AspectJ in WSAD
> >
> >
> >
> >
> >
> >
> >
> >
> > Two problems:
> > 1. When accessing the private member (private int test) of the aspect in
> > around advice, I'm getting the exception:
> > SRVE0026E: [Servlet Error]-[test.SqlLoggingAspect: method ajc$inlineAccessFieldGet$test_SqlLoggingAspect$test_SqlLoggingAspect$test(Ltest/SqlLoggingAspect;)I
> > not found]: java.lang.NoSuchMethodError: test.SqlLoggingAspect: method
> > ajc$inlineAccessFieldGet$test_SqlLoggingAspect$test_SqlLoggingAspect$test(Ltest/SqlLoggingAspect;)I
> > not found
> >
> > 2. A coworker has the same configuration as me, however, when he tries
> > to compile a project he gets a dialog saying "Error Compiling Aspect"
> > and that's it. I'm having no problems.
> >
> > WSAD version: 5.1.0 build 20030726_2016
> > AspectJ version: 1.1.4
> > AJDT version: 0.6.4
> -------Original Message-------
-------Original Message-------



Back to the top