Giter VIP home page Giter VIP logo

Comments (10)

BogdanLivadariu avatar BogdanLivadariu commented on May 22, 2024

@michael-bryson thanks for raising this thing,

I had a similar issue with junit reporting module, but did not managed to reproduce it locally,

will release a new version with the same fix, and hope this will get you going

will let you know when the new hpi is deployed

from bootstraped-multi-test-results-report-plugin.

BogdanLivadariu avatar BogdanLivadariu commented on May 22, 2024

@michael-bryson
I've released 1.4.22 version of the plugin,
you could download it from here until jenkins spots a new version.

let me know if this fixes your problem.

from bootstraped-multi-test-results-report-plugin.

michael-bryson avatar michael-bryson commented on May 22, 2024

@BogdanLivadariu downloaded and installed 1.4.22 but still getting the same error I'm afraid

from bootstraped-multi-test-results-report-plugin.

BogdanLivadariu avatar BogdanLivadariu commented on May 22, 2024

@michael-bryson have you restarted jenkins after updating the plugin ?
if yes, can you uninstall the plugin , and reinstall it again ?

from bootstraped-multi-test-results-report-plugin.

michael-bryson avatar michael-bryson commented on May 22, 2024

@BogdanLivadariu Yes I restarted Jenkins after the install. I have tried an uninstall, reinstall and Jenkins restart again but same error is returned.

from bootstraped-multi-test-results-report-plugin.

BogdanLivadariu avatar BogdanLivadariu commented on May 22, 2024

@michael-bryson what version of jenkins to you use ?

from bootstraped-multi-test-results-report-plugin.

michael-bryson avatar michael-bryson commented on May 22, 2024

@BogdanLivadariu Jenkins 1.636

from bootstraped-multi-test-results-report-plugin.

BogdanLivadariu avatar BogdanLivadariu commented on May 22, 2024

did some investigations, seems like a while back another user reported same problem
seems like 1.636 has some problems around classloader for plugins, at that time I recommended to downgrade jenkins to 1.625 , but I', pretty sure the problem might been fixed in a newer version

here is what that user reported

Hi, I've recently installed latest version of plugin and it fails to publish cucumber report. I've Jenkins ver. 1.636 and distributed job. Master is installed on a Linux machine and Slave is a Mac machine. Error is next

ERROR: Step ‘Publish cucumber reports generated with handlebars’ aborted due to exception: 
java.lang.ClassCircularityError: org/antlr/v4/runtime/atn/PredictionContext
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
    at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
    at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
    at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
    at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at org.jenkinsci.bytecode.ClassWriter.loadClass(ClassWriter.java:97)
    at org.jenkinsci.bytecode.ClassWriter.getCommonSuperClass(ClassWriter.java:64)
    at org.kohsuke.asm5.ClassWriter.getMergedType(ClassWriter.java:1654)
    at org.kohsuke.asm5.Frame.merge(Frame.java:1426)
    at org.kohsuke.asm5.Frame.merge(Frame.java:1325)
    at org.kohsuke.asm5.MethodWriter.visitMaxs(MethodWriter.java:1475)
    at org.kohsuke.asm5.tree.MethodNode.accept(MethodNode.java:833)
    at org.kohsuke.asm5.commons.JSRInlinerAdapter.visitEnd(JSRInlinerAdapter.java:187)
    at org.jenkinsci.bytecode.Transformer$1$1.visitEnd(Transformer.java:107)
    at org.kohsuke.asm5.MethodVisitor.visitEnd(MethodVisitor.java:877)
    at org.kohsuke.asm5.ClassReader.readMethod(ClassReader.java:1021)
    at org.kohsuke.asm5.ClassReader.accept(ClassReader.java:693)
    at org.kohsuke.asm5.ClassReader.accept(ClassReader.java:506)
    at org.jenkinsci.bytecode.Transformer.transform(Transformer.java:113)
    at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:800)
    at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
    at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
    at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.github.jknack.handlebars.internal.HbsLexer.<clinit>(HbsLexer.java:17)
    at com.github.jknack.handlebars.internal.HbsParserFactory.newLexer(HbsParserFactory.java:141)
    at com.github.jknack.handlebars.internal.HbsParserFactory.access$200(HbsParserFactory.java:47)
    at com.github.jknack.handlebars.internal.HbsParserFactory$1.parse(HbsParserFactory.java:74)
    at com.github.jknack.handlebars.cache.NullTemplateCache.get(NullTemplateCache.java:49)
    at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:442)
    at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:385)
    at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:371)
    at com.github.bogdanlivadariu.reporting.cucumber.builder.CucumberReportBuilder.writeFeatureSummaryReports(CucumberReportBuilder.java:58)
    at com.github.bogdanlivadariu.reporting.cucumber.builder.CucumberReportBuilder.writeReportsOnDisk(CucumberReportBuilder.java:172)
    at com.github.bogdanlivadariu.jenkins.reporting.cucumber.CucumberTestReportPublisher.perform(CucumberTestReportPublisher.java:125)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    .....

The most strange thing is that when I debug plugin locally on slave machine plugin works fine. What can be the reason of such failure? Thank you!

here is what I've said:

Hi @ivan-fedorov try downgrading jenkins
Latest version seems to have problems with the classloade for plugins
Try a lts version
Bogdan Livadariu @BogdanLivadariu Nov 07 2015 00:04
1.625
Ivan Fedorov @ivan-fedorov Nov 09 2015 10:55
Hi @BogdanLivadariu You are completely right! It was a jenkins problem and downgrading solved it. Thank you very much!

from bootstraped-multi-test-results-report-plugin.

michael-bryson avatar michael-bryson commented on May 22, 2024

Hi, our Jenkins has been upgraded and I no longer get this error. However when I point to the testng-results.xml file and the build runs I do not get the nicely formatted reports, I only get the attached with a lot of errors in the console when using Chrome.
testng_report

If I use IE I only get a simple table with no charts, is there something missing from my results file?

from bootstraped-multi-test-results-report-plugin.

BogdanLivadariu avatar BogdanLivadariu commented on May 22, 2024

@michael-bryson what is the version of jenkins ?

this error appears because of jenkins security policy

I have an opened issue for that, along with some workarounds : #12

from bootstraped-multi-test-results-report-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.