Bug 150943 - Word document generated by poi can't be opened
Summary: Word document generated by poi can't be opened
Status: RESOLVED DUPLICATE of bug 131203
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-SAXParse MSO-External-Producers
  Show dependency treegraph
 
Reported: 2022-09-14 04:04 UTC by 郭生
Modified: 2023-03-29 17:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
like this (8.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-09-16 06:38 UTC, 郭生
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 郭生 2022-09-14 04:04:38 UTC
Description:
使用poi生成的word文档提示打不开,某些数据格式可能导致文档结构错误,其他工具可以打开文档

Steps to Reproduce:
1.poi生成的word文档,文档里面有表格数据
2.无法打开提示
3.打开文件时发生了错误。可能是由于文件内容不正确。
错误详情: 
SAXException: [word/document.xml line 2]: unknown error
继续导入可能会导致数据丢失或损坏,并且程序可能会不稳定或崩溃。

要忽略错误,并继续载入文件吗?



在 [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"!
SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col) 处发现文件格式错误。

Actual Results:
在 [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"!
SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col) 处发现文件格式错误。

Expected Results:
在 [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"!
SAXParseException: '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col) 处发现文件格式错误。


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: zh-CN
Module: StartModule
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Michael Warner 2022-09-14 12:50:19 UTC
Google translate:

Description:
The word document generated by poi can't be opened, some data formats may cause the document structure error, other tools can open the document

Steps to Reproduce:
1. The word document generated by poi has table data in the document
2. Unable to open the prompt
3. An error occurred while opening the file. Probably due to incorrect file content.
Error details:
SAXException: [word/document.xml line 2]: unknown error
Continuing to import may result in data loss or corruption, and programs may become unstable or crash.

Do you want to ignore the error and continue loading the file?



In [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"!
SAXParseException: File format error found at '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col).

Actual Results:
In [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"!
SAXParseException: File format error found at '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col).

Expected Results:
In [mscx_uno bridge error] UNO type of C++ exception unknown: "o3tl.divide_by_zero", RTTI-name=".?AUdivide_by_zero@o3tl@@"!
SAXParseException: File format error found at '[word/document.xml line 2]: unknown error', Stream 'word/document.xml', Line 2, Column 28860(row,col).
Comment 2 Michael Warner 2022-09-14 12:52:00 UTC
@郭生,

Please attach a sample file that demonstrates the error.
Comment 3 郭生 2022-09-16 06:38:39 UTC
Created attachment 182483 [details]
like this
Comment 4 Michael Warner 2022-09-16 16:34:47 UTC
Confirmed in 7.4.0.2.
Comment 5 Gabor Kelemen (allotropia) 2023-03-29 08:58:07 UTC
I can no longer reproduce the error in 7.4  after:

https://git.libreoffice.org/core/+/02de07ffd65d40d26bfc15783ec25030117d5761

author	László Németh <nemeth@numbertext.org>	Thu Jan 05 10:21:10 2023 +0100
committer	Xisco Fauli <xiscofauli@libreoffice.org>	Tue Jan 10 11:54:19 2023 +0000
tree a56fbc84205a93a9a1c6b66aa1aca3ac7439b21f
parent 8b69b189726365411772d098e504acd90d1606e9 [diff]

tdf#131203 DOCX import: fix lost table when w:tblGrid is missing

*** This bug has been marked as a duplicate of bug 131203 ***