poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60810] New: PartAlreadyExistsException when read slides note
Date Fri, 03 Mar 2017 03:15:17 GMT
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


Mime
View raw message