Hi Sameera, Thank you for sharing the pack. I tried to execute integration test pointing the pack you have shared.
Its not only the tomcat bundle that gives error it sees some other bundles too. Seems like EMMA is no longer have support for latest JDKs. Since EMMA is off development since 2005 we may need to change our coverage strategy by moving to jacoco Untill we figure this out you can move forward with the integration tests by disabling coverage. You can disable coverage by making <coverage>true</coverage> in automation.xml Thank You, Dharshana. On Thu, Feb 26, 2015 at 7:54 PM, Sameera Jayasoma <[email protected]> wrote: > Thanks Darshana, > > I've uploaded the wso2as-6.0.0-SNAPSHOT distribution to an svn repository. > This pack is built in Java 8. Here are the steps reproduce this error. > > 1) Download the AS pack from [1], unzip and start. You won't get the error > coz no jar files are instrumented using EMMA. > 2) Instrument carbon.tomcat bundle using the following command. I've > attached emma jar file as well. > > java -cp emma-2.1.5320.jar emma instr -m overwrite -cp > org.wso2.carbon.tomcat_4.4.0-SNAPSHOT.jar > > 3) Now start the pack. You will get the error. > > Thanks, > Sameera. > > [1] http://svn.wso2.org/repos/wso2/people/sameera/work/emma-as-pack > > > On Thu, Feb 26, 2015 at 7:02 PM, Dharshana Warusavitharana < > [email protected]> wrote: > >> Hi Sameera, >> >> Will have a look. >> >> Thank you, >> Dharshana. >> >> On Thu, Feb 26, 2015 at 6:56 PM, Sameera Jayasoma <[email protected]> >> wrote: >> >>> Hi Folks, >>> >>> AS integration tests are failing in Java 8 due to $Subject. Following is >>> the error. >>> >>> *java.lang.ClassFormatError: Illegal local variable table length 5 in >>> method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.<init>()V* >>> >>> Looks like Java 8 cannot understand the bytecode produced by >>> instrumentations. We are using an older version of EMMA. I guess the >>> generated bytecode does not compatible with Java 8. >>> >>> Automation Team, can we find a solution to this problem? >>> >>> Thanks, >>> Sameera. >>> >>> >>> [2015-02-26 15:05:04,157] ERROR >>> {org.wso2.carbon.user.core.internal.Activator} - Cannot start User Manager >>> Core bundle >>> >>> *java.lang.ClassFormatError: Illegal local variable table length 5 in >>> method org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory.<init>()V*at >>> java.lang.Class.forName0(Native Method) >>> at java.lang.Class.forName(Class.java:340) >>> at >>> org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1181) >>> at >>> org.wso2.carbon.context.internal.CarbonContextDataHolder$2.run(CarbonContextDataHolder.java:1177) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at >>> org.wso2.carbon.context.internal.CarbonContextDataHolder.classForName(CarbonContextDataHolder.java:1177) >>> at >>> org.wso2.carbon.context.internal.CarbonContextDataHolder.access$700(CarbonContextDataHolder.java:94) >>> at >>> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContextFactoryBuilder.createInitialContextFactory(CarbonContextDataHolder.java:456) >>> at >>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681) >>> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) >>> at >>> javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:341) >>> at javax.naming.InitialContext.lookup(InitialContext.java:417) >>> at javax.naming.InitialContext.doLookup(InitialContext.java:290) >>> >>> >>> -- >>> Sameera Jayasoma, >>> Software Architect, >>> >>> WSO2, Inc. (http://wso2.com) >>> email: [email protected] >>> blog: http://blog.sameera.org >>> twitter: https://twitter.com/sameerajayasoma >>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections >>> Mobile: 0094776364456 >>> >>> Lean . Enterprise . Middleware >>> >>> >> >> >> -- >> >> Dharshana Warusavitharana >> Senior Software Engineer , Test Automation >> WSO2 Inc. http://wso2.com >> email : [email protected] <[email protected]> >> Tel : +94 11 214 5345 >> Fax :+94 11 2145300 >> cell : +94770342233 >> blog : http://dharshanaw.blogspot.com >> >> lean . enterprise . middleware >> > > > > -- > Sameera Jayasoma, > Software Architect, > > WSO2, Inc. (http://wso2.com) > email: [email protected] > blog: http://blog.sameera.org > twitter: https://twitter.com/sameerajayasoma > flickr: http://www.flickr.com/photos/sameera-jayasoma/collections > Mobile: 0094776364456 > > Lean . Enterprise . Middleware > > -- Dharshana Warusavitharana Senior Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : [email protected] <[email protected]> Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
