Birt Report Generation not working after packing (Jhipster) application in a WAR file












0















I have a hipster application. I integrated a web service that generates reports with Birt. When I start the application in the local (front end "yarn start" and back end "mvn") everything works fine but when I create a War of my application and I deploy it the generation stops working. Please help me. This error made me lose a lot of time and effort.



I create the War using the command



mvnw -Pprod,swagger,no-liquibase package -DskipTests=true



and than run it with:



java -jar warName



POM.xml



<!-- https://mvnrepository.com/artifact/org.eclipse.birt.runtime.3_7_1/org.eclipse.birt.runtime -->
<dependency>
<groupId>org.eclipse.birt.runtime.3_7_1</groupId>
<artifactId>org.eclipse.birt.runtime</artifactId>
<version>3.7.1</version>
</dependency>


Web Service That Generates The report



@GetMapping("/GenerateTemplate/{format}/{id}/{idTask}")
@Timed
public ResponseEntity generateTemplate(@PathVariable String format, @PathVariable Long id,
@PathVariable String idTask) {
IReportEngine engine = new BirtEngineFactory().getObject();
byte templateInString = reportTemplateService.findOne(id).getTemplateBody();
InputStream stream = new ByteArrayInputStream(templateInString);
IReportRunnable design = null;
try {

design = engine.openReportDesign(stream);

} catch (EngineException e) {
e.printStackTrace();
}

// Create task to run and render the report,
IRunAndRenderTask task = engine.createRunAndRenderTask(design);

// Set parameter values and validate
task.setParameterValue("TaskBuilder_Id", idTask);
task.validateParameters();
ByteArrayOutputStream out = new ByteArrayOutputStream();
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFormat(format);
options.setOutputStream(out);
options.setEmbeddable(false);
task.setRenderOption(options);
// run and render report
try {
task.run();
} catch (EngineException e) {
e.printStackTrace();
}

byte output = out.toByteArray();

task.close();
engine.destroy();
Platform.shutdown();
RegistryProviderFactory.releaseDefault();
HttpHeaders header = new HttpHeaders();
header.set("charset", "utf-8");
header.setContentType(MediaType.APPLICATION_XML);
header.setContentLength(output.length);
header.set("Content-disposition", "attachment; filename=report." + format);
return new ResponseEntity<byte>(output, header, HttpStatus.OK);
}


The error i am having after deploying the war :



org.springframework.web.util.NestedServletException: Handler dispatch failed;
nested exception is java.lang.ExceptionInInitializerError
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 982)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 901)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 970)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java: 861)
at javax.servlet.http.HttpServlet.service(HttpServlet.java: 687)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java: 846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java: 790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java: 74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 129)
at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java: 111)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java: 55)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 101)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java: 110)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 317)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: 127)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java: 91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java: 114)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java: 137)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java: 111)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java: 158)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java: 170)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java: 63)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java: 200)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java: 116)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java: 100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java: 96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java: 64)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java: 105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java: 56)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java: 214)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java: 177)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java: 347)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java: 263)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java: 99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java: 108)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java: 81)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java: 197)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java: 84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java: 62)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java: 64)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java: 36)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java: 131)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java: 57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java: 46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java: 64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java: 60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java: 77)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java: 43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java: 292)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java: 81)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 138)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 135)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java: 48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java: 43)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java: 272)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java: 81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java: 104)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java: 336)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java: 830)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError: null
at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < init > (MetaDataDictionary.java: 252)
at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < clinit > (MetaDataDictionary.java: 112)
at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newSessionHandle(DesignEngineImpl.java: 143)
at org.eclipse.birt.report.model.api.DesignEngine.newSessionHandle(DesignEngine.java: 120)
at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java: 143)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java: 255)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 274)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 184)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 161)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java: 349)
at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices.generateTemplate(ReportTemplateWebServices.java: 179)
at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$FastClassBySpringCGLIB$$77239654.invoke( < generated > )
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java: 204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java: 738)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 157)
at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 48)
at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 34)
at com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java: 59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java: 673)
at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$EnhancerBySpringCGLIB$$59c7b890.generateTemplate( < generated > )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java: 205)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java: 133)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java: 97)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java: 827)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java: 738)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java: 85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 967)
...106 common frames omitted
Caused by: java.util.MissingResourceException: Unable to construct Calendar
at com.ibm.icu.util.CalendarServiceShim.createInstance(CalendarServiceShim.java: 69)
at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java: 1626)
at com.ibm.icu.util.Calendar.getInstance(Calendar.java: 1588)
at com.ibm.icu.text.SimpleDateFormat.initialize(SimpleDateFormat.java: 504)
at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 469)
at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 394)
at org.eclipse.birt.report.model.metadata.DateTimePropertyType. < clinit > (DateTimePropertyType.java: 63)
...138 common frames omitted









share|improve this question





























    0















    I have a hipster application. I integrated a web service that generates reports with Birt. When I start the application in the local (front end "yarn start" and back end "mvn") everything works fine but when I create a War of my application and I deploy it the generation stops working. Please help me. This error made me lose a lot of time and effort.



    I create the War using the command



    mvnw -Pprod,swagger,no-liquibase package -DskipTests=true



    and than run it with:



    java -jar warName



    POM.xml



    <!-- https://mvnrepository.com/artifact/org.eclipse.birt.runtime.3_7_1/org.eclipse.birt.runtime -->
    <dependency>
    <groupId>org.eclipse.birt.runtime.3_7_1</groupId>
    <artifactId>org.eclipse.birt.runtime</artifactId>
    <version>3.7.1</version>
    </dependency>


    Web Service That Generates The report



    @GetMapping("/GenerateTemplate/{format}/{id}/{idTask}")
    @Timed
    public ResponseEntity generateTemplate(@PathVariable String format, @PathVariable Long id,
    @PathVariable String idTask) {
    IReportEngine engine = new BirtEngineFactory().getObject();
    byte templateInString = reportTemplateService.findOne(id).getTemplateBody();
    InputStream stream = new ByteArrayInputStream(templateInString);
    IReportRunnable design = null;
    try {

    design = engine.openReportDesign(stream);

    } catch (EngineException e) {
    e.printStackTrace();
    }

    // Create task to run and render the report,
    IRunAndRenderTask task = engine.createRunAndRenderTask(design);

    // Set parameter values and validate
    task.setParameterValue("TaskBuilder_Id", idTask);
    task.validateParameters();
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    HTMLRenderOption options = new HTMLRenderOption();
    options.setOutputFormat(format);
    options.setOutputStream(out);
    options.setEmbeddable(false);
    task.setRenderOption(options);
    // run and render report
    try {
    task.run();
    } catch (EngineException e) {
    e.printStackTrace();
    }

    byte output = out.toByteArray();

    task.close();
    engine.destroy();
    Platform.shutdown();
    RegistryProviderFactory.releaseDefault();
    HttpHeaders header = new HttpHeaders();
    header.set("charset", "utf-8");
    header.setContentType(MediaType.APPLICATION_XML);
    header.setContentLength(output.length);
    header.set("Content-disposition", "attachment; filename=report." + format);
    return new ResponseEntity<byte>(output, header, HttpStatus.OK);
    }


    The error i am having after deploying the war :



    org.springframework.web.util.NestedServletException: Handler dispatch failed;
    nested exception is java.lang.ExceptionInInitializerError
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 982)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 901)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 970)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java: 861)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java: 687)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java: 846)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java: 790)
    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java: 74)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 129)
    at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java: 111)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java: 55)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 101)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java: 110)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 317)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: 127)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java: 91)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java: 114)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java: 137)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java: 111)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java: 158)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java: 170)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java: 63)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java: 200)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java: 116)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java: 100)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java: 96)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java: 64)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java: 105)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java: 56)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java: 214)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java: 177)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java: 347)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java: 263)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java: 99)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java: 108)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java: 81)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java: 197)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
    at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java: 84)
    at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java: 62)
    at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java: 64)
    at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java: 36)
    at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java: 131)
    at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java: 57)
    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
    at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java: 46)
    at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java: 64)
    at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java: 60)
    at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java: 77)
    at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java: 43)
    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
    at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java: 292)
    at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java: 81)
    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 138)
    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 135)
    at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java: 48)
    at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java: 43)
    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java: 272)
    at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java: 81)
    at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java: 104)
    at io.undertow.server.Connectors.executeRootHandler(Connectors.java: 336)
    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java: 830)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ExceptionInInitializerError: null
    at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < init > (MetaDataDictionary.java: 252)
    at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < clinit > (MetaDataDictionary.java: 112)
    at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newSessionHandle(DesignEngineImpl.java: 143)
    at org.eclipse.birt.report.model.api.DesignEngine.newSessionHandle(DesignEngine.java: 120)
    at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java: 143)
    at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java: 255)
    at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 274)
    at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 184)
    at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 161)
    at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java: 349)
    at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices.generateTemplate(ReportTemplateWebServices.java: 179)
    at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$FastClassBySpringCGLIB$$77239654.invoke( < generated > )
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java: 204)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java: 738)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 157)
    at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 48)
    at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 34)
    at com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java: 59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 179)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java: 673)
    at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$EnhancerBySpringCGLIB$$59c7b890.generateTemplate( < generated > )
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java: 205)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java: 133)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java: 97)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java: 827)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java: 738)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java: 85)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 967)
    ...106 common frames omitted
    Caused by: java.util.MissingResourceException: Unable to construct Calendar
    at com.ibm.icu.util.CalendarServiceShim.createInstance(CalendarServiceShim.java: 69)
    at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java: 1626)
    at com.ibm.icu.util.Calendar.getInstance(Calendar.java: 1588)
    at com.ibm.icu.text.SimpleDateFormat.initialize(SimpleDateFormat.java: 504)
    at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 469)
    at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 394)
    at org.eclipse.birt.report.model.metadata.DateTimePropertyType. < clinit > (DateTimePropertyType.java: 63)
    ...138 common frames omitted









    share|improve this question



























      0












      0








      0








      I have a hipster application. I integrated a web service that generates reports with Birt. When I start the application in the local (front end "yarn start" and back end "mvn") everything works fine but when I create a War of my application and I deploy it the generation stops working. Please help me. This error made me lose a lot of time and effort.



      I create the War using the command



      mvnw -Pprod,swagger,no-liquibase package -DskipTests=true



      and than run it with:



      java -jar warName



      POM.xml



      <!-- https://mvnrepository.com/artifact/org.eclipse.birt.runtime.3_7_1/org.eclipse.birt.runtime -->
      <dependency>
      <groupId>org.eclipse.birt.runtime.3_7_1</groupId>
      <artifactId>org.eclipse.birt.runtime</artifactId>
      <version>3.7.1</version>
      </dependency>


      Web Service That Generates The report



      @GetMapping("/GenerateTemplate/{format}/{id}/{idTask}")
      @Timed
      public ResponseEntity generateTemplate(@PathVariable String format, @PathVariable Long id,
      @PathVariable String idTask) {
      IReportEngine engine = new BirtEngineFactory().getObject();
      byte templateInString = reportTemplateService.findOne(id).getTemplateBody();
      InputStream stream = new ByteArrayInputStream(templateInString);
      IReportRunnable design = null;
      try {

      design = engine.openReportDesign(stream);

      } catch (EngineException e) {
      e.printStackTrace();
      }

      // Create task to run and render the report,
      IRunAndRenderTask task = engine.createRunAndRenderTask(design);

      // Set parameter values and validate
      task.setParameterValue("TaskBuilder_Id", idTask);
      task.validateParameters();
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      HTMLRenderOption options = new HTMLRenderOption();
      options.setOutputFormat(format);
      options.setOutputStream(out);
      options.setEmbeddable(false);
      task.setRenderOption(options);
      // run and render report
      try {
      task.run();
      } catch (EngineException e) {
      e.printStackTrace();
      }

      byte output = out.toByteArray();

      task.close();
      engine.destroy();
      Platform.shutdown();
      RegistryProviderFactory.releaseDefault();
      HttpHeaders header = new HttpHeaders();
      header.set("charset", "utf-8");
      header.setContentType(MediaType.APPLICATION_XML);
      header.setContentLength(output.length);
      header.set("Content-disposition", "attachment; filename=report." + format);
      return new ResponseEntity<byte>(output, header, HttpStatus.OK);
      }


      The error i am having after deploying the war :



      org.springframework.web.util.NestedServletException: Handler dispatch failed;
      nested exception is java.lang.ExceptionInInitializerError
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 982)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 901)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 970)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java: 861)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java: 687)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java: 846)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java: 790)
      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java: 74)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 129)
      at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java: 111)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java: 55)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 101)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java: 110)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 317)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: 127)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java: 91)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java: 114)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java: 137)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java: 111)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java: 158)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java: 170)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java: 63)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java: 200)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java: 116)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java: 100)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java: 96)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java: 64)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java: 105)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java: 56)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java: 214)
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java: 177)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java: 347)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java: 263)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java: 99)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java: 108)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java: 81)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java: 197)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java: 84)
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java: 62)
      at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java: 64)
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java: 36)
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java: 131)
      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java: 57)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java: 46)
      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java: 64)
      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java: 60)
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java: 77)
      at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java: 43)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java: 292)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java: 81)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 138)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 135)
      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java: 48)
      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java: 43)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java: 272)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java: 81)
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java: 104)
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java: 336)
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java: 830)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ExceptionInInitializerError: null
      at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < init > (MetaDataDictionary.java: 252)
      at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < clinit > (MetaDataDictionary.java: 112)
      at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newSessionHandle(DesignEngineImpl.java: 143)
      at org.eclipse.birt.report.model.api.DesignEngine.newSessionHandle(DesignEngine.java: 120)
      at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java: 143)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java: 255)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 274)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 184)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 161)
      at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java: 349)
      at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices.generateTemplate(ReportTemplateWebServices.java: 179)
      at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$FastClassBySpringCGLIB$$77239654.invoke( < generated > )
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java: 204)
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java: 738)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 157)
      at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 48)
      at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 34)
      at com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java: 59)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 179)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java: 673)
      at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$EnhancerBySpringCGLIB$$59c7b890.generateTemplate( < generated > )
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java: 205)
      at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java: 133)
      at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java: 97)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java: 827)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java: 738)
      at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java: 85)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 967)
      ...106 common frames omitted
      Caused by: java.util.MissingResourceException: Unable to construct Calendar
      at com.ibm.icu.util.CalendarServiceShim.createInstance(CalendarServiceShim.java: 69)
      at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java: 1626)
      at com.ibm.icu.util.Calendar.getInstance(Calendar.java: 1588)
      at com.ibm.icu.text.SimpleDateFormat.initialize(SimpleDateFormat.java: 504)
      at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 469)
      at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 394)
      at org.eclipse.birt.report.model.metadata.DateTimePropertyType. < clinit > (DateTimePropertyType.java: 63)
      ...138 common frames omitted









      share|improve this question
















      I have a hipster application. I integrated a web service that generates reports with Birt. When I start the application in the local (front end "yarn start" and back end "mvn") everything works fine but when I create a War of my application and I deploy it the generation stops working. Please help me. This error made me lose a lot of time and effort.



      I create the War using the command



      mvnw -Pprod,swagger,no-liquibase package -DskipTests=true



      and than run it with:



      java -jar warName



      POM.xml



      <!-- https://mvnrepository.com/artifact/org.eclipse.birt.runtime.3_7_1/org.eclipse.birt.runtime -->
      <dependency>
      <groupId>org.eclipse.birt.runtime.3_7_1</groupId>
      <artifactId>org.eclipse.birt.runtime</artifactId>
      <version>3.7.1</version>
      </dependency>


      Web Service That Generates The report



      @GetMapping("/GenerateTemplate/{format}/{id}/{idTask}")
      @Timed
      public ResponseEntity generateTemplate(@PathVariable String format, @PathVariable Long id,
      @PathVariable String idTask) {
      IReportEngine engine = new BirtEngineFactory().getObject();
      byte templateInString = reportTemplateService.findOne(id).getTemplateBody();
      InputStream stream = new ByteArrayInputStream(templateInString);
      IReportRunnable design = null;
      try {

      design = engine.openReportDesign(stream);

      } catch (EngineException e) {
      e.printStackTrace();
      }

      // Create task to run and render the report,
      IRunAndRenderTask task = engine.createRunAndRenderTask(design);

      // Set parameter values and validate
      task.setParameterValue("TaskBuilder_Id", idTask);
      task.validateParameters();
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      HTMLRenderOption options = new HTMLRenderOption();
      options.setOutputFormat(format);
      options.setOutputStream(out);
      options.setEmbeddable(false);
      task.setRenderOption(options);
      // run and render report
      try {
      task.run();
      } catch (EngineException e) {
      e.printStackTrace();
      }

      byte output = out.toByteArray();

      task.close();
      engine.destroy();
      Platform.shutdown();
      RegistryProviderFactory.releaseDefault();
      HttpHeaders header = new HttpHeaders();
      header.set("charset", "utf-8");
      header.setContentType(MediaType.APPLICATION_XML);
      header.setContentLength(output.length);
      header.set("Content-disposition", "attachment; filename=report." + format);
      return new ResponseEntity<byte>(output, header, HttpStatus.OK);
      }


      The error i am having after deploying the war :



      org.springframework.web.util.NestedServletException: Handler dispatch failed;
      nested exception is java.lang.ExceptionInInitializerError
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 982)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 901)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 970)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java: 861)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java: 687)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java: 846)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java: 790)
      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java: 74)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 129)
      at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java: 111)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java: 55)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 101)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java: 110)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 317)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: 127)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java: 91)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java: 114)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java: 137)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java: 111)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java: 158)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java: 170)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java: 63)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java: 200)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java: 116)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java: 100)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java: 96)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java: 64)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java: 105)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java: 56)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 331)
      at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java: 214)
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java: 177)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java: 347)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java: 263)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java: 99)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java: 108)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java: 81)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java: 197)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 107)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java: 61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java: 131)
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java: 84)
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java: 62)
      at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java: 64)
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java: 36)
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java: 131)
      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java: 57)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java: 46)
      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java: 64)
      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java: 60)
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java: 77)
      at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java: 43)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java: 43)
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java: 292)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java: 81)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 138)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java: 135)
      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java: 48)
      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java: 43)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java: 272)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java: 81)
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java: 104)
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java: 336)
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java: 830)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ExceptionInInitializerError: null
      at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < init > (MetaDataDictionary.java: 252)
      at org.eclipse.birt.report.model.metadata.MetaDataDictionary. < clinit > (MetaDataDictionary.java: 112)
      at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newSessionHandle(DesignEngineImpl.java: 143)
      at org.eclipse.birt.report.model.api.DesignEngine.newSessionHandle(DesignEngine.java: 120)
      at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java: 143)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java: 255)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 274)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 184)
      at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java: 161)
      at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java: 349)
      at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices.generateTemplate(ReportTemplateWebServices.java: 179)
      at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$FastClassBySpringCGLIB$$77239654.invoke( < generated > )
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java: 204)
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java: 738)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 157)
      at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 48)
      at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java: 34)
      at com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java: 59)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 179)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java: 673)
      at com.wlp.uowfrg.reportTemplate.ReportTemplateWebServices$$EnhancerBySpringCGLIB$$59c7b890.generateTemplate( < generated > )
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java: 205)
      at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java: 133)
      at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java: 97)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java: 827)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java: 738)
      at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java: 85)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 967)
      ...106 common frames omitted
      Caused by: java.util.MissingResourceException: Unable to construct Calendar
      at com.ibm.icu.util.CalendarServiceShim.createInstance(CalendarServiceShim.java: 69)
      at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java: 1626)
      at com.ibm.icu.util.Calendar.getInstance(Calendar.java: 1588)
      at com.ibm.icu.text.SimpleDateFormat.initialize(SimpleDateFormat.java: 504)
      at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 469)
      at com.ibm.icu.text.SimpleDateFormat. < init > (SimpleDateFormat.java: 394)
      at org.eclipse.birt.report.model.metadata.DateTimePropertyType. < clinit > (DateTimePropertyType.java: 63)
      ...138 common frames omitted






      spring jhipster birt






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 2 at 7:28









      Uata

      559815




      559815










      asked Jan 3 at 11:24









      OmarOmar

      11




      11
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54021357%2fbirt-report-generation-not-working-after-packing-jhipster-application-in-a-war%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54021357%2fbirt-report-generation-not-working-after-packing-jhipster-application-in-a-war%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas