commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [BCEL] Test failures when building site
Date Sat, 18 Jun 2016 13:01:01 GMT
Yes, looks OK.

So we can just remove any refs to cobertura or jacoco from pom.xml
and create the following empty file:

src/site/resources/profile.jacoco



On 18 June 2016 at 13:40, Benedikt Ritter <britter@apache.org> wrote:
> I was able to fix this problem by switching to JaCoCo. Can you confirm?
>
> Benedikt
>
> sebb <sebbaz@gmail.com> schrieb am Sa., 18. Juni 2016 um 13:41 Uhr:
>
>> I get the same problem, but "mvn clen test" works OK.
>>
>> I think this is because of Cobertura - that messes with the class
>> files, and may confuse BCEL.
>>
>> I tried
>>
>> mvn clean site -Dcobertura.skip
>>
>> and that reduces the number of failures, but there is still one:
>>
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on
>> project bcel: failed to get report for
>> org.codehaus.mojo:cobertura-maven-plugin: Failed to execute goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
>> (default-test) on project bcel: Execution default-test of goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed:
>> There was an error in the forked process
>> [ERROR] java.lang.NoClassDefFoundError:
>> org/apache/bcel/generic/BranchInstruction
>> [ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
>> [ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
>> [ERROR] at java.lang.Class.getMethod0(Class.java:2856)
>> ...
>>
>> However, target/classes/org/apache/bcel/generic/BranchInstruction.class
>> does exist.
>>
>> Note that this is a second invocation of Surefire; the original one works
>> OK.
>> AFAIK, that should not happen if cobertura.skip is defined.
>>
>> Remove cobertura from the report section of the pom and it works better.
>>
>> On 18 June 2016 at 12:20, Benedikt Ritter <britter@apache.org> wrote:
>> > Hi,
>> >
>> > when running mvn test I get:
>> > Tests run: 102, Failures: 0, Errors: 0, Skipped: 0
>> >
>> > When I run mvn site I get 28 Errors (see below).
>> >
>> > Any idea why this happens? I'm building with:
>> >
>> > Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
>> > 2015-11-10T17:41:47+01:00)
>> > Maven home: /usr/local/Cellar/maven/3.3.9/libexec
>> > Java version: 1.7.0_79, vendor: Oracle Corporation
>> > Java home:
>> > /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre
>> > Default locale: de_DE, platform encoding: UTF-8
>> > OS name: "mac os x", version: "10.11.5", arch: "x86_64", family: "mac"
>> >
>> > Thank you,
>> > Benedikt
>> >
>> > ----------
>> >
>> > mvn clean site
>> >
>> > Tests in error:
>> >   ElementValueGenTestCase.testCreateClassElementValue:205
>> > ExceptionInInitializer
>> >   ElementValueGenTestCase.testCreateEnumElementValue:181 NoClassDefFound
>> > Could n...
>> >   InstructionFinderTestCase.testSearchAll:37 » NoClassDefFound Could not
>> > initial...
>> >   PLSETestCase.testB208:41 » NoClassDefFound Could not initialize class
>> > org.apac...
>> >   PLSETestCase.testB79:60 » NoClassDefFound Could not initialize class
>> > org.apach...
>> >   PerformanceTest.testPerformance:136->access$000:40->test:102 »
>> > NoClassDefFound
>> >   AnnotationGenTestCase.testConstructMutableAnnotation:61 NoClassDefFound
>> > Could ...
>> >   AnnotationGenTestCase.testVisibleInvisibleAnnotationGen:86
>> > NoClassDefFound Cou...
>> >
>> >
>> FieldAnnotationsTestCase.testFieldAnnotationModification:81->AbstractTestCase.createFruitAnnotationEntry:203
>> > » NoClassDefFound
>> >
>> >
>> GeneratingAnnotatedClassesTestCase.testGenerateClassLevelAnnotations:81->createSimpleVisibleAnnotation:637
>> > NoClassDefFound
>> >
>> >
>> GeneratingAnnotatedClassesTestCase.testGenerateMethodLevelAnnotations1:124->buildClassContentsWithAnnotatedMethods:418->createMethodGen:622
>> > NoClassDefFound
>> >
>> >
>> GeneratingAnnotatedClassesTestCase.testGenerateMethodLevelAnnotations2:164->buildClassContentsWithAnnotatedMethods:418->createMethodGen:622
>> > NoClassDefFound
>> >
>> >
>> GeneratingAnnotatedClassesTestCase.testModifyingClasses1:368->createFruitAnnotation:650
>> > NoClassDefFound
>> >
>> >
>> GeneratingAnnotatedClassesTestCase.testModifyingClasses2:385->createCombinedAnnotation:659->createSimpleVisibleAnnotation:637
>> > NoClassDefFound
>> >   MethodGenTestCase.testRemoveLocalVariable:51->getMethod:42 »
>> > NoClassDefFound C...
>> >   MethodGenTestCase.testRemoveLocalVariables:72->getMethod:42 »
>> > NoClassDefFound ...
>> >   TypeTestCase.testBCEL243:12 NoClassDefFound Could not initialize class
>> > org.apa...
>> >   BCELifierTestCase.test:23 » NoClassDefFound Could not initialize class
>> > org.apa...
>> >   BCELifierTestCase.testJavapCompare:33->testClassOnPath:47 »
>> > NoClassDefFound Co...
>> >   VerifierArrayAccessTestCase.testInvalidArrayAccess:30 » NoClassDefFound
>> > Could ...
>> >
>> >
>> VerifierArrayAccessTestCase.testValidArrayAccess:38->AbstractVerifierTestCase.assertVerifyOK:38->AbstractVerifierTestCase.doAllPasses:76
>> > » NoClassDefFound
>> >
>> >
>> VerifierInvokeTestCase.testLegalInvokeInterface:34->AbstractVerifierTestCase.assertVerifyOK:38->AbstractVerifierTestCase.doAllPasses:76
>> > » NoClassDefFound
>> >
>> >
>> VerifierInvokeTestCase.testLegalInvokeSpecial:38->AbstractVerifierTestCase.assertVerifyOK:38->AbstractVerifierTestCase.doAllPasses:76
>> > » NoClassDefFound
>> >
>> >
>> VerifierInvokeTestCase.testLegalInvokeStatic:30->AbstractVerifierTestCase.assertVerifyOK:38->AbstractVerifierTestCase.doAllPasses:76
>> > » NoClassDefFound
>> >
>> >
>> VerifierInvokeTestCase.testLegalInvokeVirtual:25->AbstractVerifierTestCase.assertVerifyOK:38->AbstractVerifierTestCase.doAllPasses:76
>> > » NoClassDefFound
>> >   VerifierReturnTestCase.testInvalidReturn:28 » NoClassDefFound Could not
>> > initia...
>> >
>> >
>> VerifierReturnTestCase.testValidReturn:35->AbstractVerifierTestCase.assertVerifyOK:38->AbstractVerifierTestCase.doAllPasses:76
>> > » NoClassDefFound
>> >   VerifierTestCase.testDefaultMethodValidation:36 » NoClassDefFound Could
>> > not in...
>> >
>> > Tests run: 102, Failures: 0, Errors: 28, Skipped: 0
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message