Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row">
- <p:chart type="bar" model="#{InheritedFichaCostoController.cttosAnimatedModel}" />
- </div>
- import org.primefaces.model.chart.Axis;
- import org.primefaces.model.chart.AxisType;
- import org.primefaces.model.chart.BarChartModel;
- import org.primefaces.model.chart.ChartSeries;
- @Named("InheritedFichaCostoController")
- @ViewScoped
- public class InheritedFichaCostoController extends FichaCostoController {
- private List<FichaCosto> activeAgreements;
- private List<FichaCosto> closedAgreements;
- private List<FichaCosto> stopedAgreements;
- private BarChartModel CttosAnimatedModel;
- @Override
- public void init() {
- super.init();
- activeAgreements = new ArrayList<>();
- closedAgreements = new ArrayList<>();
- stopedAgreements = new ArrayList<>();
- createCttosAnimatedModel();
- }
- public List<FichaCosto> getActiveAgreements() {
- activeAgreements = new ArrayList<>();
- activeAgreements.addAll(getFacade().activeAgreements());
- return activeAgreements;
- }
- public List<FichaCosto> getClosedAgreements() {
- closedAgreements = new ArrayList<>();
- closedAgreements.addAll(getFacade().closedAgreements());
- return closedAgreements;
- }
- public List<FichaCosto> getStopedAgreements() {
- stopedAgreements = new ArrayList<>();
- stopedAgreements.addAll(getFacade().stopedAgreements());
- return stopedAgreements;
- }
- public BarChartModel getCttosAnimatedModel() {
- return cttosAnimatedModel;
- }
- public void setCttosAnimatedModel(BarChartModel CttosAnimatedModel) {
- this.cttosAnimatedModel = CttosAnimatedModel;
- }
- private void createCttosAnimatedModel() {
- cttosAnimatedModel = initBarModel();
- cttosAnimatedModel.setTitle("Bar Charts");
- cttosAnimatedModel.setAnimate(true);
- cttosAnimatedModel.setLegendPosition("ne");
- Axis yAxis = cttosAnimatedModel.getAxis(AxisType.Y);
- yAxis = cttosAnimatedModel.getAxis(AxisType.Y);
- yAxis.setMin(0);
- yAxis.setMax(10);
- }
- private BarChartModel initBarModel() {
- BarChartModel model = new BarChartModel();
- ChartSeries active = new ChartSeries();
- active.setLabel("#{bundle.CttosEjec}");
- active.set("2019", activeAgreements.size());
- ChartSeries stoped = new ChartSeries();
- stoped.setLabel("#{bundle.CttosStop}");
- stoped.set("2019", stopedAgreements.size());
- ChartSeries closed = new ChartSeries();
- closed.setLabel("#{bundle.CttosStop}");
- closed.set("2019", closedAgreements.size());
- model.addSeries(active);
- model.addSeries(stoped);
- model.addSeries(closed);
- return model;
- }
- }
- Información: WebModule[null] ServletContext.log():No Spring WebApplicationInitializer types detected on classpath
- Información: Inicializando Mojarra 2.2.14 ( 20161114-2152 unable to get svn info) para el contexto '/modulo-gecom'
- Información: Monitoring jndi:/server/modulo-gecom/WEB-INF/faces-config.xml for modifications
- Información: Running on PrimeFaces 6.2
- Información: WebModule[null] ServletContext.log():Initializing Spring root WebApplicationContext
- Información: Root WebApplicationContext: initialization started
- Información: Refreshing Root WebApplicationContext: startup date [Tue Mar 19 20:40:03 BRT 2019]; root of context hierarchy
- Información: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-context.xml]
- Información: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-security-context.xml]
- Información: You are running with Spring Security Core 4.0.3.RELEASE
- Información: Spring Security 'config' module version is 4.0.3.RELEASE
- Información: Creating access control expression attribute 'permitAll' for /login.jsf*
- Información: Creating access control expression attribute 'permitAll' for /register.jsf*
- Información: Creating access control expression attribute 'permitAll' for /javax.faces.resource/**
- Información: Creating access control expression attribute 'permitAll' for /resources/**
- Información: Creating access control expression attribute 'permitAll' for /accessDenied.jsf
- Información: Creating access control expression attribute 'hasAnyAuthority('USER')' for /**
- Información: Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.header.HeaderWriterFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 500, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 700, <org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>, order = 1100, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1600, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2000, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2100, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2200, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2300]
- Información: No authentication manager set. Reauthentication of users when changing passwords will not be performed.
- Información: Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.SecurityContextPersistenceFilter@30a4da97, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@52be0af4, org.springframework.security.web.header.HeaderWriterFilter@137a85c0, org.springframework.security.web.authentication.logout.LogoutFilter@17e09526, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@106852f, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@234dd651, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@64de037d, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@7784f365, org.springframework.security.web.session.SessionManagementFilter@421e3f47, org.springframework.security.web.access.ExceptionTranslationFilter@fac960b, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1b7db968]
- Información: Checking whether login URL '/login.jsf' is accessible with your configuration
- Información: Root WebApplicationContext: initialization completed in 4945 ms
- Información: Loading application [modulo-gecom] at [/modulo-gecom]
- Información: modulo-gecom was successfully deployed in 20.563 milliseconds.
- Grave: Error Rendering View[/index.xhtml]
- java.lang.NullPointerException
- at org.primefaces.component.chart.renderer.BarRenderer.encodeData(BarRenderer.java:35)
- at org.primefaces.component.chart.renderer.BasePlotRenderer.render(BasePlotRenderer.java:29)
- at org.primefaces.component.chart.ChartRenderer.encodeScript(ChartRenderer.java:95)
- at org.primefaces.component.chart.ChartRenderer.encodeEnd(ChartRenderer.java:68)
- at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:920)
- at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
- at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
- at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)
- at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
- at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
- at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
- at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)
- at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)
- at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
- at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
- at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
- at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
- at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
- at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
- at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
- at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- 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:330)
- at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
- at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
- at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
- at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
- at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
- at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
- at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
- at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
- at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283)
- at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
- at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
- at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
- at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
- at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
- at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
- at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
- at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
- at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
- at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
- at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
- at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
- at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
- at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
- at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
- at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
- at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
- at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
- at java.lang.Thread.run(Thread.java:745)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement