Debugging Java Reflection - DataProviders for Java POJOs

When passing Java objects as data to Docmosis, the template drives the lookup process of fetching data from the Java objects (POJOs). If your output document does not include the data you are expecting, then there are two useful tools to see how Docmosis is inspecting the Java objects:

1.    Make lookup failures fail loudly

By setting the property:

docmosis.populator.lookup.java.forgiving=false

Docmosis will fail whenever the data fetching cannot obtain data from your Java objects. Docmosis will tell you what methods it was trying to call on what type of Java object so it (hopefully) becomes clear what the problem is and where the correction can be made. The correction will typically be to the Docmosis template.

2.   Turn on DEBUG logging

Particularly for the Java package

com.docmosis.template.population

This will log detailed information about the process of reflection.

Feedback

Invalid Input

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam. Please also consider contacting support@docmosis.com if you need help with this article.

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam.

Invalid Input