Page 1 of 1

DocxFetcher error

PostPosted: Thu Feb 03, 2011 9:37 pm
by djohnson
Hi,

I have upgraded my code to the new 2.6.0 version. I convert templates with custom xml data and content controls (also repeats) using the code from the examples (in short: attach xml data, preprocess, apply bindings).

Now I keep getting an error about the DocxFetcher missing.

Is this error correct? I have no need for fetching components.

I tried to implement a dummy DocxFetcher implementation but I then got an error about the MergeDocx pluging missing.

By the way, I couldn't find any info on the MergeDocx price and how to buy it (the link doesn't work).

Re: DocxFetcher error

PostPosted: Fri Feb 04, 2011 12:24 am
by jason
djohnson wrote:Now I keep getting an error about the DocxFetcher missing.

Is this error correct? I have no need for fetching components..


What message do you get, exactly?

You should only need MergeDocx and a DocxFetcher, if you have content controls with binding role od:component. So pls verify none of your content controls contain that in their tag.

For the benefit of others reading this, if you want more info about MergeDocx, please contact me off list. My email address is easy enough to find.

Re: DocxFetcher error

PostPosted: Sun Feb 06, 2011 1:34 am
by djohnson
I get the following error:

ERROR org.docx4j.model.datastorage.OpenDoPEHandler : - You need a docxFetcher (and the MergeDocx extension) to fetch components

There are no od:component bindings in the document.

I get the error after calling: OpenDoPEHandler.preprocess(). When I look at the source code, it seems to check if the DocxFetcher is set or else this error is logged.

Code: Select all
preprocessRun(wordMLPackage);
if (docxFetcher==null) {
    System.out.println("You need a docxFetcher (and the MergeDocx extension) to fetch components");
    log.error("You need a docxFetcher (and the MergeDocx extension) to fetch components");
} else {
    wordMLPackage = fetchComponents(wordMLPackage);
}

Re: DocxFetcher error

PostPosted: Sun Feb 13, 2011 11:33 am
by jason
That code was changed in r1318 of 16 Nov 2010, but doesn't appear to have made it into 2.6.0.

I think you are now using a more recent nightly build; others using the OpenDoPE features may wish to do the same.