Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.XDocReportException: Cannot find serializer. Please set the template engine FieldsMetadata#setTemplateEngineKind(String templateEngineKind) before calling this method #6

Open
smaoui opened this issue Jan 24, 2018 · 5 comments

Comments

@smaoui
Copy link

smaoui commented Jan 24, 2018

Hello,

I'm using XDocReport/ Velocity.
when i try to load : metadata.load("StudyAndProfessionalPhoto", StudyAndProfessionalProjectDocsDTO.class, true);

i get this exception.

fr.opensagres.xdocreport.core.XDocReportException: Cannot find serializer. Please set the template engine FieldsMetadata#setTemplateEngineKind(String templateEngineKind) before calling this method.
at fr.opensagres.xdocreport.template.formatter.FieldsMetadata.load(FieldsMetadata.java:565)

if ( serializer == null )
{
throw new XDocReportException(
"Cannot find serializer. Please set the template engine FieldsMetadata#setTemplateEngineKind(String templateEngineKind) before calling this method." );
}

how can i initialize the "serializer" please ?

Thanx

@smaoui smaoui changed the title fr.opensagres.xdocreport.core.XDocReportException: Cannot find serializer. Please set the template engine FieldsMetadata#setTemplateEngineKind(String templateEngineKind) before calling this method. at fr.opensagres.xdocreport.template.formatter.FieldsMetadata.load(FieldsMetadata.java:565) .XDocReportException: Cannot find serializer. Please set the template engine FieldsMetadata#setTemplateEngineKind(String templateEngineKind) before calling this method Jan 24, 2018
@ghost
Copy link

ghost commented Aug 30, 2018

Have you added template engine library on your classpath?

@d-j-kendall
Copy link

d-j-kendall commented May 15, 2020

@integrys-net

Sorry for bumping this, but what do you mean added it to your classpath? I added the Apache Velocity template engine to my dependencies, but it still doesn't seem to register and I get the same error.

Edit:
Had to add this line to my gradle file.

// https://mvnrepository.com/artifact/fr.opensagres.xdocreport/fr.opensagres.xdocreport.template.velocity
compile group: 'fr.opensagres.xdocreport', name: 'fr.opensagres.xdocreport.template.velocity', version: '2.0.2'

@ghost
Copy link

ghost commented May 19, 2020

Had to add this line to my gradle file.

// https://mvnrepository.com/artifact/fr.opensagres.xdocreport/fr.opensagres.xdocreport.template.velocity
compile group: 'fr.opensagres.xdocreport', name: 'fr.opensagres.xdocreport.template.velocity', version: '2.0.2'

After adding this line to gradle buidl file have you resolved?
I'm not using anymore this library, because the project has been suspended

@angelozerr
Copy link
Member

I'm not using anymore this library, because the project has been suspended

Indeed there are not a lot of activity but the project lives with external contributions. If you need some evolution, please contribute it.

@d-j-kendall
Copy link

@integrys-net
It did resolve that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants