You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/03/03 03:15:17 UTC
[Bug 60810] New: PartAlreadyExistsException when read slides note
https://bz.apache.org/bugzilla/show_bug.cgi?id=60810
Bug ID: 60810
Summary: PartAlreadyExistsException when read slides note
Product: POI
Version: 3.15-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSLF
Assignee: dev@poi.apache.org
Reporter: youxueying_eric@foxmail.com
Target Milestone: ---
Whenever i am trying to read slide's notes of a simple PPT,it starts throwing
error,
The error is as shown
org.apache.poi.openxml4j.exceptions.PartAlreadyExistsException: A part with the
name '/ppt/notesSlides/notesSlide1.xml' already exists : Packages shall not
contain equivalent part names and package implementers shall neither create nor
recognize packages with equivalent part names. [M1.12]
at
org.apache.poi.openxml4j.opc.OPCPackage.createPart(OPCPackage.java:889)
at
org.apache.poi.openxml4j.opc.OPCPackage.createPart(OPCPackage.java:853)
at
org.apache.poi.POIXMLDocumentPart.createRelationship(POIXMLDocumentPart.java:558)
at
org.apache.poi.POIXMLDocumentPart.createRelationship(POIXMLDocumentPart.java:538)
at
org.apache.poi.xslf.usermodel.XMLSlideShow.createNotesSlide(XMLSlideShow.java:299)
at
org.apache.poi.xslf.usermodel.XMLSlideShow.getNotesSlide(XMLSlideShow.java:281)
at com.ue.cat.filter.openxml.PptxFilter.parseFile(PptxFilter.java:303)
at com.ue.cat.face.CatInterface.parseFile(CatInterface.java:102)
at
com.ue.cat.filter.pptxFilterTester.testWirtePptx(pptxFilterTester.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
And my code is:
try {
notesSlide = _slideShow.getNotesSlide(slide);
} catch (Exception e) {
notesSlide =
null;
e.printStackTrace();
logger.warn(String.format("用户[userid=%s]在翻译工程[projectid=%s]下的文档[documentid=%s]执行解析原文操作失败!错误详细信息如下:%s",
userId, projectId, documentId, "获取备注信息失败!"+e.getMessage()));
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60810] PartAlreadyExistsException when read slides note
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60810
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |55791, 60042
--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Bug 55791 and bug 60042 sound related.
Referenced Bugs:
https://bz.apache.org/bugzilla/show_bug.cgi?id=55791
[Bug 55791] PartAlreadyExistsException when removing and adding slides
https://bz.apache.org/bugzilla/show_bug.cgi?id=60042
[Bug 60042] PartAlreadyExistsException thrown when removing and adding slides.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60810] PartAlreadyExistsException when read slides note
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60810
Bug 60810 depends on bug 60042, which changed state.
Bug 60042 Summary: PartAlreadyExistsException thrown when removing and adding slides.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60042
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60810] PartAlreadyExistsException when read slides note
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60810
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
I tried to fix this via r1787663, as far as I see this should make it work by
doing more checks for already existing names in relationships. I couldn't fully
test the resulting file as I did not have access to Powerpoint itself, please
verify with a recent nightly build as soon as this is applied there.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60810] PartAlreadyExistsException when read slides note
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60810
--- Comment #1 from youxueying_eric@foxmail.com ---
Created attachment 34796
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34796&action=edit
error file
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60810] PartAlreadyExistsException when read slides note
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60810
youxueying_eric@foxmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org