Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] [org.eclipse.equinox.weaving.hook] info removing supplementer


Glad to hear that you god it working!

Cheers,
-Martin


steven wrote:
Hi martin,

I don't know what went wrong, but after installing a fresh eclipse and equinox aspects from the update site everything works fine. the "clean configuration area before launching" option is not needed as well as the
"org.eclipse.equinox.simpleconfigurator@1\:start" entry in the config.ini.

thx!
steven


On Mar 7, 2009, at 4:58 PM, Martin Lippert wrote:

Hi Steven!

I looked at your example and it looks good, from my point of view. It seems to be a question of how you launch your app. Do you launch an Eclipse Application from your IDE? In that case you should add the simpleconfigurator bundle to your config.ini setting:

osgi.bundles=org.eclipse.equinox.simpleconfigurator@1\:start, org.eclipse.equinox.weaving.aspectj@1\:start

I tried that and it works pretty fine. Maybe you should also set "clean configuration area before launching" to be sure to run within a clean configuration.

HTH,
-Martin



steven wrote:
hi martin,
that's right, my aspect is not woven.
I attached a sample workspace.
thanks for your support!!
steven
On Mar 6, 2009, at 12:12 PM, Martin Lippert wrote:
Hi Steven!

The message "removing supplementer" looks indeed strange, but some weaving seems to take place. But that seems not like weaving from your aspect, right?

Could you send me a small example workspace to tryou your setting?

-Martin




I am trying to hook into an eclipse plugin. I am using the HelloAspect.aj from the Hello World! Demo.
My config.ini:
osgi.bundles=org.eclipse.equinox.weaving.aspectj@1\:start
osgi.bundles.defaultStartLevel=4
osgi.framework=org.eclipse.osgi
osgi.configuration.cascaded=false
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
org.eclipse.update.reconcile=false
# AOSGi
osgi.framework.extensions=org.eclipse.equinox.weaving.hook
org.aspectj.weaver.showWeaveInfo=true
org.aspectj.osgi.verbose=true
The plugin that I am trying to hook into, is an eclipse ui sample plugin. As in the hello world demo, HelloAspect.aj hooks into the execution of the Activator's start() method.
when starting a runtime workbench I get the following output:
[org.eclipse.equinox.weaving.hook] info adding AspectJ hooks ...
[org.eclipse.equinox.weaving.hook] info removing supplementer org.eclipse.equinox.weaving.demo.hello.aspects [org.eclipse.equinox.weaving.aspectj] info Starting AspectJ weaving service ... [org.eclipse.equinox.weaving.aspectj] info weaving bundle 'org.eclipse.jdt.ui' [org.eclipse.equinox.weaving.aspectj] info weaving bundle 'org.eclipse.jdt.core' [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.core.WorkingCopyOwner' (WorkingCopyOwner.java:140) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.core.WorkingCopyOwner' (WorkingCopyOwner.java:187) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.JavaModelManager' (JavaModelManager.java:2140) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'method-execution(void org.eclipse.jdt.internal.core.Openable.codeComplete(org.eclipse.jdt.internal.compiler.env.ICompilationUnit, org.eclipse.jdt.internal.compiler.env.ICompilationUnit, int, org.eclipse.jdt.core.CompletionRequestor, org.eclipse.jdt.core.WorkingCopyOwner, org.eclipse.jdt.core.ITypeRoot))' in Type 'org.eclipse.jdt.internal.core.Openable' (Openable.java:105) advised by around advice from 'org.eclipse.contribution.jdt.itdawareness.ITDAwarenessAspect' (ITDAwarenessAspect.aj:255) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.CompilationUnit' (CompilationUnit.java:574) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.CompilationUnit' (CompilationUnit.java:873) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.CompilationUnit' (CompilationUnit.java:964) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.CompilationUnit' (CompilationUnit.java:1120) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.CopyResourceElementsOperation' (CopyResourceElementsOperation.java:245) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.ui] weaveinfo Join point 'method-execution(org.eclipse.jface.resource.ImageDescriptor org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider.computeDescriptor(java.lang.Object, int))' in Type 'org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider' (JavaElementImageProvider.java:115) advised by around advice from 'org.eclipse.contribution.jdt.imagedescriptor.ImageDescriptorSelectorAspect' (ImageDescriptorSelectorAspect.aj:78) [org.eclipse.jdt.ui] weaveinfo Join point 'method-execution(org.eclipse.jface.resource.ImageDescriptor org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider.getTypeImageDescriptor(boolean, boolean, int, boolean))' in Type 'org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider' (JavaElementImageProvider.java:456) advised by around advice from 'org.eclipse.contribution.jdt.imagedescriptor.ImageDescriptorSelectorAspect' (ImageDescriptorSelectorAspect.aj:43) [with runtime test] [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.PackageFragment' (PackageFragment.java:87) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.PackageFragment' (PackageFragment.java:146) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.PackageFragment' (PackageFragment.java:216) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.CompilationUnit.<init>(org.eclipse.jdt.internal.core.PackageFragment, java.lang.String, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.PackageFragment' (PackageFragment.java:275) advised by around advice from 'org.eclipse.contribution.jdt.cuprovider.CompilationUnitProviderAspect' (CompilationUnitProviderAspect.aj:38) [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(org.eclipse.jdt.internal.core.JavaProject, org.eclipse.jdt.core.ICompilationUnit[]))' in Type 'org.eclipse.jdt.internal.core.JavaProject' (JavaProject.java:2214) advised by around advice from 'org.eclipse.contribution.jdt.itdawareness.ITDAwarenessAspect' (ITDAwarenessAspect.aj:94) [with runtime test] [org.eclipse.jdt.core] weaveinfo Join point 'constructor-call(void org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(org.eclipse.jdt.internal.core.JavaProject, org.eclipse.jdt.core.WorkingCopyOwner))' in Type 'org.eclipse.jdt.internal.core.JavaProject' (JavaProject.java:2222) advised by around advice from 'org.eclipse.contribution.jdt.itdawareness.ITDAwarenessAspect' (ITDAwarenessAspect.aj:153) [with runtime test]
why is the supplementer removed?
regards,
steven
------------------------------------------------------------------------
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
------------------------------------------------------------------------
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev




Back to the top