Page 1 of 1

Error log with word 2010

PostPosted: Fri Jan 11, 2013 3:24 am
by neopk
Hi,

I use docx4j to modify docx document with tags with data stored in my database. I have some error when the document is created with word 2010, even if the document is empty.

Here is the Error :
Code: Select all
2013-01-10 15:40:30:039 WARN  [ERROR] : unexpected element (uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", local:"sizeRelH"). Expect
2013-01-10 15:40:30:039 WARN  [ERROR] : unexpected element (uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", local:"sizeRelV"). Expect
2013-01-10 15:40:30:040 WARN  [ERROR] : unexpected element (uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", local:"sizeRelH"). Expect
2013-01-10 15:40:30:040 WARN  [ERROR] : unexpected element (uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", local:"sizeRelV"). Expect
2013-01-10 15:40:30:041 ERROR No subclass found for /word/media/image1.wmf; defaulting to binary
2013-01-10 15:40:30:041 ERROR No subclass found for /word/stylesWithEffects.xml; defaulting to binary
2013-01-10 15:40:30:047 WARN  [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006/main", local:"compatSetting"). Expected
2013-01-10 15:40:30:047 WARN  [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006/main", local:"compatSetting"). Expected
2013-01-10 15:40:30:047 WARN  [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006/main", local:"compatSetting"). Expected
2013-01-10 15:40:30:047 WARN  [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006/main", local:"compatSetting"). Expected


The fist group arrive when we add an image to the document, the second is present even if the document is empty. I don't know what to do to resolve it, maybe will you have a solution to help me?

Thanks !

Re: Error log with word 2010

PostPosted: Fri Jan 11, 2013 8:23 am
by jason
What version of docx4j are you using?

Please attach a sample docx exhibiting the problem.

Re: Error log with word 2010

PostPosted: Fri Jan 11, 2013 11:57 pm
by neopk
Hi, thanks for your reply !

I'm using the 1.8.1 version since i encountered the problem.

I attached an example which add this error in my logs.

Thanks

Re: Error log with word 2010

PostPosted: Tue Jan 15, 2013 6:15 pm
by jason
The example docx you attached works fine for me with docx4j 2.8.0 and 2.8.1 opening it with the OpenMainDocumentAndTraverse sample.

Could you verify that it causes the problem you described?

If you can reproduce the error, please attach the entire log.