Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Dec 23, 2020 7:48 pm

Hello!

I use java Spire.XLS to convert in PDF format. It works well on my local Windows machine. But it returns the error in a Linux docker container.

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.spire.xls.packages.sprVGC
at com.spire.xls.packages.sprDFC.spr (Font.java:401)
at com.spire.xls.packages.sprDFC.<init>(Font.java:389)
at com.spire.xls.packages.sprDFC.<init>(Font.java:371)
at com.spire.xls.packages.spreaA.spr (Unknown Source)
at com.spire.xls.packages.spreaA.spr (Unknown Source)
at com.spire.xls.core.converter.spreadsheet.WorksheetCollection.spr (Unknown Source)
at com.spire.xls.core.converter.spreadsheet.WorksheetCollection.<init>(Unknown Source)
at com.spire.xls.packages.sprDpa.<init>(Unknown Source)
at com.spire.xls.core.spreadsheet.XlsWorkbook.<init>(Unknown Source)
at com.spire.xls.Workbook.<init>(Unknown Source)
at com.starfish24.dictionary.controller.CarrierController.getRegister(CarrierController.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)

beloll1969
 
Posts: 1
Joined: Wed Dec 23, 2020 3:50 pm

Thu Dec 24, 2020 7:10 am

Hello,

Thanks for your inquiry.
Kindly note that when using our Spire.XLS to convert Excel to PDF on Linux, you need to install all fonts used in the Excel file, otherwise the application may throw errors. Please make sure you have installed the corresponding fonts in your Linux docker container.

If the issue still occurs after installing all the fonts used, please provide your input file, your dockerfile to help us investigate further. You could send them to us(support@e-iceblue.com) via email. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Wed Jan 06, 2021 3:05 am

Hello,

Has your issue been resolved? Any feedback will be greatly appreciated.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.XLS