Exceptionally, no file is generated when we call com.aspose.words.Document#save(java.lang.String, int)

Hi, we have an issue about files generated by aspose but these files are never serializes on disk. This issue appeared since a while.

We monitored our Windows OS IO operations for the specific folder where the expected files are supose to be genereted when we call this function:

com.aspose.words.Document#save(java.lang.String, int)

The save function never raise any exception and the file are never created by this function… when the issue appear.

This issue appen 3-4 fives times per day and we have a lot of files generated by your words library without any problem.

We use your latest version of libraries:

<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-total</artifactId>
<version>25.8</version>
<type>pom</type>
</dependency>

Thanks for your help.

@frjo

It appears you are encountering an issue where files are not being generated on disk when using the com.aspose.words.Document#save(java.lang.String, int) method, even though no exceptions are raised. Here are some troubleshooting steps to consider:

  1. Check File Path: Ensure that the file path you are providing to the save method is valid and that your application has the necessary permissions to write to that location.

  2. Disk Space: Verify that there is sufficient disk space available on the drive where you are attempting to save the files.

  3. Antivirus/Firewall: Sometimes, antivirus or firewall settings can block file creation. Check if any security software is interfering with the file writing process.

  4. Logging: Implement logging around the save operation to capture any unexpected behavior or conditions leading up to the save call.

  5. Test with Different Formats: If applicable, try saving the document in different formats (e.g., DOCX, PDF) to determine if the issue is specific to a certain format.

  6. Update Library: Ensure you are using the latest version of the Aspose.Words library, as updates may contain bug fixes related to file saving.

If the issue persists after these checks, consider reaching out to Aspose support with detailed information about your environment and the specific scenarios in which the issue occurs.

Hello @frjo ,

Thank you for your message.

Could you please confirm whether you are sure this issue is related to Aspose.Email for Java?
From your description, it seems that the problem occurs when calling
com.aspose.words.Document#save(java.lang.String, int), which belongs to Aspose.Words for Java rather than Aspose.Email.

If possible, please share a few more details about your use case so we can make sure your question reaches the correct support team.

Hi Sergey,

You right, my bad. This issue concern Aspose.Words. More precisely it’s this maven artefact we use and cause the issue: aspose-words-25.8-jdk17.jar. This artefact be part of your maven dependencies for:

groupeid com.aspose
artefactid aspose-total
version 25.8
type pom

For your information we return on our previous version: aspose-words-24.12-jdk17.jar yesterday.

We have the same behaviour. We rollback for an other issue I open yesterday on this forum.
ref: com.aspose.email.AsposeBadServerResponceException: Server error [404] Operation failed.: 404/Not Found

Regards.

@frjo,

Since this question concerns Aspose.Words we recommend continuing the discussion in the Aspose.Words forum section, where the appropriate team can assist you further.

Thank you.

I understand. I update (at the top of this discussion thread) the category. I hope it’s ok.
Do I need to create a new one ?

@frjo If possible, could you please provide a simple code that will allow us to reproduce the problem on our side? We will check the issue and provide you more information. Unfortunately, without ability to reproduce the problem on our side it is hard to answer what might cause the problem on your side.