0

I am using below code-

codeImage

The external dependency used are -

externalDependency I am getting the error below as -

{
    "timestamp": "2022-05-11",
    "message": "Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle.getDefault()Lorg/openxmlformats/schemas/wordprocessingml/x2006/main/STOnOff$Enum;",
    "details": "uri=/pdf"
}
Olaf Kock
  • 46,930
  • 8
  • 59
  • 90
Bhumika
  • 45
  • 2
  • 10
  • The fact you have three different versions of xdocreport dependencies looks suspicious to me. I suspect you need to use the same version (2.0.3) for all three of those dependencies. Similarly, the fact you have two Apache POI dependency versions is very suspicious (5.2.2 and 4.1.2). Please make sure your dependencies are consistent and compatible, as that is likely the cause of the NoSuchMethodError. – Mark Rotteveel May 11 '22 at 10:31
  • 1
    Also, for future reference, please do not post images of code, post them as code-formatted text. – Mark Rotteveel May 11 '22 at 10:33
  • After using same versions , i am getting "message": "Handler dispatch failed; nested exception is java.lang.NoSuchFieldError: Factory", – Bhumika May 11 '22 at 10:39
  • 1
    That suggests you still have some incompatible combination of libraries. Check the documentation of all those libraries to see which dependency versions they require. – Mark Rotteveel May 11 '22 at 10:40
  • 1
    For future questions, please observe: Please [don't upload text as image](https://meta.stackoverflow.com/a/285557/13447). Rather consider to use the editor's formatting options. Also see [ask]. – Olaf Kock May 11 '22 at 11:29

0 Answers0