since I've updated Spire.Doc for Java from 5.2.3 to 11.4.2 (latest version) I get the following exception when calling method TableRow.deepClone() within our document generation process:
- Code: Select all
Caused by: com.spire.doc.packages.sprdzt: An element with the same key already exists in the dictionary.
at com.spire.ms.System.Collections.Generic.Dictionary.addItem(Dictionary.java:414)
at com.spire.doc.packages.sprnzz.spr‼┊—(Unknown Source)
at com.spire.doc.collections.CommentsCollection.spr┓┼—(Unknown Source)
at com.spire.doc.documents.CommentMark.setCommentId(Unknown Source)
at com.spire.doc.documents.CommentMark.spr┺‼—(Unknown Source)
at com.spire.doc.documents.CommentMark.spr※‼—(Unknown Source)
at com.spire.doc.DocumentObject.deepClone(Unknown Source)
at com.spire.doc.collections.ParagraphItemCollection.spr┃┻—(Unknown Source)
at com.spire.doc.documents.Paragraph.spr≌┯—(Unknown Source)
at com.spire.doc.documents.Paragraph.spr┺‼—(Unknown Source)
at com.spire.doc.documents.Paragraph.spr※‼—(Unknown Source)
at com.spire.doc.DocumentObject.deepClone(Unknown Source)
at com.spire.doc.collections.DocumentObjectCollection.sprâˆâ‰‡ï»¿â€”(Unknown Source)
at com.spire.doc.Body.spr┺‼—(Unknown Source)
at com.spire.doc.TableCell.spr┺‼—(Unknown Source)
at com.spire.doc.TableCell.spr※‼—(Unknown Source)
at com.spire.doc.TableCell.deepClone(Unknown Source)
at com.spire.doc.collections.DocumentObjectCollection.sprâˆâ‰‡ï»¿â€”(Unknown Source)
at com.spire.doc.TableRow.spr┺‼—(Unknown Source)
at com.spire.doc.TableRow.spr※‼—(Unknown Source)
at com.spire.doc.TableRow.deepClone(Unknown Source)
...
I have not changed anything else!
It is quite expensive to me to provide you with a simplified code example that runs outside of our application context. Hence I hope that the stack trace and the fact that nothing else has changed except the Spire.Doc for Java version will help you to find the reason for this exception.
Kind regards,
Marcus