Page 1 of 1

ERROR [docx4j.model.PropertyResolver] Style Normal is a root

PostPosted: Tue Mar 01, 2011 3:06 am
by petersarazin
Hi, I am new to this forum and to docx4j.

I have copied and pasted the first few lines from the main() method of CreateWordprocessingMLDocument.java into my code just to get started and am seeing errors.

Here is my code:

WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
wordMLPackage.getMainDocumentPart().addStyledParagraphOfText( "Title", "Hello world" );
wordMLPackage.getMainDocumentPart().addParagraphOfText( "from docx4j!" );

And here is the output in the log:

JAXB: RI not present. Trying Java 6 implementation.
JAXB: Using Java 6 implementation.
00:56:01,593 ERROR [docx4j.model.PropertyResolver] Style Normal is a root style.
00:56:01,608 ERROR [docx4j.model.PropertyResolver] Style DefaultParagraphFont is a root style.
00:56:01,614 ERROR [parts.WordprocessingML.MainDocumentPart] UNEXPECTED: org.docx4j.wml.Text

My project is a maven project, and I have manually installed the docx4j 2.6.0 .jar file, and the xalan 2.7.1 .jar file into my maven repository.

I hope this enough information for you to help me. If not, then please let me know what additional information I can provide.

Any help is greatly appreciated.

Re: ERROR [docx4j.model.PropertyResolver] Style Normal is a

PostPosted: Tue Mar 01, 2011 7:54 am
by jason
Hi Peter, welcome aboard.

petersarazin wrote:00:56:01,593 ERROR [docx4j.model.PropertyResolver] Style Normal is a root style.
00:56:01,608 ERROR [docx4j.model.PropertyResolver] Style DefaultParagraphFont is a root style.


Nothing to worry about; just overly aggressive logging, now turned down in svn head tip.

petersarazin wrote:00:56:01,614 ERROR [parts.WordprocessingML.MainDocumentPart] UNEXPECTED: org.docx4j.wml.Text


As above (ths code isn't present in svn head)

cheers .. Jason