When I try to
- Code: Select all
tocGenerator.generateToc( 0, "TOC \\o \"1-3\" \\h \\z \\u ", false);
I am gettting the error . Could you help me about that ? Regards
- Code: Select all
Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144)
at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:966)
at org.apache.http.impl.client.HttpClients.createDefault(HttpClients.java:58)
at org.docx4j.services.client.ConverterHttp.convert(ConverterHttp.java:182)
at org.docx4j.toc.TocGenerator.getPageNumbersMapViaService(TocGenerator.java:701)
at org.docx4j.toc.TocGenerator.getPageNumbersMap(TocGenerator.java:663)
at org.docx4j.toc.TocGenerator.populateToc(TocGenerator.java:438)
at org.docx4j.toc.TocGenerator.generateToc(TocGenerator.java:303)
at org.docx4j.toc.TocGenerator.generateToc(TocGenerator.java:231)
at org.docx4j.toc.TocGenerator.generateToc(TocGenerator.java:191)
at com.sap.tap4s.rest.PdfGenerateService.getDocx(PdfGenerateService.java:212)
at com.sap.tap4s.rest.PdfGenerateService.main(PdfGenerateService.java:887)