poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52836] New: Cannot create a new XSSFDrawing object
Date Tue, 06 Mar 2012 13:30:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52836

             Bug #: 52836
           Summary: Cannot create a new XSSFDrawing object
           Product: POI
           Version: 3.8-dev
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: jchakkalakal@auel.de
    Classification: Unclassified


Created attachment 28424
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28424
Code for reproduce the problem mentioned above

Hallo,

I am not able to create a XSSFDrawing-Object. Each time I try to create one, I
receive following error:

Exception in thread "main" org.apache.poi.POIXMLException:
org.apache.poi.openxml4j.exceptions.InvalidOperationException: A part with the
name '/xl/drawings/drawing2.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.POIXMLDocumentPart.createRelationship(POIXMLDocumentPart.java:260)
    at
org.apache.poi.POIXMLDocumentPart.createRelationship(POIXMLDocumentPart.java:233)
    at
org.apache.poi.xssf.usermodel.XSSFSheet.createDrawingPatriarch(XSSFSheet.java:402)
    at ExcelFileCreationWithPOI.main(ExcelFileCreationWithPOI.java:28)
Caused by: org.apache.poi.openxml4j.exceptions.InvalidOperationException: A
part with the name '/xl/drawings/drawing2.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:700)
    at org.apache.poi.openxml4j.opc.OPCPackage.createPart(OPCPackage.java:664)
    at
org.apache.poi.POIXMLDocumentPart.createRelationship(POIXMLDocumentPart.java:252)
    ... 3 more

Hereby I attach the code, which I have used.

Please do notify me as soon as a solution is found.

Thanks im advance!

Regards

Jimmy

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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