Print from web displays error

Any issue about installation and configuration of the Cyclos 4 version

Moderators: rmvanarkel, hugo, alexandre

Post Reply
evosoft
Posts: 7
Joined: Mon Dec 30, 2019 9:57 am

Print from web displays error

Post by evosoft »

Hi,

When you go to
Users>Demo>Accounts summary
and print

you get the following error


There was an unexpected error while processing your request:
org.cyclos.model.CyclosException


error log shows
------------------------------------------------

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at java.desktop/sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE(SunGraphicsEnvironment.java:189)
at java.desktop/sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:223)
at java.desktop/sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:251)
at java.desktop/sun.java2d.HeadlessGraphicsEnvironment.getAvailableFontFamilyNames(HeadlessGraphicsEnvironment.java:75)
at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:58)
at net.sf.jasperreports.engine.fill.BaseReportFiller.<init>(BaseReportFiller.java:136)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:273)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:79)
at net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:251)
at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:272)
at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:156)
at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:145)
at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:689)
at net.sf.jasperreports.engine.JasperFillManager.fillToFile(JasperFillManager.java:580)
at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:938)
at org.cyclos.impl.utils.reports.ReportHandlerImpl.executeReport(ReportHandlerImpl.java:217)
at org.cyclos.impl.utils.reports.ReportHandlerImpl.runReport(ReportHandlerImpl.java:138)
at org.cyclos.impl.banking.AccountServiceImpl.printAccountHistory(AccountServiceImpl.java:2194)
at org.cyclos.security.banking.AccountServiceSecurity.printAccountHistory(AccountServiceSecurity.java:360)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.cyclos.impl.ServiceInvokerHandlerImpl$ServiceInvocationTransactionCallback.performInvocation(ServiceInvokerHandlerImpl.java:280)
at org.cyclos.impl.ServiceInvokerHandlerImpl$ServiceInvocationTransactionCallback.lambda$0(ServiceInvokerHandlerImpl.java:211)
at org.cyclos.impl.InvokerHandlerImpl.runAs(InvokerHandlerImpl.java:109)
at org.cyclos.impl.ServiceInvokerHandlerImpl$ServiceInvocationTransactionCallback.doInTransaction(ServiceInvokerHandlerImpl.java:211)
at org.cyclos.impl.ServiceInvokerHandlerImpl$ServiceInvocationTransactionCallback.doInTransaction(ServiceInvokerHandlerImpl.java:1)
at org.cyclos.impl.utils.transaction.TransactionHandlerImpl.runEnsuringInvocationContext(TransactionHandlerImpl.java:183)
at org.cyclos.impl.utils.transaction.TransactionHandlerImpl.doRun(TransactionHandlerImpl.java:109)
at org.cyclos.impl.utils.transaction.TransactionHandlerImpl.run(TransactionHandlerImpl.java:159)
at org.cyclos.impl.utils.transaction.TransactionHandlerImpl.run(TransactionHandlerImpl.java:80)
at jdk.internal.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:206)
at com.sun.proxy.$Proxy34.run(Unknown Source)
at org.cyclos.impl.InvokerHandlerImpl.performInTransaction(InvokerHandlerImpl.java:238)
at org.cyclos.impl.InvokerHandlerImpl.doRunAsInTransaction(InvokerHandlerImpl.java:187)
at org.cyclos.impl.InvokerHandlerImpl.runAsInTransaction(InvokerHandlerImpl.java:168)
at org.cyclos.impl.ServiceInvokerHandlerImpl.doInvoke(ServiceInvokerHandlerImpl.java:748)
at org.cyclos.impl.ServiceInvokerHandlerImpl.invoke(ServiceInvokerHandlerImpl.java:581)
at org.cyclos.impl.access.ServiceFacadeImpl.lambda$2(ServiceFacadeImpl.java:174)
at org.cyclos.impl.access.ServiceFacadeImpl.runInRequestContext(ServiceFacadeImpl.java:593)
at org.cyclos.impl.access.ServiceFacadeImpl.invoke(ServiceFacadeImpl.java:172)
at org.cyclos.server.spring.root.RequestServiceFactory$ServiceProxyInvocationHandler.invoke(RequestServiceFactory.java:74)
at com.sun.proxy.$Proxy197.printAccountHistory(Unknown Source)
at org.cyclos.server.content.banking.AccountsController.printAccountHistory(AccountsController.java:96)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.cyclos.server.http.CORSFilter.doFilterInternal(CORSFilter.java:67)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.cyclos.server.http.RequestDataFilter.doFilterInternal(RequestDataFilter.java:200)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.cyclos.server.http.RequestContextFilter.doFilterInternal(RequestContextFilter.java:52)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:182)
at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:330)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)
alexandre
Posts: 950
Joined: Wed Sep 06, 2006 9:06 am

Re: Print from web displays error

Post by alexandre »

Hi,

Normally this error " java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager" is related to the java jdk installed.
Can you make sure you have the openjdk8 installed?

regards
Alexandre Caurrinhos
Cyclos development team.
evosoft
Posts: 7
Joined: Mon Dec 30, 2019 9:57 am

Re: Print from web displays error

Post by evosoft »

hi Alexandre,

thanks for the reply. These are the options showing

9.0.30-zulujdk-8.0.232
9.0.30-zulujdk-7.0.242
9.0.30-zulujdk-13.0.1
9.0.30-zulujdk-11.0.5
9.0.30-openjdk-14.ea-b31
9.0.30-openjdk-14.ea-b24
9.0.30-openjdk-13.0.2
9.0.30-openjdk-13.0.1
9.0.30-openjdk-11.0.4
9.0.30-openjdk-1.8.0_222
9.0.30-openjdk-1.7.0_231
9.0.30-openj9-0.17.0-8u232-b09
9.0.30-openj9-0.17.0-13.0.1
9.0.30-openj9-0.17.0-11.0.5
9.0.30-libericajdk-8.0.222
9.0.30-libericajdk-13.0.1
9.0.30-libericajdk-11.0.5
9.0.30-jdk-11.0.2
9.0.30-jdk-1.8.0_202
9.0.30-jdk-1.7.0_79
9.0.30-correttojdk-8.232.09.1
9.0.30-correttojdk-11.0.5.10.1
9.0.30-adoptopenjdk-8.0_232
9.0.30-adoptopenjdk-13.0.1
9.0.30-adoptopenjdk-11.0.6
9.0.30-adoptopenjdk-11.0.5
9.0.29-zulujdk-8.0.232
9.0.29-zulujdk-13.0.1
9.0.29-zulujdk-11.0.5
9.0.29-openjdk-14.ea-b24
9.0.29-openjdk-13.0.1
9.0.29-openjdk-11.0.4
9.0.29-openjdk-1.8.0_222
9.0.29-openj9-0.17.0-8u232-b09
9.0.29-openj9-0.17.0-13.0.1
9.0.29-openj9-0.17.0-11.0.5
9.0.29-libericajdk-8.0.222
9.0.29-libericajdk-13.0.1
9.0.29-libericajdk-11.0.5
9.0.29-jdk-11.0.2
9.0.29-jdk-1.8.0_202
9.0.29-correttojdk-8.232.09.1
9.0.29-correttojdk-11.0.5.10.1
9.0.29-adoptopenjdk-8.0_232
9.0.29-adoptopenjdk-13.0.1
9.0.29-adoptopenjdk-11.0.5
9.0.27-zulujdk-8.0.222
9.0.27-zulujdk-12.0.2
9.0.27-zulujdk-11.0.4
9.0.27-openjdk-14.ea-b23
9.0.27-openjdk-14.ea-b14
9.0.27-openjdk-13.ea-b33
9.0.27-openjdk-12.0.2
9.0.27-openjdk-11.0.4
9.0.27-openjdk-10.0.2
9.0.27-openjdk-1.8.0_222
9.0.27-openj9-0.9.0-9.0.4.12
9.0.27-openj9-0.9.0-10.0.2
9.0.27-openj9-0.17.0-8u232-b09
9.0.27-openj9-0.15.1-8u222-b10
9.0.27-openj9-0.15.1-12.0.2
9.0.27-openj9-0.15.1-11.0.4
9.0.27-libericajdk-8.0.222
9.0.27-libericajdk-12.0.2
9.0.27-libericajdk-11.0.5
9.0.27-jdk-9.0.4
9.0.27-jdk-11.0.2
9.0.27-jdk-10.0.2
9.0.27-jdk-1.8.0_202
9.0.27-correttojdk-8.232.09.1
9.0.27-correttojdk-11.0.5.10.1
9.0.27-adoptopenjdk-9.0.4
9.0.27-adoptopenjdk-8.0_222
9.0.27-adoptopenjdk-12.0.2
9.0.27-adoptopenjdk-11.0.5
9.0.27-adoptopenjdk-11.0.4
9.0.27-adoptopenjdk-10.0.2
8.5.50-zulujdk-8.0.232
8.5.50-zulujdk-7.0.242
8.5.50-zulujdk-13.0.1
8.5.50-zulujdk-11.0.5
8.5.50-openjdk-13.0.2
8.5.50-openjdk-13.0.1
8.5.50-openjdk-11.0.4
8.5.50-openjdk-1.8.0_222
8.5.50-openjdk-1.7.0_231
8.5.50-openj9-0.17.0-8u232-b09
8.5.50-openj9-0.17.0-13.0.1
8.5.50-openj9-0.17.0-11.0.5
8.5.50-libericajdk-8.0.222
8.5.50-libericajdk-13.0.1
8.5.50-libericajdk-11.0.5
8.5.50-jdk-11.0.2
8.5.50-jdk-1.8.0_202
8.5.50-jdk-1.7.0_79
8.5.50-correttojdk-8.232.09.1
8.5.50-correttojdk-11.0.5.10.1
8.5.50-adoptopenjdk-8.0_232
8.5.50-adoptopenjdk-13.0.1
8.5.50-adoptopenjdk-11.0.6
8.5.50-adoptopenjdk-11.0.5
8.5.49-zulujdk-8.0.232
8.5.49-zulujdk-7.0.242
8.5.49-zulujdk-13.0.1
8.5.49-zulujdk-11.0.5
8.5.49-openjdk-13.0.1
8.5.49-openjdk-11.0.4
8.5.49-openjdk-1.8.0_222
8.5.49-openjdk-1.7.0_231
8.5.49-openj9-0.17.0-8u232-b09
8.5.49-openj9-0.17.0-13.0.1
8.5.49-openj9-0.17.0-11.0.5
8.5.49-libericajdk-8.0.222
8.5.49-libericajdk-13.0.1
8.5.49-libericajdk-11.0.5
8.5.49-jdk-11.0.2
8.5.49-jdk-1.8.0_202
8.5.49-jdk-1.7.0_79
8.5.49-correttojdk-8.232.09.1
8.5.49-correttojdk-11.0.5.10.1
8.5.49-adoptopenjdk-8.0_232
8.5.49-adoptopenjdk-13.0.1
8.5.49-adoptopenjdk-11.0.5
8.5.47-zulujdk-8.0.222
8.5.47-zulujdk-7.0.232
8.5.47-zulujdk-12.0.2
8.5.47-zulujdk-11.0.4
8.5.47-openjdk-13.ea-b33
8.5.47-openjdk-12.0.2
8.5.47-openjdk-11.0.4
8.5.47-openjdk-10.0.2
8.5.47-openjdk-1.8.0_222
8.5.47-openjdk-1.7.0_231
8.5.47-openj9-0.9.0-9.0.4.12
8.5.47-openj9-0.9.0-10.0.2
8.5.47-openj9-0.17.0-8u232-b09
8.5.47-openj9-0.15.1-8u222-b10
8.5.47-openj9-0.15.1-12.0.2
8.5.47-openj9-0.15.1-11.0.4
8.5.47-libericajdk-8.0.222
8.5.47-libericajdk-12.0.2
8.5.47-libericajdk-11.0.5
8.5.47-jdk-9.0.4
8.5.47-jdk-11.0.2
8.5.47-jdk-10.0.2
8.5.47-jdk-1.8.0_202
8.5.47-jdk-1.7.0_79
8.5.47-correttojdk-8.232.09.1
8.5.47-correttojdk-11.0.5.10.1
8.5.47-adoptopenjdk-9.0.4
8.5.47-adoptopenjdk-8.0_222
8.5.47-adoptopenjdk-12.0.2
8.5.47-adoptopenjdk-11.0.5
8.5.47-adoptopenjdk-11.0.4
8.5.47-adoptopenjdk-10.0.2
7.0.99-zulujdk-8.0.232
7.0.99-zulujdk-7.0.242
7.0.99-openjdk-1.8.0_222
7.0.99-openjdk-1.7.0_231
7.0.99-openj9-0.17.0-8u232-b09
7.0.99-libericajdk-8.0.222
7.0.99-jdk-1.8.0_202
7.0.99-jdk-1.7.0_79
7.0.99-correttojdk-8.232.09.1
7.0.99-adoptopenjdk-8.0_232
7.0.96-openjdk-1.8.0_222
7.0.96-openjdk-1.7.0_231
7.0.96-openj9-0.15.1-8u222-b10
7.0.96-jdk-1.8.0_202
7.0.96-jdk-1.7.0_79
7.0.96-adoptopenjdk-8.0_222
7.0.94-openjdk-1.8.0_222
7.0.94-openjdk-1.8.0_212
7.0.94-openjdk-1.8.0_201
7.0.94-openjdk-1.7.0_231
7.0.94-openjdk-1.7.0_211
7.0.94-openj9-0.15.1-8u222-b10
7.0.94-openj9-0.11.0-8u192-b12
7.0.94-jdk-1.8.0_202
7.0.94-jdk-1.7.0_79
7.0.94-jdk-1.6.0_45
7.0.94-adoptopenjdk-8.0_222
7.0.94-adoptopenjdk-8.0_212
alexandre
Posts: 950
Joined: Wed Sep 06, 2006 9:06 am

Re: Print from web displays error

Post by alexandre »

Hi,

You can use the " 9.0.30-openjdk-1.8.0_222"

Regards
Alexandre Caurrinhos
Cyclos development team.
evosoft
Posts: 7
Joined: Mon Dec 30, 2019 9:57 am

Re: Print from web displays error

Post by evosoft »

Thanks Alexandre. Works great!
Post Reply