-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when multiple numbering levels reference the same paragraph style #25
Comments
Is there a way to resolve the error, Can you please give some inputs to resolve this. |
Could you provide a minimal example document that causes the error? |
SU_v1.docx |
Hmm, it looks like two
|
Exception in thread "main" java.lang.IllegalStateException: Duplicate key org.zwobble.mammoth.internal.docx.Numbering$AbstractNumLevel@72bef795
at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133)
at java.util.HashMap.merge(HashMap.java:1254)
at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1625)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1625)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.zwobble.mammoth.internal.docx.Numbering.(Numbering.java:72)
at org.zwobble.mammoth.internal.docx.NumberingXml.readNumberingXmlElement(NumberingXml.java:16)
at org.zwobble.mammoth.internal.docx.DocumentReader.lambda$readNumbering$7(DocumentReader.java:217)
at java.util.Optional.map(Optional.java:215)
at org.zwobble.mammoth.internal.docx.DocumentReader.readNumbering(DocumentReader.java:217)
at org.zwobble.mammoth.internal.docx.DocumentReader.readDocument(DocumentReader.java:29)
at org.zwobble.mammoth.internal.InternalDocumentConverter.convertToHtml(InternalDocumentConverter.java:55)
at org.zwobble.mammoth.internal.InternalDocumentConverter.lambda$convertToHtml$2(InternalDocumentConverter.java:48)
at org.zwobble.mammoth.internal.InternalDocumentConverter.withDocxFile(InternalDocumentConverter.java:85)
at org.zwobble.mammoth.internal.InternalDocumentConverter.lambda$convertToHtml$3(InternalDocumentConverter.java:47)
at org.zwobble.mammoth.internal.util.PassThroughException.unwrap(PassThroughException.java:16)
at org.zwobble.mammoth.internal.InternalDocumentConverter.convertToHtml(InternalDocumentConverter.java:46)
at org.zwobble.mammoth.DocumentConverter.convertToHtml(DocumentConverter.java:84)
at com.poc.images.ExtractImages.convertDocs(ExtractImages.java:143)
at com.poc.images.ExtractImages.main(ExtractImages.java:50)
The text was updated successfully, but these errors were encountered: