poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominik Stadler <dominik.stad...@gmx.at>
Subject Re: java.lang.IllegalArgumentException: target is null for type http://schemas.openxmlformats.org/officeDocument/2006/relationships/h
Date Thu, 16 Mar 2017 18:39:05 GMT
Hi,

The exception happens if there is a Hyperlink without an actual target, do
you create Hyperlinks here? If yes, do you call the setAddress() method to
actually populate the location of the hyperlink?

Dominik.

On Thu, Mar 16, 2017 at 10:45 AM, duanep026 <duanep026@gmail.com> wrote:

> Please assist. I am trying to create an excel workbook with about 80 000
> rows. I am using sxssf poi. After setting up the workbook, I get the ffg
> crash on the ffg line : wb.write(fileOut); . Fileout is just the directory
> to save my workbook in. I have no idea what the error means. Please assist
> urgently.
>
> java.lang.IllegalArgumentException: target is null for type
> http://schemas.openxmlformats.org/officeDocument/2006/
> relationships/hyperlink
> at
> org.apache.poi.openxml4j.opc.PackagePart.addExternalRelationship(
> PackagePart.java:168)
> at
> org.apache.poi.openxml4j.opc.PackagePart.addExternalRelationship(
> PackagePart.java:145)
> at
> org.apache.poi.xssf.usermodel.XSSFHyperlink.generateRelationIfNeeded(
> XSSFHyperlink.java:157)
> at org.apache.poi.xssf.usermodel.XSSFSheet.write(XSSFSheet.java:3444)
> at org.apache.poi.xssf.usermodel.XSSFSheet.commit(XSSFSheet.java:3416)
> at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:486)
> at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:491)
> at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:242)
> at org.apache.poi.xssf.streaming.SXSSFWorkbook.write(
> SXSSFWorkbook.java:940)
> at blu.ld.reports.WBRGL02J.zipReport(WBRGL02J.java:1102)
> at blu.ld.reports.WBRGL02J.doMain(WBRGL02J.java:271)
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.
> nabble.com/java-lang-IllegalArgumentException-
> target-is-null-for-type-http-schemas-openxmlformats-org-
> officeDoch-tp5726901.html
> Sent from the POI - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message