Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Load-time weaving problem on RCP apps
Load-time weaving problem on RCP apps [message #595434] Tue, 28 November 2006 17:30
Stéphane  ournier is currently offline Stéphane ournier
Messages: 258
Registered: July 2009
Senior Member
Hi,

I am using Eclipse 3.2.1 + AJDT 1.4.1 + JDK 1.5.0_06 (Win32).
I failed to test load-time weaving on RCP apps (for instance : RCP Mail
from Eclipse templates).

Before using 1.5.2 aspectj version, I encountered bug #151182.
So I decided to switch to 1.5M3 ajdt and 3.3M3 eclipse versions.
This new issue appeared then (so I tried 1.4.1 ajdt version, with the
same result).

Does anyone have a clue ?

Thanks,
Stephane.


Here is the error I got:

[EclipseClassLoader@10ca208] info AspectJ Weaver Version 1.5.3 built on
Wednesday Nov 22, 2006 at 11:18:15 GMT
[EclipseClassLoader@10ca208] info register classloader
org.eclipse.core.runtime.adaptor.EclipseClassLoader@10ca208
[EclipseClassLoader@10ca208] info using configuration /META-INF/aop.xml
[EclipseClassLoader@10ca208] info define aspect ConcreteAspect
28 nov. 2006 10:20:32 org.aspectj.weaver.tools.Jdk14Trace error
GRAVE: rcp/mail/Activator
java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
at
org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTyp eDelegate.initialize(Java15ReflectionBasedReferenceTypeDeleg ate.java:63)
at
org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDeleg ateFactory.create15Delegate(ReflectionBasedReferenceTypeDele gateFactory.java:56)
at
org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDeleg ateFactory.createDelegate(ReflectionBasedReferenceTypeDelega teFactory.java:42)
at
org.aspectj.weaver.ltw.LTWWorld.resolveReflectionTypeDelegat e(LTWWorld.java:133)
at
org.aspectj.weaver.ltw.LTWWorld.resolveIfBootstrapDelegate(L TWWorld.java:115)
at org.aspectj.weaver.ltw.LTWWorld.resolveDelegate(LTWWorld.jav a:92)
at org.aspectj.weaver.World.resolveToReferenceType(World.java:3 78)
at org.aspectj.weaver.World.resolve(World.java:271)
at org.aspectj.weaver.World.resolve(World.java:191)
at
org.aspectj.weaver.bcel.BcelObjectType.getSuperclass(BcelObj ectType.java:189)
at org.aspectj.weaver.ReferenceType.getSuperclass(ReferenceType .java:605)
at
org.aspectj.weaver.loadtime.ConcreteAspectCodeGen.getOutstan dingAbstractMethodsHelper(ConcreteAspectCodeGen.java:229)
at
org.aspectj.weaver.loadtime.ConcreteAspectCodeGen.getOutstan dingAbstractMethods(ConcreteAspectCodeGen.java:219)
at
org.aspectj.weaver.loadtime.ConcreteAspectCodeGen.validate(C oncreteAspectCodeGen.java:169)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erAspects(ClassLoaderWeavingAdaptor.java:424)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.regist erDefinitions(ClassLoaderWeavingAdaptor.java:240)
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initia lize(ClassLoaderWeavingAdaptor.java:152)
at
org.aspectj.weaver.loadtime.Aj$ExplicitlyInitializedClassLoa derWeavingAdaptor.initialize(Aj.java:151)
at
org.aspectj.weaver.loadtime.Aj$ExplicitlyInitializedClassLoa derWeavingAdaptor.getWeavingAdaptor(Aj.java:156)
at org.aspectj.weaver.loadtime.Aj$WeaverContainer.getWeaver(Aj. java:122)
at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:73)
at
org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.tr ansform(ClassPreProcessorAgentAdapter.java:55)
at sun.instrument.TransformerManager.transform(TransformerManag er.java:122)
at
sun.instrument.InstrumentationImpl.transform(Instrumentation Impl.java:155)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultCl assLoader.defineClass(DefaultClassLoader.java:298)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:223)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultCl assLoader.findClassImpl(DefaultClassLoader.java:281)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultCl assLoader.findClass(DefaultClassLoader.java:172)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:220)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:135)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:73)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:307)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:336)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:151)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:933)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:421)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:293)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:110)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:307)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:336)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1313)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:131)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:331)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
28 nov. 2006 10:20:32 org.aspectj.weaver.tools.Jdk14Trace info
INFO: Dumping to
C:\outils\sdk\3.3M3\eclipse\.\ajcore.20061128.102032.984.txt
--
Previous Topic:Load-time weaving problem on RCP apps
Next Topic:AJDT New Feature: Select and copy from the Cross References view
Goto Forum:
  


Current Time: Sat Oct 25 22:07:18 GMT 2014

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

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