We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Thread Saving word attachments to file getting hung

Hi Team,

I am deploying my web application on IBM websphere. Web application uses aspose 18.7 to convert word to pdf .
I am also extracting attachments present in the word file and storing in a file using following code:

 NodeCollection<Shape> shapes = (NodeCollection<Shape>) doc.getChildNodes(NodeType.SHAPE, true);
  for (Shape shape : shapes)
				tempOleFormatRef = shape.getOleFormat();
				if ( tempOleFormatRef != null )
					tempExtension = tempOleFormatRef.getSuggestedExtension();					
					fileName = tempOleFormatRef.getIconCaption();					
					if(fileName.indexOf('.')<0) {
						fileName += tempExtension;
					fileName = fileName.replaceAll("\\s+", "");
					filePath = rootFolder + File.separator +fileName;				

For one of the attachment file which is an excel( xlsx ), I am getting below error in console:
Thread "WebContainer : 5" (

0000056c) has been active for 709,165 milliseconds and may be hung. There is/are 2 thread in total in the server that may be hung.

    at java.util.zip.Inflater.inflateBytes(Native Method)
    at java.util.zip.Inflater.inflate(Inflater.java:271)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
    at java.util.zip.ZipInputStream.read(ZipInputStream.java:205)
    at asposewobfuscated.zzW.zzZ(Unknown Source)
    at asposewobfuscated.zzW.zzZ(Unknown Source)
    at asposewobfuscated.zz96.zzh(Unknown Source)
    at asposewobfuscated.zz94.zzh(Unknown Source)
    at asposewobfuscated.zzJN.zzr(Unknown Source)
    at asposewobfuscated.zzJN.&lt;init&gt;(Unknown Source)
    at asposewobfuscated.zzJN.&lt;init&gt;(Unknown Source)
    at com.aspose.words.zzZ8Q.zzW(Unknown Source)
    at com.aspose.words.zzZ8M.zzZ(Unknown Source)
    at com.aspose.words.OleFormat.zzN(Unknown Source)
    at com.aspose.words.OleFormat.save(Unknown Source)

Above issue is not getting caught in try catch block as well and also causing thread to get hung, Which is slowing down the server and eventually making it unresponsive.
When I try to open the attached file I get following message: “word is waiting for another application to complete an ole action”.
So my main concern here is that, even if there is any problem with file, Aspose thread should not be hanging so as to cause server slow down.
Could you please help me in this scenario?


Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a simple Java application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.