synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <hiranya...@gmail.com>
Subject Re: Axiom/AspectJ Errors when Building Synapse
Date Mon, 29 Sep 2014 23:51:20 GMT
Hi Andreas,

I see a commit to Axis2 that may be related to this (r1626559). I tried the same fix on Synapse,
but it causes transport tests to fail. Any idea what's the proper fix for this issue is?

Thanks,
Hiranya


On Sep 21, 2014, at 2:02 PM, Hiranya Jayathilaka <hiranya911@gmail.com> wrote:

> I see the same error in the logs from the latest Jenkins build:
> 
> Sep 21, 2014 8:39:48 PM org.aspectj.weaver.tools.Jdk14Trace error
> SEVERE: org/apache/axiom/om/impl/llom/OMDocumentImpl
> org.aspectj.weaver.BCException: Unable to continue, this version of AspectJ supports
classes built with weaver version 6.0 but the class org.apache.axiom.om.impl.llom.OMDocumentImpl
is version 7.0
> 
> 	at org.aspectj.weaver.bcel.BcelAttributes.readAjAttributes(BcelAttributes.java:87)
> 	at org.aspectj.weaver.bcel.BcelObjectType.ensureAspectJAttributesUnpacked(BcelObjectType.java:333)
> 	at org.aspectj.weaver.bcel.BcelObjectType.<init>(BcelObjectType.java:151)
> 
> Full log available at https://builds.apache.org/job/Synapse%20-%20Trunk/4900/consoleText
> 
> So the problem seems to be happening everywhere.
> 
> Thanks,
> Hiranya
> 
> On Sep 21, 2014, at 1:42 PM, Hiranya Jayathilaka <hiranya911@gmail.com> wrote:
> 
>> It doesn't break the build. Tests are still passing despite the errors.
>> 
>> I'm simply running "mvn clean install" at the root level of the project. I'll try
on a clean maven repo and see.
>> 
>> Thanks,
>> Hiranya
>> 
>> On Sep 20, 2014, at 7:44 PM, Rajika Kumarasiri <rajika.kumarasiri@gmail.com>
wrote:
>> 
>>> I just built Synapse with tests successfully. What command line options do you
use ? Perhaps there is a corrupted jar in you local maven repo ? 
>>> 
>>> Rajika
>>> 
>>> On Sat, Sep 20, 2014 at 5:10 PM, Hiranya Jayathilaka <hiranya911@gmail.com>
wrote:
>>> When building the Synapse nhttp transport modules I see a bunch of error messages
like this:
>>> 
>>> Sep 20, 2014 2:07:43 PM org.aspectj.weaver.tools.Jdk14Trace info
>>> INFO: Dumping to /Users/hiranya/Projects/synapse/impl/trunk/modules/transports/core/nhttp/./ajcore.20140920.140743.993.txt
>>> Sep 20, 2014 2:07:43 PM org.aspectj.weaver.tools.Jdk14Trace error
>>> SEVERE: org/apache/axiom/om/impl/common/OMAttributeSupport
>>> org.aspectj.weaver.BCException: Unable to continue, this version of AspectJ supports
classes built with weaver version 6.0 but the class org.apache.axiom.om.impl.common.OMAttributeSupport
is version 7.0
>>> 
>>> 	at org.aspectj.weaver.bcel.BcelAttributes.readAjAttributes(BcelAttributes.java:87)
>>> 	at org.aspectj.weaver.bcel.BcelObjectType.ensureAspectJAttributesUnpacked(BcelObjectType.java:333)
>>> 	at org.aspectj.weaver.bcel.BcelObjectType.<init>(BcelObjectType.java:151)
>>> 	at org.aspectj.weaver.bcel.BcelWorld.buildBcelDelegate(BcelWorld.java:299)
>>> 	at org.aspectj.weaver.bcel.BcelWorld.addSourceObjectType(BcelWorld.java:361)
>>> 	at org.aspectj.weaver.tools.WeavingAdaptor.ensureDelegateInitialized(WeavingAdaptor.java:382)
>>> 	at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.accept(ClassLoaderWeavingAdaptor.java:605)
>>> 	at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAdaptor.java:274)
>>> 	at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:91)
>>> 	at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:52)
>>> 	at sun.instrument.TransformerManager.transform(TransformerManager.java:169)
>>> 	at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:365)
>>> 	at java.lang.ClassLoader.defineClass1(Native Method)
>>> 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>> 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>> 	at java.security.AccessController.doPrivileged(Native Method)
>>> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>> 	at org.apache.axiom.om.impl.llom.OMAttributeImpl.getOwner(OMAttributeImpl.java:1)
>>> 	at org.apache.axiom.om.impl.llom.OMElementImpl.addAttribute(OMElementImpl.java:402)
>>> 	at org.apache.axiom.om.impl.llom.OMElementImpl.addAttribute(OMElementImpl.java:462)
>>> 	at org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:244)
>>> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(StAXOMBuilder.java:436)
>>> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(StAXOMBuilder.java:452)
>>> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.createNextOMElement(StAXOMBuilder.java:316)
>>> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:223)
>>> 	at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethod$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$buildNext(CoreParentNodeSupport.aj:58)
>>> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:1)
>>> 	at org.apache.axiom.core.CoreParentNodeSupport.ajc$interMethodDispatch1$org_apache_axiom_core_CoreParentNodeSupport$org_apache_axiom_core_CoreParentNode$buildNext(CoreParentNodeSupport.aj)
>>> 	at org.apache.axiom.core.CoreChildNodeSupport.ajc$interMethod$org_apache_axiom_core_CoreChildNodeSupport$org_apache_axiom_core_CoreChildNode$coreGetNextSibling(CoreChildNodeSupport.aj:103)
>>> 	at org.apache.axiom.om.impl.llom.OMNodeImpl.coreGetNextSibling(OMNodeImpl.java:1)
>>> 	at org.apache.axiom.core.CoreChildNodeSupport.ajc$interMethodDispatch1$org_apache_axiom_core_CoreChildNodeSupport$org_apache_axiom_core_CoreChildNode$coreGetNextSibling(CoreChildNodeSupport.aj)
>>> 	at org.apache.axiom.core.CoreDocumentSupport.ajc$interMethod$org_apache_axiom_core_CoreDocumentSupport$org_apache_axiom_core_CoreDocument$coreGetDocumentElement(CoreDocumentSupport.aj:38)
>>> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.coreGetDocumentElement(OMDocumentImpl.java:1)
>>> 	at org.apache.axiom.om.impl.common.OMDocumentSupport.ajc$interMethod$org_apache_axiom_om_impl_common_OMDocumentSupport$org_apache_axiom_om_impl_common_IDocument$getOMDocumentElement(OMDocumentSupport.aj:25)
>>> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:1)
>>> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:572)
>>> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:568)
>>> 	at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:592)
>>> 	at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)
>>> 	at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
>>> 	at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90)
>>> 	at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:629)
>>> 	at org.apache.axis2.transport.CustomAxisConfigurator.getAxisConfiguration(CustomAxisConfigurator.java:37)
>>> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
>>> 	at org.apache.axis2.transport.UtilsTransportServer.<init>(UtilsTransportServer.java:51)
>>> 	at org.apache.axis2.transport.testkit.axis2.endpoint.AxisTestEndpointContext.setUp(AxisTestEndpointContext.java:59)
>>> 	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:597)
>>> 	at org.apache.axis2.transport.testkit.tests.TestResource$MethodInvocation.execute(TestResource.java:53)
>>> 	at org.apache.axis2.transport.testkit.tests.TestResource.setUp(TestResource.java:172)
>>> 	at org.apache.axis2.transport.testkit.tests.TestResourceSet.setUp(TestResourceSet.java:151)
>>> 	at org.apache.axis2.transport.testkit.tests.TestResourceSet.setUp(TestResourceSet.java:132)
>>> 	at org.apache.axis2.transport.testkit.ManagedTestSuite.run(ManagedTestSuite.java:105)
>>> 	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:597)
>>> 	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:96)
>>> 	at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:121)
>>> 	at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:98)
>>> 	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:597)
>>> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
>>> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
>>> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
>>> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>>> Sep 20, 2014 2:07:43 PM org.aspectj.weaver.tools.Jdk14Trace info
>>> 
>>> This also leaves a set of meta files in the build directory:
>>> 
>>> ajcore.20140920.140743.824.txt ajcore.20140920.140743.871.txt ajcore.20140920.140743.909.txt
ajcore.20140920.140743.958.txt ajcore.20140920.140743.997.txt
>>> ajcore.20140920.140743.830.txt ajcore.20140920.140743.875.txt ajcore.20140920.140743.913.txt
ajcore.20140920.140743.962.txt ajcore.20140920.140744.013.txt
>>> ajcore.20140920.140743.844.txt ajcore.20140920.140743.883.txt ajcore.20140920.140743.917.txt
ajcore.20140920.140743.968.txt logs
>>> ajcore.20140920.140743.850.txt ajcore.20140920.140743.887.txt ajcore.20140920.140743.922.txt
ajcore.20140920.140743.975.txt pom.xml
>>> ajcore.20140920.140743.854.txt ajcore.20140920.140743.891.txt ajcore.20140920.140743.932.txt
ajcore.20140920.140743.980.txt src
>>> ajcore.20140920.140743.858.txt ajcore.20140920.140743.896.txt ajcore.20140920.140743.937.txt
ajcore.20140920.140743.985.txt synapse-nhttp-transport.iml
>>> ajcore.20140920.140743.863.txt ajcore.20140920.140743.900.txt ajcore.20140920.140743.941.txt
ajcore.20140920.140743.988.txt target
>>> ajcore.20140920.140743.867.txt ajcore.20140920.140743.905.txt ajcore.20140920.140743.953.txt
ajcore.20140920.140743.993.txt
>>> 
>>> Any idea what this is all about, and how to fix it? Seems related to Axiom.
>>> 
>>> Thanks,
>>> Hiranya
>>> 
>>> --
>>> Hiranya Jayathilaka
>>> Mayhem Lab/RACE Lab;
>>> Dept. of Computer Science, UCSB;  http://cs.ucsb.edu
>>> E-mail: hiranya@cs.ucsb.edu;  Mobile: +1 (805) 895-7443
>>> Blog: http://techfeast-hiranya.blogspot.com
>>> 
>>> 
>> 
>> --
>> Hiranya Jayathilaka
>> Mayhem Lab/RACE Lab;
>> Dept. of Computer Science, UCSB;  http://cs.ucsb.edu
>> E-mail: hiranya@cs.ucsb.edu;  Mobile: +1 (805) 895-7443
>> Blog: http://techfeast-hiranya.blogspot.com
>> 
> 
> --
> Hiranya Jayathilaka
> Mayhem Lab/RACE Lab;
> Dept. of Computer Science, UCSB;  http://cs.ucsb.edu
> E-mail: hiranya@cs.ucsb.edu;  Mobile: +1 (805) 895-7443
> Blog: http://techfeast-hiranya.blogspot.com
> 

--
Hiranya Jayathilaka
Mayhem Lab/RACE Lab;
Dept. of Computer Science, UCSB;  http://cs.ucsb.edu
E-mail: hiranya@cs.ucsb.edu;  Mobile: +1 (805) 895-7443
Blog: http://techfeast-hiranya.blogspot.com


Mime
View raw message