What Linux distribution is used on the server, which does not work? - Centos 8
Do you see any errors or exceptions in the application logs or in the output? - No
Does the problem occur only with the attached document or does it occur with any document on the problematic server? - Only with this resume
Could you please try the code I have provided earlier in a simple console application for testing purposes? - Yes tried on few of the servers we have, but not working on that specific server
@rchilli Thank you for additional information. But it is difficult to say what is going wrong on the problematic server without an ability to reproduce the problem on our side. What output do you get when run the above mentioned code on the problematic server? Does your application hang or crashes or something?
What output do you get when run the above mentioned code on the problematic server? - It is not returning anything, just stucked. Also I checked more and found out that it got stucked while getting the page count (doc.getPageCount())
Does your application hang or crashes or something? - No, just stucked. No response nothing
It is very crucial for us, client is waiting for the solution
@rchilli Unfortunately, I still cannot reproduce the problem on my side. I have tried to recreate your environment in Docker, but still the problem is not reproducible. Here is my testing Dockerfile:
FROM centos:centos8
USER root
RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum install -y \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk/
RUN yum install -y fontconfig && fc-cache
COPY ./out/artifacts/TestJava_jar/ /tmp
WORKDIR /tmp
ENTRYPOINT ["java","-jar","TestJava.jar"]
I have tested with both 22.9 and the latest 22.12 versions of Aspose.Words for Java and both versions works fine. Have you tried with the latest 22.12 version of Aspose.Words on your side?
@rchilli Is it possible to recreate the problematic environment in Docker? This will help us to understand and analyze the problem. Unfortunately, I was unable to reproduce the problem on my side and it is impossible to tell what is going wrong on your side with ability to reproduce the same problem on our side.