为有中文需求的客户提供多渠道中文技术支持.

Sat May 07, 2022 10:07 am

Caused by: java.lang.NoSuchMethodError: com.spire.pdf.exporting.xps.schema.DocumentReference.spr (Ljava/lang/String;)Ljava/lang/String;
at com.spire.xls.packages.spryic.<clinit>(woc:1257) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.spraDc.spr (bkc:32) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.sprDJc.spr (ovc:127) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.sprDJc.spr (ovc:214) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.sprXsC.spr (blg:55) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.sprXsC.<init>(blg:183) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.sprXsC.<clinit>(blg:1287) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.sprVPA.spr (Unknown Source) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.spreOA.spr (Unknown Source) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.spreOA.spr (Unknown Source) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.spreOA.<init>(Unknown Source) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.packages.sprHTa.<init>(Unknown Source) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.core.spreadsheet.XlsWorkbook.<init>(Unknown Source) ~[spire.xls.free-5.1.0.jar:5.1.0]
at com.spire.xls.Workbook.<init>(Unknown Source) ~[spire.xls.free-5.1.0.jar:5.1.0]
at cn.ccse.tripod.common.utils.ExcelConvertUtil.Excel2PdfSpire(ExcelConvertUtil.java:44) ~[classes/:na]
at cn.ccse.tripod.purchase.controller.PiPartsRequestController.exportPartsApplication(PiPartsRequestController.java:302) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_141]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_141]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_141]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_141]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) ~[spring-webmvc-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) ~[spring-webmvc-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.12.RELEASE.jar:5.2.12.RELEASE]
... 109 common frames omitted

2428649816
 
Posts: 1
Joined: Sat May 07, 2022 9:56 am

Mon May 09, 2022 7:42 am

您好,

感谢您的询问。
根据您的异常信息,我推测您应该是使用了两个或两个以上的Spire jar到一个项目。如果是的话,请注意我们的单个产品是互不相容的。您这边具体是想实现怎样的功能?如果您只需要使用Spire.XLS操作Excel文档,请移除其它与Spire相关的jar。但如果您需要同时使用我们的多个产品的功能(比如Spire.XLS和Spire.PDF),请下载Spire.Office for Java (这是我们所有JAVA组件的集合)
最新office商业版:Spire.Office for Java Version:5.4.5
最新office免费版:Free Spire.Office for Java Version:5.3.1

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Return to 中文技术支持