-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
Jenkins 2.303.1
checkmarkx 2021.3.1
After upgrading Jenkins from 2.289.1 to 2.303.1 and while getting scanning results the following error appears:
java.lang.VerifyError: Bad return type Exception Details: Location: org/springframework/http/converter/json/Jackson2ObjectMapperBuilder$XmlObjectMapperInitializer.create(Lcom/fasterxml/jackson/core/JsonFactory;)Lcom/fasterxml/jackson/databind/ObjectMapper; @15: areturn Reason: Type 'com/fasterxml/jackson/dataformat/xml/XmlMapper' (current frame, stack[0]) is not assignable to 'com/fasterxml/jackson/databind/ObjectMapper' (from method signature) Current Frame: bci: @15 flags: { } locals: { 'org/springframework/http/converter/json/Jackson2ObjectMapperBuilder$XmlObjectMapperInitializer', 'com/fasterxml/jackson/core/JsonFactory' } stack: { 'com/fasterxml/jackson/dataformat/xml/XmlMapper' } Bytecode: 0x0000000: 2bc6 000f bb00 0359 2bc0 0004 b700 05b0 0x0000010: bb00 0359 b800 06b7 0007 b0 Stackmap Table: same_frame(@16) at org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.build(Jackson2ObjectMapperBuilder.java:674) at org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter.<init>(MappingJackson2XmlHttpMessageConverter.java:52) at org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter.<init>(AllEncompassingFormHttpMessageConverter.java:104) at org.springframework.web.client.RestTemplate.<init>(RestTemplate.java:161) at org.whitesource.agent.dependency.resolver.html.HtmlDependencyResolver.collectJsFilesAndCalcHashes(HtmlDependencyResolver.java:111) at org.whitesource.agent.dependency.resolver.html.HtmlDependencyResolver.resolveDependencies(HtmlDependencyResolver.java:81) at org.whitesource.agent.dependency.resolver.DependencyResolutionService.lambda$null$3(DependencyResolutionService.java:246) at java.util.HashMap.forEach(HashMap.java:1289) at org.whitesource.agent.dependency.resolver.DependencyResolutionService.lambda$resolveDependencies$4(DependencyResolutionService.java:242) at java.util.HashMap.forEach(HashMap.java:1289) at org.whitesource.agent.dependency.resolver.DependencyResolutionService.resolveDependencies(DependencyResolutionService.java:241) at org.whitesource.agent.FileSystemScanner.createProjects(FileSystemScanner.java:224) at org.whitesource.fs.ComponentScan.scan(ComponentScan.java:71) at com.cx.restclient.CxOSAClient.resolveOSADependencies(CxOSAClient.java:145) at com.cx.restclient.CxOSAClient.initiateScan(CxOSAClient.java:100) at com.cx.restclient.CxClientDelegator.lambda$initiateScan$1(CxClientDelegator.java:87) at java.util.Map.forEach(Map.java:630) at com.cx.restclient.CxClientDelegator.initiateScan(CxClientDelegator.java:85) at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:128) at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:26) at hudson.FilePath.act(FilePath.java:1173) at hudson.FilePath.act(FilePath.java:1156) at com.checkmarx.jenkins.CxScanBuilder.perform(CxScanBuilder.java:865) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Finished: FAILURE