Sign in to follow this  
deepti

Spring Mvc And Fusioncharts.

Recommended Posts

Hi,

 

I am trying to integrate spring mvc with ajax with fusioncharts.I want to get the chart xml and swf from ajax response and set it to the chart and display the chart.

I have followed http://forum.fusioncharts.com/topic/6514-fusioncharts-spring-mvc-example/page__p__26065__hl__spring+mvc__fromsearch__1#entry26065 and http://forum.fusioncharts.com/topic/7069-data-update-chart-refreshing-using-spring-mvc/page__p__28358__hl__spring+mvc__fromsearch__1#entry28358 to do the same.

But when I try to include the Fusionchartsrendere.jsp page I am getting the following exception :

 

14:07:23,877 FATAL [JspFactoryImpl] Exception initializing page context

java.lang.IllegalStateException: Cannot create a session after the response has been committed

at org.apache.catalina.connector.Request.doGetSession(Request.java:2301)

at org.apache.catalina.connector.Request.getSession(Request.java:2075)

at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)

at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)

at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)

at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)

at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:545)

at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:494)

at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:144)

at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:122)

at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:106)

at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:62)

at org.apache.jsp.WEB_002dINF.views.FusionChartsRenderer_jsp._jspService(FusionChartsRenderer_jsp.java:59)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)

at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)

at org.apache.jsp.WEB_002dINF.views.plantview_jsp$plantview_jspHelper.invoke0(plantview_jsp.java:243)

at org.apache.jsp.WEB_002dINF.views.plantview_jsp$plantview_jspHelper.invoke(plantview_jsp.java:266)

at org.apache.jsp.tag.web.template_tag.doTag(template_tag.java:132)

at org.apache.jsp.WEB_002dINF.views.plantview_jsp._jspx_meth_tags_005ftemplate_005f0(plantview_jsp.java:122)

at org.apache.jsp.WEB_002dINF.views.plantview_jsp._jspService(plantview_jsp.java:68)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)

at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)

at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)

at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1031)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:815)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

 

And hence the whole thing is not working.Can anyone plese help.

 

Thanks,

Deepti.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this