0 Replies Latest reply on Jun 20, 2005 7:26 PM by Ben Livshits

    Failing to transform: exception thrown at load-time

    Ben Livshits Newbie

      Has anybody seen this exception? Does it have anything to do with a protection domain error people reported a while back (http://jira.jboss.com/jira/browse/JBAOP-126).

      [error] failed to transform: org.eclipse.osgi.framework.internal.core.BundleContextImpl.. Do verbose mode if you want full stack trace.
      error getting:org.eclipse.osgi.framework.eventmgr.EventListeners. 'addListener'
      javassist.CannotCompileException: org/jboss/aop/instrument/Untransformable
       at org.jboss.aop.standalone.StandaloneClassPool.toClass(StandaloneClassPool.java:62)
       at javassist.CtClass.toClass(CtClass.java:962)
       at org.jboss.aop.instrument.TransformerCommon.compileOrLoadClass(TransformerCommon.java:119)
       at org.jboss.aop.instrument.CallerTransformer$CallerExprEditor.createOptimizedMethodCalledByMethodInvocationClass(CallerTransformer.java:913)
       at org.jboss.aop.instrument.CallerTransformer$CallerExprEditor.modifyMethod(CallerTransformer.java:309)
       at org.jboss.aop.instrument.CallerTransformer$CallerExprEditor.edit(CallerTransformer.java:233)
       at javassist.expr.ExprEditor.doit(ExprEditor.java:118)
       at javassist.CtBehavior.instrument(CtBehavior.java:362)
       at org.jboss.aop.instrument.CallerTransformer.applyCallerPointcuts(CallerTransformer.java:69)
       at org.jboss.aop.instrument.Instrumentor.applyCallerPointcuts(Instrumentor.java:492)
       at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:572)
       at org.jboss.aop.AspectManager.translate(AspectManager.java:572)
       at org.jboss.aop.AspectManager.transform(AspectManager.java:490)
       at org.jboss.aop.standalone.AOPTransformer.aspectTransform(AOPTransformer.java:59)
       at org.jboss.aop.standalone.AOPTransformer.transform(AOPTransformer.java:51)
       at sun.instrument.TransformerManager.transform(TransformerManager.java:122)
       at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:137)
       at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:95)
       at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
       at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:215)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
       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.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)
      


      I would really appreciate any help in solving this problem. My command line looks as follows:
      java -mx1024m \
       -Djboss.aop.path="./META-INF/jboss-aop.xml" \
       -javaagent:jboss-aop-jdk50.jar \
       -Djboss.aop.verbose=false \
       -classpath ".:./startup.jar:../lib-50/concurrent.jar:../lib-50/javassist.jar:../lib-50/jboss-aop-jdk50.jar:../lib-50/jboss-common.jar:../lib-50/trove.jar" \
       org.eclipse.core.launcher.Main -install /home/livshits/mining/eclipse -os linux -ws gtk -arch x86