6 Replies Latest reply: Jul 24, 2013 7:07 AM by 939520 RSS

    java.lang.NoSuchMethodError  message

    user575089

      I am using displaytag  to display table data  in my jsp page.

       

      I have  Export  in  excel , pdf  facility  in table data .

       

      <display:setProperty name="paging.banner.placement" value="bottom" />       
      <display:setProperty name="export.csv" value="false" />        
      <display:setProperty name="export.excel.filename" value="securityIN.xls" />       

      <display:setProperty name="export.xml" value="false"/>

      <display:setProperty name="export.pdf.filename" value="List.pdf"/>

      <display:setProperty name="export.pdf" value="true" />

       

       

      although Excel export  working fine   ....but however when I click PDF  Export in the page  I get this error:

      javax.servlet.ServletException: java.lang.NoSuchMethodError: com.lowagie.text.Table.setDefaultVerticalAlignment(I)V

          org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

          org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)

          org.apache.jsp.pages.operational.List_jsp._jspService(List_jsp.java:211)

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

          javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

          javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

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

          org.apache.jsp.pages.operational.security_005fin_005fsummery_jsp._jspService(security_005fin_005fsummery_jsp.java:181)

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

          javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

          javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:159)

          org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)

          com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)

          com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)

          com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)

          org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)

          com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)

          com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)

          com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)

          com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          com.ecargo.login.controller.LoginInterceptor.intercept(LoginInterceptor.java:34)

          com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)

          org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)

          org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)

          org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)

          org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:140)

       

       

       

       

      I already have iText  jar  in lib folder in my web apps.   Can you please tell what to look into to resolve this problem ?

       

      How to fix this error ?