xUnit Plug-in, throws exception

27 views
Skip to first unread message

Thom Ellis

unread,
Feb 16, 2015, 8:38:45 PM2/16/15
to jenkins...@googlegroups.com
I'm trying to get xUnit working with a custom xsl file I've written.  I tested the transformation in Eclipse and everything works fine, Eclipse recognizes the output as a jUnit file.  I've verified that Jenkins can see the xsl file, and the xml file by simply adding 'ls' commands to the build step, and there doesn't seem to be any issues there. 

I get as far as xUnit trying to process the XML, before it blows up (output below).  Is this something in my xsl that's causing the issue?  Am I missing a package/library or something?  I'm not finding a lot of info on this one, so thanks for any help in advance!

Cheers!

[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing Custom Tool
ERROR: Build step failed with exception
java.lang.TypeNotPresentException: Type org.codehaus.jackson.annotate.JsonIgnore not present
at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:39)
at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:51)
at com.ibm.oti.reflect.Method.getDeclaredAnnotations(Method.java:35)
at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:719)
at java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObject.java:187)
at com.ibm.oti.reflect.Method.getAnnotation(Method.java:21)
at java.lang.reflect.Method.getAnnotation(Method.java:703)
at com.google.inject.spi.InjectionPoint.getAtInject(InjectionPoint.java:478)
at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:676)
at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
at com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:165)
at com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:612)
at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:568)
at com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:554)
at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:877)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:798)
at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:281)
at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:213)
at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:998)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1031)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:994)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
at org.jenkinsci.plugins.xunit.XUnitProcessor.getXUnitToolInfoObject(XUnitProcessor.java:204)
at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:134)
at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:81)
at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:112)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
at hudson.model.Run.execute(Run.java:1743)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.annotate.JsonIgnore
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:34)
... 34 more
Build step 'Publish xUnit test result report' marked build as failure
Finished: FAILURE

Reply all
Reply to author
Forward
0 new messages